Verify consumer magic link
POST /api/v1/consumer-auth/magic-link/verify
Consumes a single-use 64-character magic-link token, provisions or links the consumer account as email-verified, and returns a Sanctum bearer plus the consumer profile.
This operation needs no authentication.
Request body
application/json object
tokenstring requiredLength: 64 to 64 characters. Pattern:^[a-f0-9]{64}$
Generated sample
{
"token": "string"
}Responses
200 Magic link accepted
application/json object
api_keystring or nulltokenstringuserConsumerUserResource
Generated sample
{
"api_key": "string",
"token": "string",
"user": {
"anonymous_balance_used": true,
"balance_cents": 0,
"balance_dollars": 0,
"created_at": "2026-01-01T00:00:00Z",
"email": "user@example.com",
"email_verified": true,
"id": 0,
"is_low_balance": true,
"name": "string",
"organisation_id": 0,
"balance_micros": 0
}
}400 invalid_or_expired_link
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
422 Validation error
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
429 Rate limit exceeded
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string
503 consumer_auth_disabled
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.