Skip to content

API reference

Engagement

Read and answer comments and conversations, triage the inbox, and keep notifications in check.

List comments

GET/api/v1/comments

Shopper comments and ratings on your products, newest first, with your reply if any. Filter by product, by visibility, or to unanswered ones (visible comments with no reply).

Scope
engagement:read
MCP tool
comments_list
Changes data
No

Parameters

NameTypeDescription
product_idquery · optionalstring (uuid)Only comments on this product
statusquery · optionalenumOnly visible or only hidden commentsone of visible, hidden
unansweredquery · optionalbooleanOnly visible comments the shop has not replied to
limitquery · optionalintegerResults per page, 1-1001-100default 25
cursorquery · optionalstringThe `next_cursor` from the previous page

Request

curl "https://3commerce.com/api/v1/comments" \
  -H "Authorization: Bearer 3c_live_…"

Response

200 OK
{
  "data": [
    {
      "id": "6f1c…",
      "author_name": "Maya Chen",
      "avatar_url": null,
      "rating": 5,
      "body": "The linen is even softer in person.",
      "reply": "Thank you, Maya! Wash it cold to keep it that way.",
      "replied_at": "2026-11-20T15:04:00.000Z",
      "liked": true,
      "status": "visible",
      "created_at": "2026-11-19T09:12:00.000Z",
      "product": {
        "id": "2a9d…",
        "slug": "linen-overshirt",
        "title": "Linen overshirt"
      }
    }
  ],
  "next_cursor": null
}

Reply to a comment

POST/api/v1/comments/{id}/reply

Posts the shop’s public reply under a comment on the product page. Replying again replaces the earlier reply.

Scope
engagement:write
MCP tool
comments_reply
Changes data
Yes

Parameters

NameTypeDescription
idpath · requiredstring (uuid)The resource id
bodybody · requiredstringThe reply, 1-1000 characters1-1000 chars

Request

curl -X POST "https://3commerce.com/api/v1/comments/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c/reply" \
  -H "Authorization: Bearer 3c_live_…" \
  -H "Content-Type: application/json" \
  -d '{
  "body": "Thanks for your order, it ships tomorrow."
}'

Response

201 Created
{
  "id": "6f1c…",
  "author_name": "Maya Chen",
  "avatar_url": null,
  "rating": 5,
  "body": "The linen is even softer in person.",
  "reply": "Thank you, Maya! Wash it cold to keep it that way.",
  "replied_at": "2026-11-20T15:04:00.000Z",
  "liked": true,
  "status": "visible",
  "created_at": "2026-11-19T09:12:00.000Z",
  "product": {
    "id": "2a9d…",
    "slug": "linen-overshirt",
    "title": "Linen overshirt"
  }
}

Hide a comment

POST/api/v1/comments/{id}/hide

Hides a comment from the storefront. It stays in your feed and can be shown again with `comments.unhide`.

Scope
engagement:write
MCP tool
comments_hide
Changes data
Yes

Parameters

NameTypeDescription
idpath · requiredstring (uuid)The resource id

Request

curl -X POST "https://3commerce.com/api/v1/comments/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c/hide" \
  -H "Authorization: Bearer 3c_live_…" \
  -H "Content-Type: application/json" \
  -d '{}'

Response

201 Created
{
  "id": "6f1c…",
  "author_name": "Maya Chen",
  "avatar_url": null,
  "rating": 5,
  "body": "The linen is even softer in person.",
  "reply": "Thank you, Maya! Wash it cold to keep it that way.",
  "replied_at": "2026-11-20T15:04:00.000Z",
  "liked": true,
  "status": "hidden",
  "created_at": "2026-11-19T09:12:00.000Z",
  "product": {
    "id": "2a9d…",
    "slug": "linen-overshirt",
    "title": "Linen overshirt"
  }
}

Show a hidden comment

POST/api/v1/comments/{id}/unhide

Shows a hidden comment on the storefront again.

