Verify a Direct Auth email code.
curl --request POST \ --url https://auth.example.com/api/v1/auth/direct/email-code/verify \ --header 'Content-Type: application/json' \ --data '{ "attempt_id": "attempt_123", "code": "123456", "code_verifier": "rfc7636-code-verifier", "channel": "browser" }'Verifies the email code and returns a short-lived Direct Auth artifact bound to client, channel, provider, and PKCE metadata.
Request Body required
Section titled “Request Body required ”object
Example
{ "attempt_id": "attempt_123", "code": "123456", "code_verifier": "rfc7636-code-verifier", "channel": "browser"}Responses
Section titled “ Responses ”Successful JSON response.
object
Example
{ "direct_auth_artifact": "direct_auth_code_123", "expires_in": 60, "is_new_user": true}Error response.
object
Optional browser-side WebAuthn Signal API hint. When unknown_credential is true, clients that just received a WebAuthn credential assertion may call PublicKeyCredential.signalUnknownCredential() for that credential ID.
object
Example generated
{ "error": "example", "error_description": "example", "message": "example", "webauthn_signal": { "unknown_credential": true }}Error response.
object
Optional browser-side WebAuthn Signal API hint. When unknown_credential is true, clients that just received a WebAuthn credential assertion may call PublicKeyCredential.signalUnknownCredential() for that credential ID.
object
Example generated
{ "error": "example", "error_description": "example", "message": "example", "webauthn_signal": { "unknown_credential": true }}Error response.
object
Optional browser-side WebAuthn Signal API hint. When unknown_credential is true, clients that just received a WebAuthn credential assertion may call PublicKeyCredential.signalUnknownCredential() for that credential ID.
object
Example generated
{ "error": "example", "error_description": "example", "message": "example", "webauthn_signal": { "unknown_credential": true }}