v3

Send an email-verification code

Issues a six-digit code to the authenticated customer's own address.

POST/api/v3/users/verify/email/request-code

Send two credentials: your own, and the customer's.

How authentication works
Yours
x-api-keyorAuthorization: Bearer
The customer's
User-Authorization: BearerorUser-Identifier

Language

Environment

Credentials

Your credential

The customer's credential

Choose an environment first.

cURL request
curl -X POST https://api.btcdirect.eu/api/v3/users/verify/email/request-code \  -H "x-api-key: $BTCD_API_KEY" \  -H "User-Authorization: Bearer $BTCD_USER_TOKEN"
Choose an environment to run this.

Response

Sent.
{  "message": "Sent."}

Responses

204Sent.
401Bad credentials.
503`maintenance` — full maintenance is on, and every endpoint refuses every request until it ends (`endsAt`, when it has an end). Nothing is wrong with the request and nothing was done; the same request is accepted afterwards. Told apart from any other 503 by `code`.

Every failure answers with a message and a code. Switch on the code — messages are written for people and can change.