Skip to content

Messages

View .mdllms.txt

Conversations between buyers, sellers and the marketplace. Generated from the OpenAPI spec. Each endpoint says which key it needs; see Authentication.

Method Path What it does
GET /v1/me/conversations The signed-in user’s conversations
POST /v1/me/conversations Ask about a listing or an order, or write to the marketplace
GET /v1/me/conversations/{id}/messages Read a conversation
POST /v1/me/conversations/{id}/messages Reply in a conversation

GET /v1/me/conversations · operation listMyConversations

Latest first, with the last message and how many are unread.

Auth: your secret key (Authorization: Bearer sk_…) and the user’s session (X-User-Session: …), from your server

Parameters

Name In Type Notes
limit query integer ≥ 1; ≤ 100; default 50
offset query integer ≥ 0

Responses: 200 ConversationListOutputBody · default a problem

Ask about a listing or an order, or write to the marketplace

Section titled “Ask about a listing or an order, or write to the marketplace”

POST /v1/me/conversations · operation startConversation

About a listing or an order, the question goes where the marketplace says (questions_to in GET /v1/marketplace): to its team, in a support thread for that listing or order (sellers may ask about their own listings at any stage), or to the seller (for an order, the buyer or seller). With support, to the team in general. Continues the existing conversation if there is one.

Auth: your secret key (Authorization: Bearer sk_…) and the user’s session (X-User-Session: …), from your server

Body (application/json): StartConversationRequest

Responses: 201 StartOutputBody · default a problem

GET /v1/me/conversations/{id}/messages · operation readMyConversation

Oldest first; marks them read.

Auth: your secret key (Authorization: Bearer sk_…) and the user’s session (X-User-Session: …), from your server

Parameters

Name In Type Notes
id * path string
after query integer Only messages after this id. ≥ 0
limit query integer ≥ 1; ≤ 200; default 100

Responses: 200 MessagesOutputBody · default a problem

POST /v1/me/conversations/{id}/messages · operation sendMessage

Auth: your secret key (Authorization: Bearer sk_…) and the user’s session (X-User-Session: …), from your server

Parameters

Name In Type Notes
id * path string

Body (application/json): MessageInput

Responses: 201 MessageBody · default a problem

Fields marked * are always present in responses and required in requests.

Field Type Notes
items * ConversationBody[]
Field Type Notes
body * string max 5000 chars
listing_id string
order_id string
support boolean To the marketplace
Field Type Notes
conversation * ConversationBody
message * MessageBody
Field Type Notes
items * MessageBody[]
Field Type Notes
body * string max 5000 chars
Field Type Notes
at * string (date-time)
body * string
from_marketplace * boolean Written by the marketplace (support)
id * integer
sender_id string The user who wrote it
Field Type Notes
id * string
kind * string support: with the marketplace’s team (in general, or about listing_id or order_id); listing or order: between buyer and seller. one of listing, order, support
last_message string
last_message_at * string (date-time)
listing_id string The listing it’s about
order_id string The order it’s about
unread * integer
user_a * string The buyer, or the user asking for support
user_b string The seller (not in support conversations)