Search Documentation
Search for a documentation page...
Contact Messages API
REST API endpoint for store contact form submissions.
Contact messages are submissions from your store's contact form. Creating one saves the message against the store and triggers an email notification to the merchant. This is intended for storefronts and external integrations that collect messages from visitors.
Create Contact Message
Saves a contact form message and notifies the merchant by email. The email notification is sent in the background, so the response returns as soon as the message is stored.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
email | string | Yes | Sender email address |
message | string | Yes | Message content (1-5000 characters) |
Response (201)
A 400 is returned with { error, details } when the email is malformed or the message is empty or over 5000 characters.