Add an email address
POST
/auth/v1/users/current/emailsAdds an email address to the authenticated account and sends a verification
code to it. The address becomes active only once it has been verified via
POST /auth/v1/email/verify. Subject to rate limiting per account.
Authorization
Bearer Authorization<token>
In: header
Request Body
requiredapplication/json{
"$ref": "#/components/schemas/internal_auth.addEmailBody",
"$ref-value": {
"properties": {
"email": {
"type": "string"
}
},
"required": [
"email"
],
"type": "object"
}
}Response Body
200application/json
Verification code sent to the new address
type: unknown
{
"$ref": "#/components/schemas/authv1.VerificationSentResponse",
"$ref-value": {
"properties": {
"can_resend_at": {
"type": "string"
},
"code_sent": {
"type": "boolean"
},
"message": {
"type": "string"
},
"verification_id": {
"type": "string"
}
},
"type": "object"
}
}curl -X POST "https://api.rixl.com/auth/v1/users/current/emails" \
-H "Content-Type: application/json" \
-d '{
"email": "string"
}'Verification code sent to the new address
application/json
{
"$ref": "#/components/schemas/authv1.VerificationSentResponse",
"$ref-value": {
"properties": {
"can_resend_at": {
"type": "string"
},
"code_sent": {
"type": "boolean"
},
"message": {
"type": "string"
},
"verification_id": {
"type": "string"
}
},
"type": "object"
}
}Verify email with a code POST
Verifies a user's email address using a verification id and the code sent to them.
Change the account email PUT
Starts changing the authenticated account's email address. A verification code is sent to the new address; the change is applied only after the code is confirmed via `POST /auth/v1/email/verify`. Subject to rate limiting per account.