Reactivate a revoked service account.
Makes a revoked account active again under the same id, scope grant and Application binding, and mints it one new API key, whose plaintext secret is returned once. The keys it held when it was revoked stay revoked: whoever held them must be given the new one. Held to the same checks as a rotation, and refused for a platform system account, an account that is already active, and a deleted one (404). A signed-in administrator only: an API token is refused with `403 token_cannot_mint`.
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
Lifetime of the new key in days, 1 to 365. Omit it for 365.
int32Response Body
curl -X POST "https://api.fruxon.com/v1/tenants/string/serviceAccounts/string:reactivate"{
"id": "00000000-0000-0000-0000-000000000000",
"name": "string",
"token": "string",
"keyPrefix": "string",
"scopes": [
"string"
],
"protectedApplicationIds": [
"00000000-0000-0000-0000-000000000000"
],
"droppedScopes": [
"string"
],
"createdAt": 0,
"expiresAt": 0,
"createdBy": "string"
}{
"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
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}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`.
Rotate a service account's credential.
Mints a fresh API key for the service account and revokes its other active keys. Zero-downtime — the new key is live before the old ones are retired. The new key's plaintext secret is returned once. A protected account additionally requires current independent policy authority for its Application and a recent Federation sign-in. A denied rotation leaves existing keys intact. A signed-in administrator only: an API token is refused with `403 token_cannot_mint`.