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
thresholdintegerOne of:2,3vault_passphrasestringLength: 12 to 512 charactersvault_providerstringOne 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
kidstring requiredrotatedbooleanshare_1string requiredshare_3string or nullthresholdinteger requiredOne of:2,3vault_providerstring requiredvault_urlstring 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
errorobject requiredcodestringkidstringmessagestringrefstringtypestring
errorsobjectOther keys: array of string
messagestring
403 The authenticated principal lacks the required permission.
application/json PrivacyError
errorobject requiredcodestringkidstringmessagestringrefstringtypestring
errorsobjectOther keys: array of string
messagestring
409 An active persona key already exists.
application/json PrivacyError
errorobject requiredcodestringkidstringmessagestringrefstringtypestring
errorsobjectOther keys: array of string
messagestring
422 The request failed validation.
application/json PrivacyError
errorobject requiredcodestringkidstringmessagestringrefstringtypestring
errorsobjectOther keys: array of string
messagestring
429 The request rate limit was exceeded.
application/json PrivacyError
errorobject requiredcodestringkidstringmessagestringrefstringtypestring
errorsobjectOther keys: array of string
messagestring
text/html string
500 An unexpected key operation failure.
application/json PrivacyError
errorobject requiredcodestringkidstringmessagestringrefstringtypestring
errorsobjectOther keys: array of string
messagestring