Support SPI

Implement the SPI so Premex Support can list, fetch, post, and close conversations in your backend.

Support SPI (full spec)

The Support SPI is the integration API that lets Premex Support use your backend as the system of record for conversations. Full spec is required: you must implement every endpoint and schema defined in the OpenAPI spec.

Endpoints

MethodPathDescription
GET/care/conversations?customerIdList conversations for a specific customer.
POST/care/conversationsCreate a new conversation.
GET/care/conversations/{conversationId}?customerIdFetch conversation detail including messages.
POST/care/conversations/{conversationId}/messagesPost a message into an existing conversation.
POST/care/conversations/{conversationId}/closeResolve or close a conversation.

Compliance rules (required)

  • Every endpoint above must exist and match the request/response shapes.
  • All date-time fields must be ISO 8601 timestamps.
  • IDs must be stable and unique. We recommend opaque IDs (UUIDv4) for conversationId and messageId.
  • Customer scoping is mandatory: every request is scoped by customerId. Product scoping is handled by the base URL configuration.
  • Status must be one of: new | waiting-for-agent | waiting-for-customer | resolved | closed | unknown

Next: endpoint details

See the detailed reference for payloads and examples: /docs/spi/endpoints.