Email#

Email change flow

Initiate email change#

POST/email/change

Start email change flow (session-authed, requires password)

Request Body#

{
  "new_email": "user@example.com",
  "password": "string"
}

Code Examples#

curl -X POST "https://platform.antfly.io/api/v1/email/change" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"new_email": "user@example.com",
"password": "string"
}'

Responses#

{
  "success": true
}

Confirm email change#

POST/email/confirm

Confirm email change with token from verification email

Request Body#

{
  "token": "string"
}

Code Examples#

curl -X POST "https://platform.antfly.io/api/v1/email/confirm" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"token": "string"
}'

Responses#

{
  "success": true
}