Email management endpoints
Initiates a request to change the user's primary email address.
Business Logic:
Verification: Requires the user's current password to authorize the change.
Notifications:
Sends a confirmation email to the new email address.
Sends a confirmation SMS to the user's registered phone number.
**URL Format:** The notifications contain a signed URL pointing to the `/users/email-set-primary/{signed_email}/{user_id_key}/` endpoint.
Dynamic Settings:
NO_REPLY_EMAIL: Sender address for the email.
Notes:
The signed link is valid for 7 days.
CSRF token for write operations (POST, PUT, PATCH, DELETE). Required for security when using session authentication. Obtain token from cookie 'csrftoken' or meta tag in HTML.
abc123def456ghi789Session ID and CSRF token cookies.
Format: sessionid=<id>; osessionid=<id>; csrftoken=<token>
sessionid=abc123def456; osessionid=abc123def456; csrftoken=xyz789User ID.
The new email address. Must be different from the current email and not already in use.
The user's current password. Required for verification.
Email change requested
No content
Validation error (e.g., email exists, invalid password)
No content
Sets a verified email as the primary email address.
Signed email string
Signed user ID key
Email set as primary
No content
Invalid signature or error
No content
Verifies a user's email address via a signed link.
Business Logic:
Verification: Validates the signed email and user ID.
Next Step: Upon successful verification, it triggers a notification (Email and SMS) containing the link to set this email as primary.
URL Format: The new notification contains a signed URL pointing to
/users/email-set-primary/{signed_email}/{user_id_key}/.
Signed email string
Signed user ID key
Email verified
No content
Invalid signature
No content
Adds a new email address to the user's account.
Business Logic:
Notifications:
Sends a verification email to the new email address.
Sends a verification SMS to the user's registered phone number.
**URL Format:** The notifications contain a signed URL pointing to the `/users/email-verify/{signed_email}/{user_id_key}` endpoint.
Dynamic Settings:
NO_REPLY_EMAIL: Sender address for the email.
CSRF token for write operations (POST, PUT, PATCH, DELETE). Required for security when using session authentication. Obtain token from cookie 'csrftoken' or meta tag in HTML.
abc123def456ghi789Session ID and CSRF token cookies.
Format: sessionid=<id>; osessionid=<id>; csrftoken=<token>
sessionid=abc123def456; osessionid=abc123def456; csrftoken=xyz789Unique identifier for the email address. Read-only.
The email address. Required when adding a new email.
Indicates if the email address has been verified. Read-only.
Indicates if this is the primary email address for the user. Read-only.
Email added successfully
No content
Validation error
No content
Last updated
Was this helpful?

