Import historical conversations into the Inbox
POST/conversations/import
Bulk-imports historical conversations (up to 200 per request) with their text messages, writing Conversation + Message documents directly — no message is sent, nothing is charged. Idempotent per (numberId, contactPhone): an existing conversation for that number+phone is skipped, never duplicated. Message at is the original timestamp, so history sorts correctly in the Inbox.
Respostas
200Default ResponseCampos e exemplo da resposta
JSON{}401RFC 7807 problem details for UNAUTHORIZED (401).403RFC 7807 problem details for FORBIDDEN (403).422RFC 7807 problem details for VALIDATION_ERROR (422).
As respostas de erro seguem o formato RFC 7807 (application/problem+json), com um código estável no campo code. Ver os códigos de erro
Exemplo em curl
curl -X POST 'https://api.messages.ccxcompany.co/conversations/import' \ -H "Authorization: Bearer $CCX_API_KEY"