TrackMe API Docs

Begin an email change — send an OTP to the current verified email.

Step 1 of 4. Sends a 6-digit code to the user's current email. The code is valid for 10 minutes and the flow must complete within that window. Returns the challenge metadata so the client can render a resend timer.

POST
/api/v1/me/email-change/start

Authorization

bearerAuth
AuthorizationBearer <token>

AdonisJS access-token guard (middleware.auth({ guards: ["api"] })). Send Authorization: Bearer <oat_…> (issued by /auth/register, /auth/login, /auth/social/{google,apple}, or /auth/guest).

In: header

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v1/me/email-change/start"
{  "data": {    "challengeId": "otc_01jq8z6m1n2p3q4r5s6t7u8v9w",    "destination": "[email protected]",    "channel": "email",    "expiresAt": "2026-05-24T19:42:00.000Z",    "resendAvailableAt": "2026-05-24T19:33:00.000Z"  },  "meta": {    "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7"  }}
{  "error": {    "code": "AUTH_REQUIRED",    "message": "Authentication is required to access this resource."  },  "meta": {    "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7"  }}