{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/activecampaign/main/json-schema/activecampaign-paginated-conversation-read-simple-list-schema.json", "title": "PaginatedConversationReadSimpleList", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/activecampaign-conversations-api-openapi.yml#/components/schemas/PaginatedConversationReadSimpleList", "type": "object", "required": [ "count", "results" ], "properties": { "count": { "type": "integer" }, "next": { "type": [ "string", "null" ], "format": "uri" }, "previous": { "type": [ "string", "null" ], "format": "uri" }, "results": { "type": "array", "items": { "$ref": "#/$defs/ConversationReadSimple" } } }, "$defs": { "ConversationReadSimple": { "type": "object", "properties": { "id": { "type": "string", "description": "The UUID of the Conversation." }, "contact": { "type": "string", "format": "uuid" }, "status": { "allOf": [ { "$ref": "#/$defs/ConversationStatusEnum" } ], "readOnly": true }, "first_message": { "allOf": [ { "$ref": "#/$defs/WhatsAppMessageSimple" } ], "description": "The first Message of the Conversation." }, "assigned": { "type": "array", "items": { "$ref": "#/$defs/UserSimple" }, "description": "The Users assigned to the Conversation." }, "tags": { "type": "array", "items": { "$ref": "#/$defs/ConversationTag" }, "description": "The Tags assigned to the Conversation." }, "created_on": { "type": "string", "format": "date-time", "readOnly": true, "title": "Creado el" }, "source": { "allOf": [ { "$ref": "#/$defs/ConversationSourceEnum" } ], "readOnly": true }, "assigned_team": { "type": "integer", "description": "The ID of the Team assigned to the Conversation." }, "channel": { "type": [ "integer", "null" ] } }, "required": [ "assigned", "contact", "created_on", "first_message", "id", "source", "status" ] }, "ConversationSourceEnum": { "enum": [ "INBOX", "AUTO_RESPONSE", "API", "BROADCAST", "FLOW", "UNKNOWN" ], "type": "string", "description": "* `INBOX` - Inbox\n* `AUTO_RESPONSE` - Auto Response\n* `API` - Api\n* `BROADCAST` - Broadcast\n* `FLOW` - Flow\n* `UNKNOWN` - Unknown" }, "ConversationStatusEnum": { "enum": [ "CREATED", "FLOW", "NEW", "IN_PROGRESS", "RESOLVED", "CLOSED" ], "type": "string", "description": "* `CREATED` - Created\n* `FLOW` - Flow\n* `NEW` - New\n* `IN_PROGRESS` - In Progress\n* `RESOLVED` - Resolved\n* `CLOSED` - Closed" }, "ConversationTag": { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "name": { "type": "string", "maxLength": 100 } }, "required": [ "id", "name" ] }, "MessageSourceEnum": { "enum": [ "INBOUND", "INBOX", "AUTO_RESPONSE", "API", "BROADCAST", "FLOW" ], "type": "string", "description": "* `INBOUND` - Inbound\n* `INBOX` - Inbox\n* `AUTO_RESPONSE` - Auto Response\n* `API` - Api\n* `BROADCAST` - Broadcast\n* `FLOW` - Flow" }, "MessageStatusEnum": { "enum": [ "new", "retry", "accepted", "sending", "sent", "receiving", "received", "delivered", "undelivered", "failed", "read", "deleted" ], "type": "string", "description": "* `new` - New\n* `retry` - Retry\n* `accepted` - Accepted\n* `sending` - Sending\n* `sent` - Sent\n* `receiving` - Receiving\n* `received` - Received\n* `delivered` - Delivered\n* `undelivered` - Undelivered\n* `failed` - Failed\n* `read` - Read\n* `deleted` - Deleted" }, "MessageTypeEnum": { "enum": [ "audio", "voice", "button", "document", "text", "image", "interactive", "order", "sticker", "system", "unknown", "video", "unsupported", "location", "contacts", "template", "reaction", "ephemeral", "request_welcome" ], "type": "string", "description": "* `audio` - Audio\n* `voice` - Voice\n* `button` - Button\n* `document` - Document\n* `text` - Text\n* `image` - Image\n* `interactive` - Interactive\n* `order` - Order\n* `sticker` - Sticker\n* `system` - System\n* `unknown` - Unknown\n* `video` - Video\n* `unsupported` - Unsupported\n* `location` - Location\n* `contacts` - Contacts\n* `template` - Template\n* `reaction` - Reaction\n* `ephemeral` - Ephemeral\n* `request_welcome` - Request Welcome" }, "SimpleUser": { "type": "object", "properties": { "first_name": { "type": "string", "maxLength": 150 }, "last_name": { "type": "string", "maxLength": 150 }, "email": { "type": "string", "format": "email", "maxLength": 254 }, "id": { "type": "integer", "readOnly": true }, "profile_image": { "type": [ "string", "null" ], "format": "uri" }, "role": { "type": [ "integer", "null" ] } }, "required": [ "email", "id" ] }, "UserSimple": { "type": "object", "properties": { "id": { "type": "integer" }, "first_name": { "type": "string", "readOnly": true }, "last_name": { "type": "string", "readOnly": true }, "email": { "type": "string", "format": "email", "readOnly": true }, "account": { "type": [ "integer", "null" ], "readOnly": true }, "profile_image": { "type": [ "string", "null" ], "format": "uri", "readOnly": true }, "date_joined": { "type": "string", "format": "date-time", "readOnly": true } }, "required": [ "account", "date_joined", "email", "first_name", "id", "last_name", "profile_image" ] }, "WhatsAppMessageSimple": { "type": "object", "properties": { "id": { "type": "string" }, "to_number": { "type": "string", "readOnly": true }, "from_number": { "type": "string", "readOnly": true }, "body": { "type": [ "string", "null" ] }, "direction": { "type": "string" }, "timestamp": { "type": "string", "format": "date-time", "readOnly": true }, "contact": { "type": "string" }, "status": { "allOf": [ { "$ref": "#/$defs/MessageStatusEnum" } ], "readOnly": true }, "queued_on": { "type": [ "string", "null" ], "format": "date-time", "readOnly": true }, "accepted_on": { "type": [ "string", "null" ], "format": "date-time", "readOnly": true }, "sent_on": { "type": [ "string", "null" ], "format": "date-time", "readOnly": true }, "delivered_on": { "type": [ "string", "null" ], "format": "date-time", "readOnly": true }, "read_on": { "type": [ "string", "null" ], "format": "date-time", "readOnly": true }, "failed_on": { "type": [ "string", "null" ], "format": "date-time", "readOnly": true }, "provider_id": { "type": [ "string", "null" ], "readOnly": true }, "provider_error_code": { "type": [ "string", "null" ], "readOnly": true }, "provider_error_message": { "type": [ "string", "null" ], "readOnly": true }, "sent_by": { "$ref": "#/$defs/SimpleUser" }, "is_deleted": { "type": "boolean", "readOnly": true }, "content": { "readOnly": true }, "whatsapp_template": { "type": [ "string", "null" ], "format": "uuid", "readOnly": true }, "content_type": { "type": [ "string", "null" ], "readOnly": true }, "content_url": { "type": [ "string", "null" ], "format": "uri", "maxLength": 2000 }, "msg_type": { "$ref": "#/$defs/MessageTypeEnum" }, "failed_attempts": { "type": "integer", "readOnly": true }, "source": { "allOf": [ { "$ref": "#/$defs/MessageSourceEnum" } ], "readOnly": true } }, "required": [ "accepted_on", "contact", "content", "content_type", "delivered_on", "direction", "failed_attempts", "failed_on", "from_number", "id", "is_deleted", "provider_error_code", "provider_error_message", "provider_id", "queued_on", "read_on", "sent_by", "sent_on", "source", "status", "timestamp", "to_number", "whatsapp_template" ] } } }