Get Agent API Keys

Changed on

As an Organization Admin, list the API keys of an agent belonging to a user in your organization.

get/api/v1/organizations/users/{userId}/agents/{agentId}/api-keys

Request

  • Base URL
    https://api.skyfire.xyz
  • URL
    https://api.skyfire.xyz/api/v1/organizations/users/{userId}/agents/{agentId}/api-keys
  • Auth
    API key in header skyfire-api-key

Path parameters

userIdstring uuid required

Unique identifier of the user who owns the agent. e.g. "906fc259-ef0a-4736-bdcd-c1d5a78db483"

agentIdstring uuid required

Unique identifier of the agent whose keys to list. e.g. "5d084831-4a11-4970-bf62-bb6fc0b9f3a2"

Query parameters

pageSizeinteger

Number of keys to return per page. Defaults to 100, maximum 1000. e.g. 50

pageCursorstring

Cursor for the next page, taken from nextPageCursor in the previous response. Results are ordered by creation time ascending, and the cursor is the ID of the last key on the previous page.

Response

Ok

nextPageCursorstring

Present when more keys remain. Pass it back as pageCursor to fetch the next page.

Changes