Change the account email
PUT
/auth/v1/users/current/emails/changeStarts 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.
Authorization
Bearer Authorization<token>
In: header
Request Body
requiredapplication/json{
"$ref": "#/components/schemas/internal_auth.changeEmailBody",
"$ref-value": {
"properties": {
"new_email": {
"type": "string"
}
},
"required": [
"new_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 PUT "https://api.rixl.com/auth/v1/users/current/emails/change" \
-H "Content-Type: application/json" \
-d '{
"new_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"
}
}Add an email address POST
Adds 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.
Leave an organization DELETE
Removes the authenticated user's own membership from the organization.