Requests to change email to a new address. Requires proof of original email verification. Sends confirmation code to new email address for verification.
curl --request POST \
--url https://api.fluxer.app/v1/users/@me/email-change/request-new \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"ticket": "<string>",
"new_email": "jsmith@example.com",
"original_proof": "<string>"
}
'{
"ticket": "<string>",
"new_email": "<string>",
"new_code_expires_at": "<string>",
"resend_available_at": "<string>"
}Bot token: Authorization: Bot <token>. This is the primary authentication method for bot applications.
Success
Ticket associated with the email change attempt
The new email address the user wants to verify
ISO8601 timestamp when the new email code expires
ISO8601 timestamp when the new email code can be resent
curl --request POST \
--url https://api.fluxer.app/v1/users/@me/email-change/request-new \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"ticket": "<string>",
"new_email": "jsmith@example.com",
"original_proof": "<string>"
}
'{
"ticket": "<string>",
"new_email": "<string>",
"new_code_expires_at": "<string>",
"resend_available_at": "<string>"
}