Skip to content
Sign in Create account

Rotate the persona key

POST /api/v1/personas/keys/rotate

Rotates the authenticated tenant’s persona key with an optional overlap window.

Authenticate with a portal session token.

Request body (optional)

application/json object

  • overlap_days integer
    Range: 1 to 365
  • vault_passphrase string
    Length: 12 to 512 characters

Example

{
  "overlap_days": 1,
  "vault_passphrase": "demo-passphrase-123"
}

Responses

201 Rotated persona key.

application/json PrivacyPersonaKey

  • kid string required
  • rotated boolean
  • share_1 string required
  • share_3 string or null
  • threshold integer required
    One of: 2, 3
  • vault_provider string required
  • vault_url string or null

Generated sample

{
  "kid": "string",
  "rotated": true,
  "share_1": "string",
  "share_3": "string",
  "threshold": 2,
  "vault_provider": "string",
  "vault_url": "string"
}
401 Authentication is required.

application/json PrivacyError

  • error object required
    • code string
    • kid string
    • message string
    • ref string
    • type string
  • errors object

    Other keys: array of string

  • message string
403 The authenticated principal lacks the required permission.

application/json PrivacyError

  • error object required
    • code string
    • kid string
    • message string
    • ref string
    • type string
  • errors object

    Other keys: array of string

  • message string
422 The request failed validation.

application/json PrivacyError

  • error object required
    • code string
    • kid string
    • message string
    • ref string
    • type string
  • errors object

    Other keys: array of string

  • message string
429 The request rate limit was exceeded.

application/json PrivacyError

  • error object required
    • code string
    • kid string
    • message string
    • ref string
    • type string
  • errors object

    Other keys: array of string

  • message string

text/html string

500 An unexpected key operation failure.

application/json PrivacyError

  • error object required
    • code string
    • kid string
    • message string
    • ref string
    • type string
  • errors object

    Other keys: array of string

  • message string