FruxonDocs
UsersAPI Access

List a service account's API keys.

Returns every key the account owns, newest-first — revoked and expired ones included, so `revokedAt` / `expiresAt` say which still authenticate. Secrets are never included: each key is identified by its `keyPrefix`. A service-account key carries no scopes of its own (`scopes` is empty); what it may do is the account's grant. To revoke one key, `DELETE /tokens/{id}`; to retire them all, revoke the account. 404 when the account does not exist in this workspace.

GET
/v1/tenants/{tenant}/serviceAccounts/{serviceAccount}/keys
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

serviceAccount*string

The unique identifier of the service account.

tenant*string

The tenant identifier

Query Parameters

PageSize?integer

The maximum number of items to return per page

Formatint32
PageToken.Skip?integer
Formatint32
PageToken.Cursor?string

Opaque pagination token returned by an external service. Pass it back unchanged rather than interpreting it as an offset.

Response Body

curl -X GET "https://api.fruxon.com/v1/tenants/string/serviceAccounts/string/keys"
{
  "items": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "name": "string",
      "keyPrefix": "string",
      "scopes": [
        "string"
      ],
      "protectedApplicationIds": [
        "00000000-0000-0000-0000-000000000000"
      ],
      "createdBy": "string",
      "createdAt": 0,
      "modifiedAt": 0,
      "expiresAt": 0,
      "revokedAt": 0,
      "lastUsedAt": 0,
      "binding": {
        "kind": "string",
        "kindLabel": "string",
        "resourceId": "string",
        "resourceLabel": "string"
      }
    }
  ],
  "nextPageToken": "string",
  "totalCount": 0
}
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}