cURL
curl --request POST \ --url https://forge.gloo.ai/api/v1/keys \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "scopes": [ "<string>" ], "label": "<string>", "expiresAt": 123 } '
{ "data": { "id": "<string>", "key": "<string>", "keyPrefix": "<string>", "interfaceId": "<string>", "label": "<string>", "scopes": [ "<string>" ], "status": "<string>", "createdAt": 123, "expiresAt": 123 }, "meta": { "requestId": "<string>", "hasMore": true, "nextCursor": "<string>", "warning": "<string>" } }
API key from /api/v1/keys. Pass as Authorization: Bearer <key>.
Authorization: Bearer <key>
Scopes to grant (must be subset of caller scopes)
Optional human-readable label
128
Optional expiry as Unix timestamp in milliseconds
Key created (plaintext key shown once)
Show child attributes