Skip to content
Sign in Create account

Enroll a persona key

POST /api/v1/personas/keys

Creates a persona key and returns the desktop share and optional vault share. Nextcloud recovery was not tested end to end before launch. Test a restore before relying on it.

Authenticate with a portal session token.

Request body (optional)

application/json object

  • threshold integer
    One of: 2, 3
  • vault_passphrase string
    Length: 12 to 512 characters
  • vault_provider string
    One of: "internxt", "proton-drive", "tresorit", "self-host-nextcloud", "desktop-only"

Example

{
  "threshold": 2,
  "vault_passphrase": "demo-passphrase-123",
  "vault_provider": "internxt"
}

Responses

201 Persona key created.

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
409 An active persona key already exists.

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