Skip to content
Markets open

API reference

Route messages

Buyer and seller conversations about a route.

3 operationsBase URL https://packetexchange.io/api/v1Postman collection

List your route conversations

GET/api/v1/route-messages/threads

Access
API key. Full-access keys only; not reachable by scoped keys.
Rate limit
100 requests per second (the default)

The other party is shown by a label, never by account.

Response 200

FieldTypeDescription
datarequiredobject[]-
routeIdrequireddata[].routeIdstring (uuid)-
buyerIdrequireddata[].buyerIdstring (uuid)-
rolerequireddata[].rolestring-One of buyer, seller
routeNamerequireddata[].routeNamestringThe listing name as a buyer reads it: generated by the platform, never the seller's text, and ending in the listing reference (e.g. "Niger Mobile · Ref 7K2Q", "A-Z Voice · Premium · Full CLI · Ref 3MX9"). Your own listings keep the name you gave them.
otherPartyrequireddata[].otherPartystring-
unreadrequireddata[].unreadinteger-
totalrequireddata[].totalinteger-

Errors

  • 400VALIDATION_ERROR, INVALID_INPUT or BAD_REQUEST. For VALIDATION_ERROR, error.details is an array of { path, message }.
  • 401UNAUTHORIZED: missing, invalid, expired or revoked credential.
  • 403FORBIDDEN: not allowed - a scoped key lacks the scope, or the endpoint is session-only.
  • 429RATE_LIMITED: slow down and retry after the Retry-After seconds.
  • 500INTERNAL_ERROR: unexpected failure. Quote X-Request-Id to support.

Get one route conversation

GET/api/v1/route-messages/{routeId}/{buyerId}

Access
API key. Full-access keys only; not reachable by scoped keys.
Rate limit
100 requests per second (the default)

Parameters

NameInTypeDescription
routeIdrequiredpathstring-
buyerIdrequiredpathstring-

Response 200

FieldTypeDescription
datarequiredobject-
routeIdrequireddata.routeIdstring (uuid)-
buyerIdrequireddata.buyerIdstring (uuid)-
rolerequireddata.rolestring-One of buyer, seller
routeNamerequireddata.routeNamestringThe listing name as a buyer reads it: generated by the platform, never the seller's text, and ending in the listing reference (e.g. "Niger Mobile · Ref 7K2Q", "A-Z Voice · Premium · Full CLI · Ref 3MX9"). Your own listings keep the name you gave them.
otherPartyrequireddata.otherPartystring-
messagesrequireddata.messagesobject[]-
idrequireddata.messages[].idstring (uuid)-
routeIdrequireddata.messages[].routeIdstring (uuid)-
buyerIdrequireddata.messages[].buyerIdstring (uuid)-
minerequireddata.messages[].mineboolean-
bodyrequireddata.messages[].bodystring-
readAtrequireddata.messages[].readAtstring (date-time) | nullISO-8601 timestamp (UTC)
createdAtrequireddata.messages[].createdAtstring (date-time)ISO-8601 timestamp (UTC)

Errors

  • 400VALIDATION_ERROR, INVALID_INPUT or BAD_REQUEST. For VALIDATION_ERROR, error.details is an array of { path, message }.
  • 401UNAUTHORIZED: missing, invalid, expired or revoked credential.
  • 403FORBIDDEN: not allowed - a scoped key lacks the scope, or the endpoint is session-only.
  • 404NOT_FOUND: no such resource on your account.
  • 429RATE_LIMITED: slow down and retry after the Retry-After seconds.
  • 500INTERNAL_ERROR: unexpected failure. Quote X-Request-Id to support.

Send a message about a route

POST/api/v1/route-messages

Access
API key. Full-access keys only; not reachable by scoped keys.
Rate limit
100 requests per second (the default)

Contact details (emails, phone numbers, links, handles) are refused. Sellers must pass buyerId to start a thread.

Request body (application/json)

FieldTypeDescription
routeIdrequiredstring (uuid)-
bodyrequiredstring-max 4000 chars
buyerIdstring (uuid)-

Response 201

FieldTypeDescription
datarequiredobject-
idrequireddata.idstring (uuid)-
routeIdrequireddata.routeIdstring (uuid)-
buyerIdrequireddata.buyerIdstring (uuid)-
minerequireddata.mineboolean-
bodyrequireddata.bodystring-
readAtrequireddata.readAtstring (date-time) | nullISO-8601 timestamp (UTC)
createdAtrequireddata.createdAtstring (date-time)ISO-8601 timestamp (UTC)
senderIdrequireddata.senderIdstring (uuid)-

Errors

  • 400VALIDATION_ERROR, INVALID_INPUT or BAD_REQUEST. For VALIDATION_ERROR, error.details is an array of { path, message }.
  • 401UNAUTHORIZED: missing, invalid, expired or revoked credential.
  • 403FORBIDDEN: not allowed - a scoped key lacks the scope, or the endpoint is session-only.
  • 409CONFLICT (or a code-specific 409): the change clashes with existing state.
  • 429RATE_LIMITED: slow down and retry after the Retry-After seconds.
  • 500INTERNAL_ERROR: unexpected failure. Quote X-Request-Id to support.