Scope
engagement:write
MCP tool
comments_unhide
Changes data
Yes

Parameters

NameTypeDescription
idpath · requiredstring (uuid)The resource id

Request

curl -X POST "https://3commerce.com/api/v1/comments/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c/unhide" \
  -H "Authorization: Bearer 3c_live_…" \
  -H "Content-Type: application/json" \
  -d '{}'

Response

201 Created
{
  "id": "6f1c…",
  "author_name": "Maya Chen",
  "avatar_url": null,
  "rating": 5,
  "body": "The linen is even softer in person.",
  "reply": "Thank you, Maya! Wash it cold to keep it that way.",
  "replied_at": "2026-11-20T15:04:00.000Z",
  "liked": true,
  "status": "visible",
  "created_at": "2026-11-19T09:12:00.000Z",
  "product": {
    "id": "2a9d…",
    "slug": "linen-overshirt",
    "title": "Linen overshirt"
  }
}

List conversations

GET/api/v1/messages

The inbox: 1 row per customer email, latest activity first, with the last message and how many of the customer’s messages are unread. `q` matches names, emails, and message text.

Scope
engagement:read
MCP tool
messages_threads
Changes data
No

Parameters

NameTypeDescription
qquery · optionalstringSearch names, emails, and message textmax 100 charsdefault ""
limitquery · optionalintegerResults per page, 1-1001-100default 25
cursorquery · optionalstringThe `next_cursor` from the previous page

Request

curl "https://3commerce.com/api/v1/messages" \
  -H "Authorization: Bearer 3c_live_…"

Response

200 OK
{
  "data": [
    {
      "customer_email": "sam@example.com",
      "customer_name": "Sam Rivera",
      "avatar_url": null,
      "last_message": {
        "body": "Does the jacket run large?",
        "direction": "in",
        "created_at": "2026-11-24T18:30:00.000Z"
      },
      "unread": 1
    }
  ],
  "next_cursor": null
}

Get a conversation

GET/api/v1/messages/{email}

Every message between the shop and 1 customer, oldest first. `in` messages come from the customer and `out` ones from the shop. Reading does not mark them read: call `messages.mark_read`.

Scope
engagement:read
MCP tool
messages_thread
Changes data
No

Parameters

NameTypeDescription
emailpath · requiredstringThe customer’s email address, URL-encoded in the path3-254 chars

Request

curl "https://3commerce.com/api/v1/messages/ada@example.com" \
  -H "Authorization: Bearer 3c_live_…"

Response

200 OK
{
  "customer_email": "sam@example.com",
  "customer_name": "Sam Rivera",
  "avatar_url": null,
  "messages": [
    {
      "id": "91be…",
      "direction": "in",
      "body": "Does the jacket run large?",
      "created_at": "2026-11-24T18:30:00.000Z"
    },
    {
      "id": "3c07…",
      "direction": "out",
      "body": "It runs true to size.",
      "created_at": "2026-11-24T19:02:00.000Z"
    }
  ]
}

Reply in a conversation

POST/api/v1/messages/{email}

Sends the shop’s reply to a customer who has already written to you: it is saved in the conversation, emailed to the shopper with the shop owner as reply-to, and the conversation becomes `pending` until they answer. `emailed` is false when the address bounced or reported spam. It cannot start a conversation: an email with no thread is a 404.

Scope
engagement:write
MCP tool
messages_send
Changes data
Yes

Parameters

NameTypeDescription
emailpath · requiredstringThe customer’s email address, URL-encoded in the path3-254 chars
bodybody · requiredstringThe reply, 1-2000 characters1-2000 chars

Request

curl -X POST "https://3commerce.com/api/v1/messages/ada@example.com" \
  -H "Authorization: Bearer 3c_live_…" \
  -H "Content-Type: application/json" \
  -d '{
  "body": "Thanks for your order, it ships tomorrow."
}'

Response

