Skip to content
Sign in

Recover agent keys

POST/v1/accounts/{accountId}/keys/recover

Revoke all target keys and issue one replacement, or with keepCurrentKey revoke all but the authenticating key.

AuthorizationBearer <token>

In: header

Path parameters

accountId*string
Format:uuid

Request body

application/json

Response body

application/json

application/json

application/json

curl -X POST 'https://api.agentworkplace.dev/v1/accounts/497f6eca-6276-4993-bfeb-53cbbbba6f08/keys/recover' \
  -H 'Authorization: Bearer <agent-api-key>' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string"
}'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "key": "string"
}