v3

Send a password-reset code

Emails a six-digit reset code to the address, if an account exists. Always answers 204 whether or not it does — a differing response would turn this into a way to ask which addresses have accounts. The partner is taken from the credential, never the body.

POST/api/v3/users/password/reset/request

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/password/reset/request \  -H "x-api-key: $BTCD_API_KEY" \  -H "User-Authorization: Bearer $BTCD_USER_TOKEN" \  -H "Content-Type: application/json" \  -d '{    "email": "customer@example.com"  }'
Choose an environment to run this.

Response

Accepted. Sent only if an account exists.
{  "message": "Accepted. Sent only if an account exists."}

Request

emailemailrequired

Examplecustomer@example.com

Responses

204Accepted. Sent only if an account exists.
400Invalid request.
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.