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.
Authorization
Bearer JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.
In: header
Path Parameters
The unique identifier of the service account.
The tenant identifier
Query Parameters
The maximum number of items to return per page
int32int32Opaque 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
}{
"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
}Delete a revoked service account.
Removes a revoked account from the workspace: it no longer appears in any list and every further call on it returns 404. Its audit events and request activity are kept, and keep naming it. An active account is refused with 400 — revoke it first, with `DELETE /serviceAccounts/{id}`. Deletion can't be undone; its name is free to reuse, for a new account with a new id.
Provision a service account.
Creates a new workload principal with the requested scope grant and mints its first API key. The key's plaintext secret is returned once in the response and never again — capture it now. Provisioning is an administrative action; gate access with the `keys:write` scope. For an Application under ProtectedReads, the administrator must also be an independent named policy authority with a recent Federation sign-in. Provisioning grants no original-content access. A signed-in administrator only: an API token is refused with `403 token_cannot_mint`.