Send a message to the business
const url = 'https://api.sevigram.com/storefront/v1/contact';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.sevigram.com/storefront/v1/contact \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \Rate limited per shopper IP. Never cached. A private-token call without X-Sevigram-Buyer-IP is contact-limited by the calling server’s own IP, so every shopper behind that server shares one budget (5 per minute by default); SSR servers should send X-Sevigram-Buyer-IP with the shopper’s address.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Example generated
{ "name": "example", "message": "example"}Responses
Section titled “Responses”Accepted
object
object
Example
{ "data": { "status": "received" }}Headers
Section titled “Headers”Request correlation id, echoed or generated.
Never cached.
Invalid request. Codes validation_error, invalid_cursor, invalid_buyer_ip.
object
object
Optional structured detail (for example per-field validation messages). Omitted when there is none.
Example
{ "error": { "code": "validation_error" }}Headers
Section titled “Headers”Request correlation id, echoed or generated.
Never cached.
Missing or unknown token. Code invalid_token.
object
object
Optional structured detail (for example per-field validation messages). Omitted when there is none.
Example
{ "error": { "code": "invalid_token" }}Headers
Section titled “Headers”Request correlation id, echoed or generated.
Never cached.
Codes origin_not_allowed, storefront_disabled, demo_shop_read_only, private_token_required.
object
object
Optional structured detail (for example per-field validation messages). Omitted when there is none.
Example
{ "error": { "code": "origin_not_allowed" }}Headers
Section titled “Headers”Request correlation id, echoed or generated.
Never cached.
Too many requests. Code rate_limited.
object
object
Optional structured detail (for example per-field validation messages). Omitted when there is none.
Example
{ "error": { "code": "rate_limited" }}Headers
Section titled “Headers”Request correlation id, echoed or generated.
Never cached.
Whole seconds to wait, rounded up.
An upstream is unavailable. Code service_unavailable.
object
object
Optional structured detail (for example per-field validation messages). Omitted when there is none.
Example
{ "error": { "code": "service_unavailable" }}Headers
Section titled “Headers”Request correlation id, echoed or generated.
Never cached.
Always 5.