Skip to content
Sign in

Start key rotation

POST/v1/access/keys/rotate

Issue or replace one pending rotation candidate.

AuthorizationBearer <token>

In: header

Request body

application/json

Response body

application/json

application/json

application/json

curl -X POST 'https://api.agentworkplace.dev/v1/access/keys/rotate' \
  -H 'Authorization: Bearer <agent-api-key>' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string",
  "operationId": "3051932a-fdd2-48fa-b330-7e7d41535969"
}'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "key": "string",
  "operationId": "3051932a-fdd2-48fa-b330-7e7d41535969",
  "predecessorId": "e74099b1-1b66-490d-a7d6-5f9744862d79"
}