staqlydocs
REST APIAPI referenceAuth

Issue a new recovery key

Issue a new recovery key (dashboard sessions only)

Every request sends Authorization: Bearer ...: the access token in local mode, an API key stk_... in cloud mode. Use Send to try it against your cloud instance with your API key.

POST
/v1/recovery-key/rotate

Every other session of the workspace is signed out. Cloud only; the Community Edition (local mode) has no recovery key (409).

Authorization

headerAuthorizationBearer <token>

API key (stk_...), or in the Community Edition the access token (stk_local_...)

Header Parameters

Idempotency-Key?string

Replays the stored response when the same key is repeated with the same method, path, query string and body within 24 hours (422 idempotency_mismatch with a different request, 409 idempotency_in_progress while the first one runs). Not applied to multipart uploads or to responses that carry a secret.

Lengthlength <= 200

Response Body

The new key, shown once

application/json
  1. response
recovery_key*string
curl -X POST 'https://staqly.example.com/v1/recovery-key/rotate'
{  "recovery_key": "string"}