Register an agent and get an API key

View as Markdown

Create an agent identity and receive an API key. The anonymous flow returns a key immediately; the email OTP flow verifies an email first. Store the returned api_key — it is shown only once.

Request

This endpoint expects an object.
AnonymousRegisterobjectRequired
OR
EmailOtpInitiateobjectRequired
OR
EmailOtpVerifyobjectRequired

Response

Agent registered
agent_idstringformat: "uuid"
api_keystring

Store this — it is shown only once.

key_prefixstring
scopeslist of strings
expires_atdatetime or null
messagestring

Errors

422
Unprocessable Entity Error