Contact
Contact us and conversation endpoints
Submits a contact us message.
Business Logic:
Email Routing: Sends an email to recipients configured in
CONTACT_US_EMAIL_TObased on the operation type.User Notification: Optionally sends a copy to the user if
CONTACT_US_SEND_USERis enabled.Reply-To: Sets the Reply-To header to the user's email if
CONTACT_US_REPLY_TO_ONLY_USERis enabled.CC/BCC: Applies CC/BCC rules from
EMAIL_BCC_AND_CCsetting.Attachments: Validates and attaches files if provided.
Order Linking: Links the message to a specific order if required by the subject.
Dynamic Settings:
CONTACT_US_EMAIL_TO: Dictionary mapping operations to recipient emails.CONTACT_US_SEND_USER: Boolean to enable sending a copy to the user.CONTACT_US_REPLY_TO_ONLY_USER: Boolean to set user as the only Reply-To address.EMAIL_BCC_AND_CC: Configuration for CC and BCC recipients.
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=xyz789ID of the contact subject. Determines if an order reference is required.
Optional file attachment. Validated for allowed extensions and size limits.
ID of the related order. Required if the selected subject implies an order context. Must belong to the authenticated user.
Operation type key. Validated against configured contact email recipients (CONTACT_US_EMAIL_TO).
Message sent successfully
No content
Validation error
No content
Creates a new conversation or message.
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=xyz789Request body for creating a conversation or message.
Validation:
DataSourcecannot reply to a review.- Users must match the authenticated user and content owner.
The body of the message.
Type of user creating the conversation.
ID of the related content object (e.g., User ID).
Slug of the content type. Determines the context of the conversation.
ID of existing conversation to reply to.
ID of the datasource (if applicable).
ID of the user.
Subject of the conversation.
Model name of the item content. Used to link conversation to specific items.
ID of the specific item.
Type of conversation.
Whether the conversation is public.
Conversation created
Validation error
No content
Last updated
Was this helpful?

