Ask for a password reset link
const url = 'https://api.deploybase.eu/api/v1/api/v1/public/password-reset';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"sam@example.eu"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.deploybase.eu/api/v1/api/v1/public/password-reset \ --header 'Content-Type: application/json' \ --data '{ "email": "sam@example.eu" }'Mails a reset link to the address if it has an account. Answers 202 with the same body whether or not it does; the lookup and the mail happen after the answer. No authentication required. Limited to 3 per address and 10 per IP per hour.
Request Body
Section titled “ Request Body ”The account’s address
object
Example
sam@example.euResponses
Section titled “ Responses ”Accepted
object
object
object
Example
{ "data": { "status": "accepted" }}The address is not an address
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
object
Example
{ "details": { "field": "email" }}Too many requests for this address or from this IP; see Retry-After
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
Example generated
{ "code": "example", "details": "example", "docs_url": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }, "next_actions": [ { "action": "example", "cli": "example", "description": "example", "http": "example", "tool": "example" } ], "reason": "example", "who_acts": "example"}Temporarily unavailable
object
object
object
The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.
Example generated
{ "code": "example", "details": "example", "docs_url": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }, "next_actions": [ { "action": "example", "cli": "example", "description": "example", "http": "example", "tool": "example" } ], "reason": "example", "who_acts": "example"}Live 582ac705 built