Skip to content
Coursey CreativeSign in

GET /messages

/api/store/[slug]/messages

Fetches the authenticated storefront customer's message thread with the business (portal messages, form submissions, and admin replies), oldest first.

Customer bearer token requiredHow authentication works

Path parameters

slugstringrequired

Business (store) slug the conversation belongs to

Query parameters

limitnumberoptional

Maximum number of messages to return; coerced integer between 1 and 200.

Default 100

Responses

200

The request succeeded.

400

A field failed validation. The response names the fields that failed, not just the first.

401

The key or customer token is missing, malformed, or no longer valid.

403

The credential is valid but is not allowed to do this.

404

No such store, or no such record inside it.

500

Something failed on our side. The response carries no detail; retry is safe on a GET.

503

A service this endpoint depends on is unavailable, usually Stripe.

What comes back

200 with { success: true, data: { customer_email, messages: [...] } }; each message has id, direction ('inbound'|'outbound'), source, message_subject, message_body, status, created_at, sent_by_ccp_account_id, and team_sender_display_name (for outbound admin replies). Errors: { success: false, error } with 400/401/403/404/500/503. CORS-enabled; OPTIONS preflight supported.