Skip to main content
PATCH
/
auth
/
change-email
cURL
curl --request PATCH \
  --url http://127.0.0.1:3000/api/auth/change-email \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "[email protected]",
  "token": "<string>",
  "code": "<string>"
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
email
string<email>
required
token
string
required
code
string
required

Response

200

Change email successfully

Last modified on December 10, 2025