1. Schemas
Peach
  • template-messages
    • Send a pre-approved template message
      POST
    • Poll template message status
      GET
    • Poll template messages status
      GET
    • Connect to AI Agent
      POST
    • Send an App message
      POST
  • broadcasts
    • List broadcasts
      GET
    • Launch a broadcast
      POST
    • Poll broadcast status
      GET
    • Get broadcast details
      GET
    • Archive broadcast
      PATCH
    • Cancel broadcast
      PATCH
  • whatsapp_templates
    • List all templates
      GET
    • Create a template
      POST
    • Update template
      PATCH
    • Archive template
      PATCH
    • Pause template
      PATCH
    • Submit template
      PATCH
    • Fetch template details
      GET
  • conversations
    • List messages
    • List conversations
    • Update conversation status
    • Agent Assignment
    • Close Conversation
  • contacts
    • Create multiple contacts
    • Update a contact
    • Create a contact
    • Bulk update communication preferences
  • orders
    • Create an order
    • Find order by ID
    • Create a refund for an order
  • medias
    • About uploaded media
    • List available medias
    • Add a media (Deprecated)
    • Remove a media
    • Create a direct upload for media
    • Finalize a direct uploaded media
  • webhooks
    • Order status webhooks
    • Flow execution status webhooks
    • Message delivery status webhooks
    • AI Agent Execution Webhooks
  • Schemas
    • Schemas
      • WhatsApp Template
      • WhatsApp Template Parameters
      • Order
      • RefundRequest
      • Contact
      • LineItem
      • OrderExpiry
      • TemplateMessage
      • AnyValue
      • Argument
      • Message
      • MessageResponse
  1. Schemas

MessageResponse

{
    "count": 0,
    "next": "string",
    "previous": "string",
    "messages": [
        {
            "id": "string",
            "external_id": "string",
            "direction": "inbound",
            "text": "string",
            "content_type": "string",
            "status": "string",
            "channel": "string",
            "conversation_id": 0,
            "created_at": "2019-08-24T14:15:22.123Z",
            "phone_number": {
                "number": "string",
                "display_name": "string"
            },
            "author": {
                "type": "contact",
                "name": "string",
                "email": "string",
                "phone_number": "string",
                "ai_flow": {
                    "id": "string",
                    "name": "string"
                }
            },
            "media": {
                "url": "string",
                "mime_type": "string",
                "filename": "string"
            }
        }
    ]
}
Built with