Confirm an email address
const url = 'https://api.deploybase.eu/api/v1/api/v1/public/email-verification';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"code":"example","email":"sam@example.eu","user_id":"69629026806489455"}'};
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/email-verification \ --header 'Content-Type: application/json' \ --data '{ "code": "example", "email": "sam@example.eu", "user_id": "69629026806489455" }'Checks a sign-up code, from the link (user_id + code) or typed on the sign-up page (email + code). A typed code that fails for any reason answers one ACCOUNT_CODE_INVALID without a reason, so it cannot tell whether the address has an account. No authentication required. Limited to 10 per account and 30 per IP per hour.
Request Body
Section titled “ Request Body ”User_id or email, and the code
object
Example
sam@example.euExample
69629026806489455Responses
Section titled “ Responses ”OK
object
object
object
Example
{ "data": { "status": "done" }}The code did not work (ACCOUNT_CODE_INVALID), or the request is incomplete (INVALID_INPUT)
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": { "reason": "used" }}Too many attempts; 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