Verify proof and register the guest while retaining the subject.
curl --request POST \ --url https://auth.example.com/api/account/guest-upgrade/complete \ --header 'Content-Type: application/json' \ --cookie authrim_session=<authrim_session> \ --data '{ "operation_id": "example", "upgrade_token": "example", "code": "example", "passkey_response": {}, "preserve_sub": true }'Requires the initiating browser session, opaque token and CSRF protection. Email codes allow at most five attempts. Passkeys require user verification and the original origin and relying-party ID. Permissions are rechecked before registration is admitted. Existing identities return identity_already_registered without merging accounts. Passing the deletion deadline does not prevent registration until deletion starts. Accepted operations can be retried after a transient failure, including after proof expiry. Completion cancels guest retention without increasing previously granted scopes.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
Required for the initial email proof.
WebAuthn RegistrationResponseJSON for the initial passkey proof.
object
Responses
Section titled “ Responses ”Registration completed with the original subject.
object
Example
{ "success": true, "preserve_sub": true}Registration is in progress. Retry the same operation and token.
object
Example
{ "status": "in_progress"}Error response.
object
Stable Authrim error category that can be provided to support.
Opaque occurrence identifier that can be provided to support for correlation.
Example generated
{ "error": "example", "message": "example", "error_description": "example", "error_code": "example", "error_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Error response.
object
Stable Authrim error category that can be provided to support.
Opaque occurrence identifier that can be provided to support for correlation.
Example generated
{ "error": "example", "message": "example", "error_description": "example", "error_code": "example", "error_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Error response.
object
Stable Authrim error category that can be provided to support.
Opaque occurrence identifier that can be provided to support for correlation.
Example generated
{ "error": "example", "message": "example", "error_description": "example", "error_code": "example", "error_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Registration is unavailable or the identity already belongs to an account. identity_already_registered includes existing_login_available=true so the UI can offer a separate login.
object
Example generated
{ "error": "example", "existing_login_available": true}Error response.
object
Stable Authrim error category that can be provided to support.
Opaque occurrence identifier that can be provided to support for correlation.
Example generated
{ "error": "example", "message": "example", "error_description": "example", "error_code": "example", "error_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Error response.
object
Stable Authrim error category that can be provided to support.
Opaque occurrence identifier that can be provided to support for correlation.
Example generated
{ "error": "example", "message": "example", "error_description": "example", "error_code": "example", "error_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}