Skip to content
Select themeSelect language

`POST /api/auth/captcha/verify` — verify a solved ALTCHA envelope, returning `{ok}`. 400 only when captcha is disabled or the submission is malformed; a well-formed-but-wrong solution is `{ok:false}` (200).

POST
/api/auth/captcha/verify
curl --request POST \
--url https://example.com/api/auth/captcha/verify \
--header 'Content-Type: application/json' \
--data '{ "solution": "example" }'
Media typeapplication/json
object
solution
required

The base64 ALTCHA solution envelope produced by the browser widget.

string
Examplegenerated
{
"solution": "example"
}

Verification result

Media typeapplication/json
object
ok
required

Whether the submitted solution verified.

boolean
Examplegenerated
{
"ok": true
}

Captcha not enabled or malformed solution

Media typeapplication/json

The canonical JSON body of every error response — the single source of truth the frontend binds to. Every AppError serializes as this exact shape, and the generated OpenAPI component ApiErrorBody (with its ErrorCode enum) is what the frontend error schema is generated from, so there is no hand-written error schema on either end.

object
code
required

Machine-readable, stable error code.

string
Allowed values: not_found unauthorized forbidden bad_request unprocessable precondition_failed conflict method_not_allowed rate_limited too_many_requests quota_exceeded database_error docker_error vault_error internal_error
details
One of:
null
error
required

Human-readable message (the server’s English text; the client may localize by code).

string
Example
{
"code": "not_found"
}