staqlydocs
REST APIAPI referenceAccounts

Changing the email sign-in address, step 2 - change it with the new address's code

Changing the email sign-in address, step 2 - change it with the new address's code

Every request sends Authorization: Bearer ...: the access token in local mode, an API key stk_... in cloud mode. Use Send to try it against your cloud instance with your API key.

POST
/v1/account/sign-in-methods/email/change/new/verify

The person signs in with the new address from now on (the same person, sessions and other methods); the old address gets a notice. 409 identity_taken when the new address already signs in another person, change_not_verified when the step 1 confirmation expired.

Authorization

headerAuthorizationBearer <token>

API key (stk_...), or in the Community Edition the access token (stk_local_...)

Header Parameters

Idempotency-Key?string

Replays the stored response when the same key is repeated with the same method, path, query string and body within 24 hours (422 idempotency_mismatch with a different request, 409 idempotency_in_progress while the first one runs). Not applied to multipart uploads or to responses that carry a secret.

Lengthlength <= 200

Request Body

application/json
  1. body
email*string
new_email*string
code*string

Response Body

OK

application/json
  1. response
data*array<>
curl -X POST 'https://staqly.example.com/v1/account/sign-in-methods/email/change/new/verify' \  -H 'Content-Type: application/json' \  -d '{  "email": "string",  "new_email": "string",  "code": "string"}'
{  "data": [    {      "provider": "google",      "subject": "string",      "email": "string",      "name": "string",      "created_at": "2019-08-24T14:15:22Z",      "last_login_at": "2019-08-24T14:15:22Z"    }  ]}