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.
Respuestas
200Default ResponseCampos y ejemplo de la respuesta
JSON{}401RFC 7807 problem details for UNAUTHORIZED (401).403RFC 7807 problem details for FORBIDDEN (403).422RFC 7807 problem details for VALIDATION_ERROR (422).
Las respuestas de error siguen el formato RFC 7807 (application/problem+json), con un código estable en el campo code. Ver los códigos de error
Ejemplo en curl
curl -X POST 'https://api.messages.ccxcompany.co/conversations/import' \ -H "Authorization: Bearer $CCX_API_KEY"