API reference
List email campaigns
/api/v1/email/campaigns
The shop’s email campaigns, newest first: drafts, ones sending, and ones sent, with how many went out, were delivered, and bounced.
- Scope
- MCP tool
- email_campaigns_list
- Changes data
- No
Parameters
| Name | Type | Description |
|---|---|---|
limitquery · optional | integer | Results per page, 1-100 |
cursorquery · optional | string | The `next_cursor` from the previous page |
Request
curl "https://3commerce.com/api/v1/email/campaigns" \
-H "Authorization: Bearer 3c_live_…"Response
{
"data": [
{
"id": "1e3a5c7e-9b1d-4f3a-8c5e-7a9c1e3b5d70",
"subject": "The winter knits are in",
"preview_text": "Merino, cashmere, and a beanie to match.",
"body": "Our warmest pieces are back.",
"product_ids": [],
"segment": "repeat",
"status": "draft",
"recipients": 0,
"sent": 0,
"delivered": 0,
"bounced": 0,
"created_at": "2026-11-26T10:00:00.000Z",
"sent_at": null
}
],
"next_cursor": null
}Get an email campaign
/api/v1/email/campaigns/{id}
One campaign with its content and delivery counts.
- Scope
- MCP tool
- email_campaigns_get
- Changes data
- No
Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string (uuid) | The resource id |
Request
curl "https://3commerce.com/api/v1/email/campaigns/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c" \
-H "Authorization: Bearer 3c_live_…"Response
{
"id": "1e3a5c7e-9b1d-4f3a-8c5e-7a9c1e3b5d70",
"subject": "The winter knits are in",
"preview_text": "Merino, cashmere, and a beanie to match.",
"body": "Our warmest pieces are back.",
"product_ids": [],
"segment": "repeat",
"status": "draft",
"recipients": 0,
"sent": 0,
"delivered": 0,
"bounced": 0,
"created_at": "2026-11-26T10:00:00.000Z",
"sent_at": null
}Create a draft campaign
/api/v1/email/campaigns
Saves a new draft. Sending stays in the dashboard, where a member reviews it and confirms the audience, so the API never emails your customers in bulk.
- Scope
- MCP tool
- email_campaigns_create
- Changes data
- Yes
- Idempotency-Key
- Accepted
Parameters
| Name | Type | Description |
|---|---|---|
subjectbody · required | string | The subject line |
preview_textbody · optional | string | The line an inbox shows after the subject |
bodybody · required | string | The email, in plain text with blank lines between paragraphs |
product_idsbody · optional | array of string (uuid) | Products to feature |
segmentbody · optional | enum or null | The customer segment it goes to, or null for everyone who opted in |
Request
curl -X POST "https://3commerce.com/api/v1/email/campaigns" \
-H "Authorization: Bearer 3c_live_…" \
-H "Content-Type: application/json" \
-d '{
"subject": "Example subject",
"body": "Thanks for your order, it ships tomorrow."
}'Response
{
"id": "1e3a5c7e-9b1d-4f3a-8c5e-7a9c1e3b5d70",
"subject": "The winter knits are in",
"preview_text": "Merino, cashmere, and a beanie to match.",
"body": "Our warmest pieces are back.",
"product_ids": [],
"segment": "repeat",
"status": "draft",
"recipients": 0,
"sent": 0,
"delivered": 0,
"bounced": 0,
"created_at": "2026-11-26T10:00:00.000Z",
"sent_at": null
}Update a draft campaign
/api/v1/email/campaigns/{id}
Changes the fields you send on a draft and keeps the rest. A campaign already sent is 409 `invalid_status`.
- Scope
- MCP tool
- email_campaigns_update
- Changes data
- Yes
Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string (uuid) | The resource id |
subjectbody · optional | string | The subject line |
preview_textbody · optional | string | The line an inbox shows after the subject |
bodybody · optional | string | The email, in plain text with blank lines between paragraphs |
product_idsbody · optional | array of string (uuid) | Products to feature |
segmentbody · optional | enum or null | The customer segment it goes to, or null for everyone who opted in |
Request
curl -X PATCH "https://3commerce.com/api/v1/email/campaigns/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c" \
-H "Authorization: Bearer 3c_live_…" \
-H "Content-Type: application/json" \
-d '{}'Response
{
"id": "1e3a5c7e-9b1d-4f3a-8c5e-7a9c1e3b5d70",
"subject": "The winter knits are in",
"preview_text": "Merino, cashmere, and a beanie to match.",
"body": "Our warmest pieces are back.",
"product_ids": [],
"segment": "repeat",
"status": "draft",
"recipients": 0,
"sent": 0,
"delivered": 0,
"bounced": 0,
"created_at": "2026-11-26T10:00:00.000Z",
"sent_at": null
}Delete a draft campaign
/api/v1/email/campaigns/{id}
Deletes a draft. A campaign that went out stays, for its counts: deleting one is 409 `invalid_status`.
- Scope
- MCP tool
- email_campaigns_delete
- Changes data
- Yes
Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string (uuid) | The resource id |
Request
curl -X DELETE "https://3commerce.com/api/v1/email/campaigns/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c" \
-H "Authorization: Bearer 3c_live_…"Response
{
"id": "1e3a5c7e-9b1d-4f3a-8c5e-7a9c1e3b5d70",
"deleted": true
}List customer segments
/api/v1/email/segments
Every customer segment a campaign can target, with how many addresses it would reach now: opted in, less every suppressed address. `all` is the whole audience, followers included.
- Scope
- MCP tool
- email_segments
- Changes data
- No
Parameters
No parameters.
Request
curl "https://3commerce.com/api/v1/email/segments" \
-H "Authorization: Bearer 3c_live_…"Response
{
"all": 412,
"data": [
{
"key": "repeat",
"label": "Repeat",
"description": "2 or more orders",
"audience": 96
}
]
}List suppressed contacts
/api/v1/email/suppressions
Your customers and followers who get no marketing email, newest first, and why: they unsubscribed, their address bounced, or they reported spam. 1 list spans every shop, so an unsubscribe anywhere stops your campaigns too.
- Scope
- MCP tool
- email_suppressions
- Changes data
- No
Parameters
| Name | Type | Description |
|---|---|---|
limitquery · optional | integer | Results per page, 1-100 |
cursorquery · optional | string | The `next_cursor` from the previous page |
Request
curl "https://3commerce.com/api/v1/email/suppressions" \
-H "Authorization: Bearer 3c_live_…"Response
{
"data": [
{
"email": "lee@example.com",
"reason": "unsubscribed",
"since": "2026-10-12T08:00:00.000Z"
}
]
}