Buyer messages and the Crossly inbox
Every conversation Crossly syncs (Poshmark, Mercari, Depop, Grailed, Vinted, eBay, Etsy, Facebook Marketplace, the Crossly store…) has the same shape, keyed on platform + platformConversationId. You read them, reply, and Crossly's servers deliver the reply on the marketplace the buyer wrote on.
Auth: see the crossly-api-setup skill. Pagination, errors, idempotency: crossly-api-conventions. Offers inside conversations: crossly-pricing-offers.
Setup
- Create a free Crossly account: https://crossly.net/register
- Create a personal access token at https://crossly.net/settings/api/tokens/new (guide: https://crossly.net/guides/personal-access-tokens). Use a
crossly_pat_test_token against the sandbox while building. - Export it as
CROSSLY_PATand send it asAuthorization: Bearer $CROSSLY_PATtohttps://crossly.net/api/v1/*. Full docs: https://crossly.net/docs
Pick the right scope
| Scope | Reaches | Cannot |
|---|---|---|
messages:read |
GET /v1/conversations, GET /v1/conversations/{id}/messages, message.* webhooks |
anything under /v1/inbox, offers |
messages:write |
POST /v1/conversations/{id}/messages (reply) |
accept, counter, decline or send offers |
inbox:read |
everything above, plus every inbox read (GET /v1/inbox, GET /v1/inbox/{id}, counts, canned responses), offers (GET /v1/offers), GET /v1/video-requests |
|
inbox:write |
replies, offer actions, status changes, bulk actions, canned responses, AI suggestions, video answers |
Ask for messages:* when an app only needs to talk to buyers (a fulfilment or helpdesk integration). The /v1/conversations routes accept either scope family. The /v1/inbox routes need inbox:*.
Find conversations
GET /v1/conversations (newest activity first, limit max 100) is built for integrations:
| Query | Meaning |
|---|---|
orderId |
the thread(s) about that order: same platform, the order's listing, its buyer. Unknown order: 404 order_not_found |
listingId |
threads about that listing |
platform |
one marketplace |
updatedSince |
ISO 8601: only threads with activity at or after it (poll with your last call time) |
search |
contains-match on buyer username or subject (max 200 chars) |
GET /v1/inbox is the dashboard view: page, limit (max 100) and filter:
unread: not opened, not deleted or spam, with at least one message.needs_reply: open, latest message is the buyer's or a pending offer, from a person (not marketplace mail), active in the last 30 days.
The SDK's inbox.list also types platform and unread, but the route ignores them. Use filter, or /v1/conversations?platform=.
A conversation row carries id (what you pass everywhere), platform, status (open, replied, closed, spam), isRead, isStarred, labels, listingId / inventoryItemId (best-effort link, may be null), buyerUsername, buyerPlatformId, subject, hasOffer, offerAmount (decimal string, dollars), offerStatus, platformConversationUrl, lastMessageAt, and on /v1/inbox rows canSendOffer.
import { createClient } from '@crossly/sdk';
const crossly = createClient({ pat: process.env.CROSSLY_PAT! });
// The thread about an order, then its messages since our last sync.
const { data: threads } = await crossly.conversations.list({ orderId: order.id });
for (const t of threads) {
const { data: msgs } = await crossly.conversations.messages(t.id, { since: lastSync, limit: 200 });
for (const m of msgs) if (m.sender === 'buyer') handle(t, m);
}
GET /v1/conversations/{id}/messages returns messages oldest first (limit max 200, since). GET /v1/inbox/{id} (SDK inbox.get) returns the conversation with its messages and the item it's about (itemTitle, itemThumbnail, itemPrice, itemCurrency, itemUrl, crosslyListingSlug, canSendOffer). Inbox messages also carry AI triage fields (aiIntent, aiUrgency, aiScamScore, aiSuggestedReply) and, for offers made in the thread, offerAmount + offerStatus.
Badges: GET /v1/inbox/counts → { unread: { conversations, offers, total }, needsReply: { conversations, offers, total, windowDays }, openOffers } (SDK inbox.counts()); GET /v1/inbox/conversations/unread-count → { count } for threads only.
Reply
Use POST /v1/conversations/{id}/messages with { body } (1-8000 chars, plain text). It works with messages:write or inbox:write.
const sent = await crossly.conversations.reply(thread.id, // POST /v1/conversations/{id}/messages
{ body: 'Thanks! It ships tomorrow morning.' },
{ idempotencyKey: crypto.randomUUID() });
// 201 { id, conversationId, sender: 'seller', body, sentAt, deliveryStatus: 'sending', jobId }
curl -X POST https://crossly.net/api/v1/conversations/c1d2e3f4-5a6b-7c8d-9e0f-1a2b3c4d5e6f/messages \
-H "Authorization: Bearer $CROSSLY_PAT" -H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{ "body": "Thanks! It ships tomorrow morning." }'
The message is in the thread at once with deliveryStatus: 'sending' and settles to sent or failed when the marketplace call finishes. Re-read the thread to see it. A thread that can't take a reply is refused before anything is written: 422 reply_not_supported with details.reason no_reply_sender (a no-reply marketplace sender) or reply_not_supported (for example an ingested order-chat thread). A thread found only through email needs the account reconnected first.
POST /v1/inbox/{id}/reply (inbox:write) is the older twin. It takes { body } too and answers { jobId, messageId, deliveryStatus }. Its refusals are 400 no_reply_sender / reply_not_supported. Don't call it through crossly.inbox.reply(): the published SDK sends the text as message, which the route rejects. Use crossly.conversations.reply().
Manage threads
All inbox:write:
PATCH /v1/inbox/conversations/{id}:{ isRead?, status? }withstatusone ofopen,closed,replied,spam(SDKinbox.updateConversation). An empty body is 400no_fields_to_update.POST /v1/inbox/conversations/bulk:{ conversationIds, action: 'mark_read' | 'mark_unread' | 'delete' }→{ affected }(SDKinbox.bulkAction).deletehides the thread; a new buyer message brings it back.POST /v1/inbox/ai-suggest{ conversationId }→{ suggestion }(SDKinbox.aiSuggest). It runs on the seller's own AI provider key. An empty thread isempty_conversation.POST /v1/inbox/conversations/bulk-ai-respond{ conversationIds, mode: 'draft' | 'send' }.sendreplies to every thread with no review, including ones already answered.POST /v1/inbox/messages/{id}/triagere-runs intent / urgency / scam scoring on a buyer message (cannot_triage_seller_messagefor your own).
Treat a high aiScamScore as a stop sign: don't auto-reply to it, and never move a buyer off-platform.
Saved replies (canned responses)
These are message templates. The Templates tag (/v1/me/templates) is listing templates, not messages. Read with inbox:read, change with inbox:write:
await crossly.inbox.cannedResponsesCreate( // POST /v1/inbox/canned-responses
{ name: 'Still available', body: 'Yes, it is still available. Happy to answer any questions!' },
{ idempotencyKey: crypto.randomUUID() });
const { cannedResponses } = await crossly.inbox.cannedResponsesList() as { cannedResponses: Array<{ id: string; name: string; body: string }> };
PUT /v1/inbox/canned-responses/{id} edits one, DELETE /v1/inbox/canned-responses/{id} deletes one, and PUT /v1/inbox/canned-responses/order takes every id in the new order (max 500). A missing, unknown or repeated id is refused and nothing changes.
Automatic replies are workflow nodes, not REST endpoints: inbox.send_canned, inbox.send_message, inbox.reply, inbox.send_thank_you, inbox.ai_suggest_reply, inbox.archive_scam, triggered by on.message.received or order events. Build them with /v1/workflows (crossly-workflows). The vacation auto-reply is a seller setting, not an API call.
Order chat and messaging a buyer first
GET /v1/orders/{id}/order-chat(orders:read) andPOST /v1/orders/{id}/order-chat(orders:write,{ body }1-2000 chars): a marketplace's per-order chat, where the platform has one (Poshmark today). Any other order is 409. The response hascanSend. SDKcrossly.orders.orderChat.list(id)/.send(id, { body }).POST /v1/orders/{id}/message(orders:write,{ body, subject? }): start a message to an order's buyer (eBay). SDKcrossly.orders.messageBuyer. Everywhere else you can only reply inside a thread the buyer started.
Video requests
Buyers can ask for a video of an item: GET /v1/video-requests?status=open|answered|declined|all (inbox:read). To answer, get an upload with POST /v1/video-requests/upload-url ({ fileName, contentType, contentLength }), PUT the file to uploadUrl with the same Content-Type and exact Content-Length, then call POST /v1/video-requests/{id}/answer with { videoUrl: publicUrl, note? }. Or call POST /v1/video-requests/{id}/decline. These writes need inbox:write. SDK crossly.videoRequests.{list,uploadUrl,answer,decline}.
Webhooks instead of polling
message.received fires when a buyer writes: { conversationId, platform, buyerUsername, platformMessageId, body, sentAt }. An OAuth app receives it with inbox:read or messages:read. Offer events (offer.received, offer.accepted, offer.declined, offer.countered, offer.updated) need inbox:read or listings:read. See crossly-webhooks. On a webhook, fetch the thread by conversationId and dedupe on platformMessageId.
Rules
- Grant
messages:*to apps that only talk to buyers; keepinbox:*for tools that also handle offers or thread status. - Reply with
crossly.conversations.reply()({ body }), and send anIdempotency-Keyso a retried reply isn't sent twice. - Check
deliveryStatusbefore telling anyone a reply went out.sendingis not delivered, andfailedneeds a retry or a manual answer. - Don't treat
listingId: nullas "not about a listing". The link is best-effort. - Buyer names and messages are personal data: don't log bodies, and never send AI replies to threads flagged as likely scams.
- Use
bulk-ai-respondwithmode: 'send'only on threads you have selected as still needing an answer.
Docs: https://crossly.net/docs/api-inbox · https://crossly.net/docs/unified-inbox · https://crossly.net/docs/auto-reply-and-templates · https://crossly.net/docs/offers