201 Created
{
  "id": "3c07…",
  "direction": "out",
  "body": "It runs true to size.",
  "created_at": "2026-11-24T19:02:00.000Z",
  "emailed": true,
  "conversation_status": "pending"
}

Mark a conversation read

POST/api/v1/messages/{email}/read

Marks every unread message from 1 customer read, as opening the conversation in the dashboard does.

Scope
engagement:write
MCP tool
messages_mark_read
Changes data
Yes

Parameters

NameTypeDescription
emailpath · requiredstringThe customer’s email address, URL-encoded in the path3-254 chars

Request

curl -X POST "https://3commerce.com/api/v1/messages/ada@example.com/read" \
  -H "Authorization: Bearer 3c_live_…" \
  -H "Content-Type: application/json" \
  -d '{}'

Response

201 Created
{
  "customer_email": "sam@example.com",
  "marked": 1
}

List inbox conversations

GET/api/v1/conversations

The help desk view of the inbox: each conversation’s `status` (open, pending, closed), priority, and assignee, urgent first, then latest. `filter` narrows to unread, high priority, or unassigned ones.

Scope
engagement:read
MCP tool
conversations_list
Changes data
No

Parameters

NameTypeDescription
statusquery · optionalenumWhich status; `all` for every oneone of open, pending, closed, alldefault "open"
filterquery · optionalenumA narrower viewone of unread, urgent, unassigned
qquery · optionalstringSearch names, emails, and message textmax 100 charsdefault ""
limitquery · optionalintegerResults per page, 1-1001-100default 25
cursorquery · optionalstringThe `next_cursor` from the previous page

Request

curl "https://3commerce.com/api/v1/conversations" \
  -H "Authorization: Bearer 3c_live_…"

Response

200 OK
{
  "data": [
    {
      "customer_email": "sam@example.com",
      "customer_name": "Sam Rivera",
      "avatar_url": null,
      "last_message": {
        "body": "Does the jacket run large?",
        "direction": "in",
        "created_at": "2026-11-24T18:30:00.000Z"
      },
      "unread": 1,
      "status": "open",
      "priority": "normal",
      "assignee": null
    }
  ],
  "next_cursor": null
}

Update a conversation

PATCH/api/v1/conversations/{email}

Sets a conversation’s `status`, `priority`, or `assignee`: the email of a team member who can reply to customers, or an empty string to unassign. Anyone else is 422 `invalid_assignee`.

Scope
engagement:write
MCP tool
conversations_update
Changes data
Yes

Parameters

NameTypeDescription
emailpath · requiredstringThe customer’s email address, URL-encoded in the path3-254 chars
statusbody · optionalenumWhere it standsone of open, pending, closed
prioritybody · optionalenumHow urgent it isone of low, normal, high, urgent
assigneebody · optionalstringA team member’s email, or empty to unassignmax 254 chars

Request

curl -X PATCH "https://3commerce.com/api/v1/conversations/ada@example.com" \
  -H "Authorization: Bearer 3c_live_…" \
  -H "Content-Type: application/json" \
  -d '{}'

Response

200 OK
{
  "customer_email": "sam@example.com",
  "customer_name": "Sam Rivera",
  "avatar_url": null,
  "last_message": {
    "body": "Does the jacket run large?",
    "direction": "in",
    "created_at": "2026-11-24T18:30:00.000Z"
  },
  "unread": 1,
  "status": "closed",
  "priority": "normal",
  "assignee": null
}

List saved replies

GET/api/v1/saved-replies

The shop’s canned responses for the inbox, by title.

Scope
engagement:read
MCP tool
saved_replies_list
Changes data
No

Parameters

NameTypeDescription
limitquery · optionalintegerResults per page, 1-1001-100default 25
cursorquery · optionalstringThe `next_cursor` from the previous page

Request

curl "https://3commerce.com/api/v1/saved-replies" \
  -H "Authorization: Bearer 3c_live_…"

Response

