Confirm your new sign-in email
const url = 'https://api.deploybase.eu/api/v1/api/v1/me/email-change/confirm';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"code":"7KQ2ZP"}'};
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/me/email-change/confirm \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "code": "7KQ2ZP" }'Checks the code mailed to the new address and makes it the sign-in address. You are then signed out everywhere and sign in with the new address. A change allows 5 tries and lasts 1 hour. Limited to 10 confirmations per person per hour. Requires a signed-in person: API keys are refused.
Authorizations
Section titled “ Authorizations ”Request Body
Section titled “ Request Body ”The code from the mail
object
Example
7KQ2ZPResponses
Section titled “ Responses ”OK
object
object
object
FormsStillNotifyingOldAddress are forms in the person’s teams whose recipients still name the old address. They are not changed: a team admin decides whether the new address should receive them. Always present, possibly empty.
object
Example
{ "data": { "email": "sam@new-mailbox.eu", "forms_still_notifying_old_address": [ { "form_id": "0b9e8f43-2d5c-4a51-9a3e-7c1d2e4f5a6b", "form_name": "Contact", "project_id": "5f0c1d2e-3a4b-4c5d-8e6f-7a8b9c0d1e2f", "team_name": "Acme" } ], "signed_out": true }}Malformed body, or EMAIL_CHANGE_CODE_INVALID with attempts_left
object
object
object
Example
{ "details": { "attempts_left": 3 }}Unauthorized
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}HUMAN_SESSION_REQUIRED
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}NO_EMAIL_CHANGE
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}EMAIL_TAKEN
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}EMAIL_CHANGE_CODE_EXPIRED: start again
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}EMAIL_DOMAIN_MANAGED
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Too many tries; see Retry-After
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Internal Server Error
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Live 174db30c built