200 OK
{
  "data": [
    {
      "id": "7e1f…",
      "title": "Sizing",
      "body": "Our sizes run true to size."
    }
  ],
  "next_cursor": null
}

Create a saved reply

POST/api/v1/saved-replies

Saves a canned response the team can drop into a reply.

Scope
engagement:write
MCP tool
saved_replies_create
Changes data
Yes
Idempotency-Key
Accepted

Parameters

NameTypeDescription
titlebody · requiredstringIts name in the picker1-60 chars
bodybody · requiredstringThe reply text1-2000 chars

Request

curl -X POST "https://3commerce.com/api/v1/saved-replies" \
  -H "Authorization: Bearer 3c_live_…" \
  -H "Content-Type: application/json" \
  -d '{
  "title": "Linen overshirt",
  "body": "Thanks for your order, it ships tomorrow."
}'

Response

201 Created
{
  "id": "7e1f…",
  "title": "Sizing",
  "body": "Our sizes run true to size."
}

Delete a saved reply

DELETE/api/v1/saved-replies/{id}

Deletes 1 of the shop’s saved replies.

Scope
engagement:write
MCP tool
saved_replies_delete
Changes data
Yes

Parameters

NameTypeDescription
idpath · requiredstring (uuid)The resource id

Request

curl -X DELETE "https://3commerce.com/api/v1/saved-replies/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c" \
  -H "Authorization: Bearer 3c_live_…"

Response

200 OK
{
  "id": "7e1f…",
  "deleted": true
}

List notifications

GET/api/v1/notifications

The shop’s activity feed, newest first: orders, comments, follows, refunds, payouts, likes, and system notices. Filter by kind or to unread ones.

Scope
engagement:read
MCP tool
notifications_list
Changes data
No

Parameters

NameTypeDescription
kindquery · optionalenumOnly notifications of this kindone of order, comment, follow, refund, payout, like, system
unreadquery · optionalbooleanOnly unread notifications
limitquery · optionalintegerResults per page, 1-1001-100default 25
cursorquery · optionalstringThe `next_cursor` from the previous page

Request

curl "https://3commerce.com/api/v1/notifications" \
  -H "Authorization: Bearer 3c_live_…"

Response

200 OK
{
  "data": [
    {
      "id": "b4e2…",
      "kind": "order",
      "title": "New order #1042",
      "body": "Sam Rivera bought 2 items for $148.00.",
      "href": "/dashboard/orders/1042",
      "read": false,
      "read_at": null,
      "created_at": "2026-11-25T08:41:00.000Z"
    }
  ],
  "next_cursor": null
}

Mark a notification read

POST/api/v1/notifications/{id}/read

Marks 1 notification read and returns it. A notification already read keeps its first `read_at`.

Scope
engagement:write
MCP tool
notifications_mark_read
Changes data
Yes

Parameters

NameTypeDescription
idpath · requiredstring (uuid)The resource id

Request

curl -X POST "https://3commerce.com/api/v1/notifications/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c/read" \
  -H "Authorization: Bearer 3c_live_…" \
  -H "Content-Type: application/json" \
  -d '{}'

Response

201 Created
{
  "id": "b4e2…",
  "kind": "order",
  "title": "New order #1042",
  "body": "Sam Rivera bought 2 items for $148.00.",
  "href": "/dashboard/orders/1042",
  "read": true,
  "read_at": "2026-11-25T09:00:00.000Z",
  "created_at": "2026-11-25T08:41:00.000Z"
}

Mark every notification read

POST/api/v1/notifications/read-all

Marks all of the shop’s unread notifications read and returns how many changed.

Scope
engagement:write
MCP tool
notifications_mark_all_read
Changes data
Yes

Parameters

No parameters.

Request

curl -X POST "https://3commerce.com/api/v1/notifications/read-all" \
  -H "Authorization: Bearer 3c_live_…" \
  -H "Content-Type: application/json" \
  -d '{}'

Response

201 Created
{
  "marked": 4
}