curl --request POST \ --url https://app.kapso.ai/api/v1/whatsapp_messages \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data '{ "message": { "phone_number": "+1234567890", "content": "Hello, how can I help you today?", "message_type": "text" }}'
{ "data": { "id": "msg-123abc", "phone_number": "+1234567890", "message_type": "text", "content": "Hello, how can I help you today?", "direction": "outbound", "status": "sent", "whatsapp_message_id": "wamid.HBgLMTIzNDU2Nzg5MAUCAw==", "created_at": "2024-01-15T10:30:00Z", "updated_at": "2024-01-15T10:30:00Z" }}
WhatsApp Messages
Send a WhatsApp message (standalone)
Sends a new WhatsApp message without requiring a conversation ID.
This endpoint automatically finds or creates a conversation based on the phone number and WhatsApp configuration.
Configuration Selection:
If whatsapp_config_id is provided, uses that specific configuration
If customer_id is provided, uses the customer’s WhatsApp configuration
If neither is provided, uses the first available configuration for the project
Conversation Management:
Automatically finds existing active conversations for the phone number
Creates new conversations if none exist
Updates conversation activity timestamps
Creates WhatsApp contacts as needed
Message Types:
Supports all message types including text, template, media, interactive, location, reaction, and contacts.
Agent Integration:
Respects agent execution states and handoff rules. Messages are blocked when an agent execution is active and not in handoff, failed, or stopped state.
POST
/
whatsapp_messages
curl --request POST \ --url https://app.kapso.ai/api/v1/whatsapp_messages \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data '{ "message": { "phone_number": "+1234567890", "content": "Hello, how can I help you today?", "message_type": "text" }}'
{ "data": { "id": "msg-123abc", "phone_number": "+1234567890", "message_type": "text", "content": "Hello, how can I help you today?", "direction": "outbound", "status": "sent", "whatsapp_message_id": "wamid.HBgLMTIzNDU2Nzg5MAUCAw==", "created_at": "2024-01-15T10:30:00Z", "updated_at": "2024-01-15T10:30:00Z" }}
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Kapso Legacy API","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/kapso-1adbad2d/F0G7jRWQUb5FH6t1/logo/light.png?fit=max\u0026auto=format\u0026n=F0G7jRWQUb5FH6t1\u0026q=85\u0026s=62f92195d30c620aeef35e3219d13067","dark":"https://mintcdn.com/kapso-1adbad2d/F0G7jRWQUb5FH6t1/logo/dark.png?fit=max\u0026auto=format\u0026n=F0G7jRWQUb5FH6t1\u0026q=85\u0026s=93ff58216fd18d2deec415840f6a0910"},"favicon":"/favicon.svg","appearance":{"default":"dark"},"navbar":{"links":[{"label":"Support","href":"mailto:dev@kap.so"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.kapso.ai"}},"footer":{"socials":{"github":"https://github.com/gokapso"}},"contextual":{"options":["copy","chatgpt","claude"]},"navigation":{"global":{"anchors":[{"anchor":"Github","icon":"github","href":"https://github.com/gokapso"},{"anchor":"Current API","icon":"arrow-right","href":"https://docs.kapso.ai"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"kapso-1adbad2d","hasAudioNarration":false,"actualSubdomain":"kapso-1adbad2d","customDomains":[],"gitSource":{"type":"github","owner":"kapso-legacy-docs","repo":"legacy-docs","deployBranch":"master","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae94358ae1e0e930d620562:success","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"Agents API","count":54},{"language":"default","tag":"WhatsApp API","count":42},{"language":"default","tag":"Platform API","count":28},{"language":"default","tag":"Builder SDK","count":27},{"language":"default","tag":"CLI","count":17},{"language":"default","tag":"Functions API","count":15},{"language":"default","tag":"WhatsApp Configs","count":11},{"language":"default","tag":"Flows","count":10},{"language":"default","tag":"WhatsApp Templates","count":10},{"language":"default","tag":"Agents","count":9}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api/legacy/whatsapp/whatsapp-messages/send-a-whatsapp-message-standalone","slug":"/api/legacy/whatsapp/whatsapp-messages/send-a-whatsapp-message-standalone","pageMetadata":{"title":"Send a WhatsApp message (standalone)","description":"Sends a new WhatsApp message without requiring a conversation ID.\nThis endpoint automatically finds or creates a conversation based on the phone number and WhatsApp configuration.\n\n**Configuration Selection:**\n- If `whatsapp_config_id` is provided, uses that specific configuration\n- If `customer_id` is provided, uses the customer's WhatsApp configuration\n- If neither is provided, uses the first available configuration for the project\n\n**Conversation Management:**\n- Automatically finds existing active conversations for the phone number\n- Creates new conversations if none exist\n- Updates conversation activity timestamps\n- Creates WhatsApp contacts as needed\n\n**Message Types:**\nSupports all message types including text, template, media, interactive, location, reaction, and contacts.\n\n**Agent Integration:**\nRespects agent execution states and handoff rules. Messages are blocked when an agent execution is active and not in handoff, failed, or stopped state.\n","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml post /whatsapp_messages","href":"/api/legacy/whatsapp/whatsapp-messages/send-a-whatsapp-message-standalone","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n li: \"li\",\n p: \"p\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Sends a new WhatsApp message without requiring a conversation ID.\\nThis endpoint automatically finds or creates a conversation based on the phone number and WhatsApp configuration.\"\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Configuration Selection:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [\"If \", _jsx(_components.code, {\n children: \"whatsapp_config_id\"\n }), \" is provided, uses that specific configuration\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"If \", _jsx(_components.code, {\n children: \"customer_id\"\n }), \" is provided, uses the customer’s WhatsApp configuration\"]\n }), \"\\n\", _jsx(_components.li, {\n children: \"If neither is provided, uses the first available configuration for the project\"\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Conversation Management:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Automatically finds existing active conversations for the phone number\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Creates new conversations if none exist\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Updates conversation activity timestamps\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Creates WhatsApp contacts as needed\"\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Message Types:\"\n }), \"\\nSupports all message types including text, template, media, interactive, location, reaction, and contacts.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Agent Integration:\"\n }), \"\\nRespects agent execution states and handoff rules. Messages are blocked when an agent execution is active and not in handoff, failed, or stopped state.\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Send a WhatsApp message (standalone)","description":"Sends a new WhatsApp message without requiring a conversation ID.\nThis endpoint automatically finds or creates a conversation based on the phone number and WhatsApp configuration.\n\n**Configuration Selection:**\n- If `whatsapp_config_id` is provided, uses that specific configuration\n- If `customer_id` is provided, uses the customer's WhatsApp configuration\n- If neither is provided, uses the first available configuration for the project\n\n**Conversation Management:**\n- Automatically finds existing active conversations for the phone number\n- Creates new conversations if none exist\n- Updates conversation activity timestamps\n- Creates WhatsApp contacts as needed\n\n**Message Types:**\nSupports all message types including text, template, media, interactive, location, reaction, and contacts.\n\n**Agent Integration:**\nRespects agent execution states and handoff rules. Messages are blocked when an agent execution is active and not in handoff, failed, or stopped state.\n","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml post /whatsapp_messages","href":"/api/legacy/whatsapp/whatsapp-messages/send-a-whatsapp-message-standalone","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Send a WhatsApp message (standalone)","description":"Sends a new WhatsApp message without requiring a conversation ID.\nThis endpoint automatically finds or creates a conversation based on the phone number and WhatsApp configuration.\n\n**Configuration Selection:**\n- If `whatsapp_config_id` is provided, uses that specific configuration\n- If `customer_id` is provided, uses the customer's WhatsApp configuration\n- If neither is provided, uses the first available configuration for the project\n\n**Conversation Management:**\n- Automatically finds existing active conversations for the phone number\n- Creates new conversations if none exist\n- Updates conversation activity timestamps\n- Creates WhatsApp contacts as needed\n\n**Message Types:**\nSupports all message types including text, template, media, interactive, location, reaction, and contacts.\n\n**Agent Integration:**\nRespects agent execution states and handoff rules. Messages are blocked when an agent execution is active and not in handoff, failed, or stopped state.\n","operationId":"sendWhatsappMessage","tags":["WhatsApp Messages"],"parameters":["3a4e30b1-64c1-42af-b45f-c210b828257c","b63e86f9-2145-441b-a4cb-921599b99e7b","1147a5c2-beb1-44f9-ace3-fbb868e53fcb"],"requestBody":"12ad7a45-b635-46df-9cc4-dc7ded687b2f","responses":{"201":"9c79e28d-e0e3-416f-adf7-920732f8a24a","400":"5a925ce7-e918-4472-a501-b2480892f75f","401":"b9e61ce4-40c9-4180-ac63-6f85b83bdf2c","404":"4094295a-9112-496f-9835-d2938ef280e0","409":"1a604283-d29f-43c2-ae09-c03cf1c405c0","422":"2bb35b53-7442-41e5-9eb7-5f8f26fedb53","500":"9d8a5dba-ab6b-4c3d-95ac-7d9fe2b1f397"},"method":"post","type":"path","servers":["21319188-164c-40be-9786-d4b7e6f4d894"],"security":["56101e0f-130f-4c4e-b5bf-1f38b2c2d3a4"],"path":"/whatsapp_messages","baseUrlOptions":["https://app.kapso.ai/api/v1"],"title":"Send a WhatsApp message (standalone)","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"3a4e30b1-64c1-42af-b45f-c210b828257c":{"name":"whatsapp_config_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","isRequired":false,"description":"ID of the specific WhatsApp configuration to use","uniqueKey":"","typeLabel":"string\u003cuuid>"},"description":"ID of the specific WhatsApp configuration to use"},"b63e86f9-2145-441b-a4cb-921599b99e7b":{"name":"customer_id","in":"query","required":false,"schema":{"type":"string","format":"uuid","isRequired":false,"description":"ID of the customer whose WhatsApp configuration to use","uniqueKey":"","typeLabel":"string\u003cuuid>"},"description":"ID of the customer whose WhatsApp configuration to use"},"1147a5c2-beb1-44f9-ace3-fbb868e53fcb":{"name":"phone_number","in":"query","required":false,"schema":{"type":"string","isRequired":false,"description":"Phone number to send the message to (can also be provided in the message object)","uniqueKey":"","typeLabel":"string"},"description":"Phone number to send the message to (can also be provided in the message object)","example":"+1234567890"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"object","required":["phone_number"],"properties":{"phone_number":{"type":"string","description":"Phone number to send the message to (in international format)","example":"+1234567890","isRequired":true,"uniqueKey":"message.phone_number","typeLabel":"string"},"content":{"type":"string","description":"The message content to send (for text messages)","example":"Hello, how can I help you today?","uniqueKey":"message.content","typeLabel":"string"},"message_type":{"type":"string","description":"The type of message","enum":["text","image","video","audio","document","template","location","interactive","reaction","contacts"],"default":"text","example":"text","uniqueKey":"message.message_type","typeLabel":"enum\u003cstring>"},"media_url":{"type":"string","description":"URL of the media file to send (for image, video, audio, document message types)","uniqueKey":"message.media_url","typeLabel":"string"},"media_id":{"type":"string","description":"WhatsApp media ID to use instead of a URL (for image, video, audio, document message types)","uniqueKey":"message.media_id","typeLabel":"string"},"media_file":{"type":"string","format":"binary","description":"Media file upload (for image, video, audio, document message types)","uniqueKey":"message.media_file","typeLabel":"file"},"caption":{"type":"string","description":"Caption for media messages (image, video, document)","uniqueKey":"message.caption","typeLabel":"string"},"filename":{"type":"string","description":"Filename for document messages","uniqueKey":"message.filename","typeLabel":"string"},"latitude":{"type":"number","format":"float","description":"Latitude for location messages","uniqueKey":"message.latitude","typeLabel":"number\u003cfloat>"},"longitude":{"type":"number","format":"float","description":"Longitude for location messages","uniqueKey":"message.longitude","typeLabel":"number\u003cfloat>"},"location_name":{"type":"string","description":"Optional name for the location","uniqueKey":"message.location_name","typeLabel":"string"},"location_address":{"type":"string","description":"Optional address for the location","uniqueKey":"message.location_address","typeLabel":"string"},"interactive_type":{"type":"string","enum":["button","list"],"description":"Type of interactive message","uniqueKey":"message.interactive_type","typeLabel":"enum\u003cstring>"},"body_text":{"type":"string","description":"Main message text for interactive messages","uniqueKey":"message.body_text","typeLabel":"string"},"header_text":{"type":"string","description":"Header text for interactive messages","uniqueKey":"message.header_text","typeLabel":"string"},"footer_text":{"type":"string","description":"Footer text for interactive messages","uniqueKey":"message.footer_text","typeLabel":"string"},"buttons":{"type":"array","description":"Button definitions for button-type interactive messages","items":{"type":"object","properties":{"id":{"type":"string","description":"Button identifier","uniqueKey":"message.buttons.items.[INDEX].id","typeLabel":"string"},"title":{"type":"string","description":"Button display text","uniqueKey":"message.buttons.items.[INDEX].title","typeLabel":"string"}},"uniqueKey":"message.buttons.items.[INDEX]","typeLabel":"object"},"uniqueKey":"message.buttons","typeLabel":"object[]"},"sections":{"type":"array","description":"Section definitions for list-type interactive messages","items":{"type":"object","properties":{"title":{"type":"string","description":"Section title","uniqueKey":"message.sections.items.[INDEX].title","typeLabel":"string"},"rows":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Row identifier","uniqueKey":"message.sections.items.[INDEX].rows.items.[INDEX].id","typeLabel":"string"},"title":{"type":"string","description":"Row title","uniqueKey":"message.sections.items.[INDEX].rows.items.[INDEX].title","typeLabel":"string"},"description":{"type":"string","description":"Optional row description","uniqueKey":"message.sections.items.[INDEX].rows.items.[INDEX].description","typeLabel":"string"}},"uniqueKey":"message.sections.items.[INDEX].rows.items.[INDEX]","typeLabel":"object"},"uniqueKey":"message.sections.items.[INDEX].rows","typeLabel":"object[]"}},"uniqueKey":"message.sections.items.[INDEX]","typeLabel":"object"},"uniqueKey":"message.sections","typeLabel":"object[]"},"list_button_text":{"type":"string","description":"Text for the button that opens the list (for list-type interactive messages)","example":"View Options","uniqueKey":"message.list_button_text","typeLabel":"string"},"template_name":{"type":"string","description":"Name of the template to use","uniqueKey":"message.template_name","typeLabel":"string"},"template_language":{"type":"string","description":"Language code of the template (e.g., en_US)","uniqueKey":"message.template_language","typeLabel":"string"},"template_params":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"message.template_params.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Parameters to fill in the template placeholders.\nUse array format for templates with positional parameters ({{1}}, {{2}}).\nUse object format for templates with named parameters ({{name}}, {{email}}).\n","example":["John Smith","Tomorrow at 2 PM"],"uniqueKey":"message.template_params.oneOf.0","typeLabel":"string[]"},{"type":"object","description":"Parameters to fill in the template placeholders.\nUse array format for templates with positional parameters ({{1}}, {{2}}).\nUse object format for templates with named parameters ({{name}}, {{email}}).\n","example":{"name":"John Smith","email":"john@example.com"},"additionalProperties":{"type":"string","uniqueKey":"message.template_params.oneOf.1.additionalProperties","typeLabel":"string"},"uniqueKey":"message.template_params.oneOf.1","typeLabel":"object"}],"uniqueKey":"message.template_params","typeLabel":"string[] | object"},"header_type":{"type":"string","description":"Type of header for template messages","enum":["text","image","video","document"],"uniqueKey":"message.header_type","typeLabel":"enum\u003cstring>"},"header_params":{"type":"string","description":"Content for the template header (URL for media, text for text headers)","uniqueKey":"message.header_params","typeLabel":"string"},"header_filename":{"type":"string","description":"Filename for document headers","uniqueKey":"message.header_filename","typeLabel":"string"},"reaction_emoji":{"type":"string","description":"Emoji to use for the reaction","uniqueKey":"message.reaction_emoji","typeLabel":"string"},"reacted_to_message_id":{"type":"string","description":"ID of the message to react to","uniqueKey":"message.reacted_to_message_id","typeLabel":"string"},"contacts":{"type":"array","minItems":1,"maxItems":257,"description":"Contact cards to send (required for contacts messages, 1-257 per WhatsApp guidelines).\nAt least one contact with a name is required.\nSupports both nested name object and flattened name keys for backward compatibility.\n","items":{"type":"object","required":["name"],"properties":{"name":{"type":"object","description":"Contact name (either formatted_name or first_name required)","properties":{"formatted_name":{"type":"string","description":"Full formatted contact name","example":"Barbara J. Johnson","uniqueKey":"message.contacts.items.[INDEX].name.formatted_name","typeLabel":"string"},"first_name":{"type":"string","description":"First name","example":"Barbara","uniqueKey":"message.contacts.items.[INDEX].name.first_name","typeLabel":"string"},"last_name":{"type":"string","description":"Last name","example":"Johnson","uniqueKey":"message.contacts.items.[INDEX].name.last_name","typeLabel":"string"},"middle_name":{"type":"string","description":"Middle name","example":"Joana","uniqueKey":"message.contacts.items.[INDEX].name.middle_name","typeLabel":"string"},"prefix":{"type":"string","description":"Name prefix","example":"Dr.","uniqueKey":"message.contacts.items.[INDEX].name.prefix","typeLabel":"string"},"suffix":{"type":"string","description":"Name suffix","example":"Esq.","uniqueKey":"message.contacts.items.[INDEX].name.suffix","typeLabel":"string"}},"isRequired":true,"uniqueKey":"message.contacts.items.[INDEX].name","typeLabel":"object"},"birthday":{"type":"string","format":"date","description":"Contact birthday (YYYY-MM-DD)","example":"1999-01-23","uniqueKey":"message.contacts.items.[INDEX].birthday","typeLabel":"string\u003cdate>"},"addresses":{"type":"array","description":"Physical addresses for the contact","items":{"type":"object","properties":{"street":{"type":"string","description":"Street address","example":"1 Lucky Shrub Way","uniqueKey":"message.contacts.items.[INDEX].addresses.items.[INDEX].street","typeLabel":"string"},"city":{"type":"string","description":"City","example":"Menlo Park","uniqueKey":"message.contacts.items.[INDEX].addresses.items.[INDEX].city","typeLabel":"string"},"state":{"type":"string","description":"State or province","example":"CA","uniqueKey":"message.contacts.items.[INDEX].addresses.items.[INDEX].state","typeLabel":"string"},"zip":{"type":"string","description":"ZIP or postal code","example":"94025","uniqueKey":"message.contacts.items.[INDEX].addresses.items.[INDEX].zip","typeLabel":"string"},"country":{"type":"string","description":"Country name","example":"United States","uniqueKey":"message.contacts.items.[INDEX].addresses.items.[INDEX].country","typeLabel":"string"},"country_code":{"type":"string","description":"ISO country code","example":"US","uniqueKey":"message.contacts.items.[INDEX].addresses.items.[INDEX].country_code","typeLabel":"string"},"type":{"type":"string","description":"Address type","example":"Office","uniqueKey":"message.contacts.items.[INDEX].addresses.items.[INDEX].type","typeLabel":"string"}},"uniqueKey":"message.contacts.items.[INDEX].addresses.items.[INDEX]","typeLabel":"object"},"uniqueKey":"message.contacts.items.[INDEX].addresses","typeLabel":"object[]"},"emails":{"type":"array","description":"Email addresses for the contact","items":{"type":"object","required":["email"],"properties":{"email":{"type":"string","format":"email","description":"Email address","example":"bjohnson@luckyshrub.com","isRequired":true,"uniqueKey":"message.contacts.items.[INDEX].emails.items.[INDEX].email","typeLabel":"string\u003cemail>"},"type":{"type":"string","description":"Email type","example":"Work","uniqueKey":"message.contacts.items.[INDEX].emails.items.[INDEX].type","typeLabel":"string"}},"uniqueKey":"message.contacts.items.[INDEX].emails.items.[INDEX]","typeLabel":"object"},"uniqueKey":"message.contacts.items.[INDEX].emails","typeLabel":"object[]"},"phones":{"type":"array","description":"Phone numbers for the contact","items":{"type":"object","required":["phone"],"properties":{"phone":{"type":"string","description":"Phone number (international format recommended)","example":"+16505559999","isRequired":true,"uniqueKey":"message.contacts.items.[INDEX].phones.items.[INDEX].phone","typeLabel":"string"},"type":{"type":"string","description":"Phone number type","example":"Landline","uniqueKey":"message.contacts.items.[INDEX].phones.items.[INDEX].type","typeLabel":"string"},"wa_id":{"type":"string","description":"WhatsApp ID (normalized phone number without + prefix)","example":"19175559999","uniqueKey":"message.contacts.items.[INDEX].phones.items.[INDEX].wa_id","typeLabel":"string"}},"uniqueKey":"message.contacts.items.[INDEX].phones.items.[INDEX]","typeLabel":"object"},"uniqueKey":"message.contacts.items.[INDEX].phones","typeLabel":"object[]"},"org":{"type":"object","description":"Organization information","properties":{"company":{"type":"string","description":"Company name","example":"Lucky Shrub","uniqueKey":"message.contacts.items.[INDEX].org.company","typeLabel":"string"},"department":{"type":"string","description":"Department name","example":"Legal","uniqueKey":"message.contacts.items.[INDEX].org.department","typeLabel":"string"},"title":{"type":"string","description":"Job title","example":"Lead Counsel","uniqueKey":"message.contacts.items.[INDEX].org.title","typeLabel":"string"}},"uniqueKey":"message.contacts.items.[INDEX].org","typeLabel":"object"},"urls":{"type":"array","description":"URLs for the contact","items":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"URL","example":"https://www.luckyshrub.com","isRequired":true,"uniqueKey":"message.contacts.items.[INDEX].urls.items.[INDEX].url","typeLabel":"string\u003curi>"},"type":{"type":"string","description":"URL type","example":"Company","uniqueKey":"message.contacts.items.[INDEX].urls.items.[INDEX].type","typeLabel":"string"}},"uniqueKey":"message.contacts.items.[INDEX].urls.items.[INDEX]","typeLabel":"object"},"uniqueKey":"message.contacts.items.[INDEX].urls","typeLabel":"object[]"}},"uniqueKey":"message.contacts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"message.contacts","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"message","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"text_message":{"title":"text_message","description":"Send a basic text message","value":{"message":{"phone_number":"+1234567890","content":"Hello, how can I help you today?","message_type":"text"}}},"template_message":{"title":"template_message","description":"Send a template message with parameters","value":{"message":{"phone_number":"+1234567890","message_type":"template","template_name":"order_confirmation","template_params":["John Doe","ORD-12345"]}}},"template_message_named":{"title":"template_message_named","description":"Send a template message with named parameters (e.g., {{customer_name}}, {{order_id}})","value":{"message":{"phone_number":"+1234567890","message_type":"template","template_name":"order_notification","template_language":"en_US","template_params":{"customer_name":"John Doe","order_id":"ORD-12345","delivery_date":"Tomorrow at 2 PM","total_amount":"$99.99"}}}},"with_config":{"title":"with_config","description":"Send a message using a specific WhatsApp configuration","value":{"whatsapp_config_id":"550e8400-e29b-41d4-a716-446655440000","message":{"phone_number":"+1234567890","content":"Hello from specific config!","message_type":"text"}}},"with_customer":{"title":"with_customer","description":"Send a message using a customer's WhatsApp configuration","value":{"customer_id":"550e8400-e29b-41d4-a716-446655440001","message":{"phone_number":"+1234567890","content":"Hello from customer's config!","message_type":"text"}}},"contacts_message":{"title":"contacts_message","description":"Send a contact card with complete information","value":{"message":{"phone_number":"+1234567890","message_type":"contacts","contacts":[{"name":{"formatted_name":"Barbara J. Johnson","first_name":"Barbara","last_name":"Johnson","middle_name":"Joana","prefix":"Dr.","suffix":"Esq."},"birthday":"1999-01-23","addresses":[{"street":"1 Lucky Shrub Way","city":"Menlo Park","state":"CA","zip":"94025","country":"United States","country_code":"US","type":"Office"}],"emails":[{"email":"bjohnson@luckyshrub.com","type":"Work"}],"phones":[{"phone":"+16505559999","type":"Landline"},{"phone":"+19175559999","type":"Mobile","wa_id":"19175559999"}],"org":{"company":"Lucky Shrub","department":"Legal","title":"Lead Counsel"},"urls":[{"url":"https://www.luckyshrub.com","type":"Company"}]}]}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"9c79e28d-e0e3-416f-adf7-920732f8a24a":{"description":"Message created and sent successfully","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid","uniqueKey":"data.id","typeLabel":"string\u003cuuid>"},"phone_number":{"type":"string","uniqueKey":"data.phone_number","typeLabel":"string"},"message_type":{"type":"string","enum":["text","image","video","audio","document","template","location","interactive","reaction","contacts"],"description":"The type of WhatsApp message","uniqueKey":"data.message_type","typeLabel":"enum\u003cstring>"},"content":{"type":"string","description":"Human-readable representation of the message content","uniqueKey":"data.content","typeLabel":"string"},"direction":{"type":"string","enum":["inbound","outbound"],"uniqueKey":"data.direction","typeLabel":"enum\u003cstring>"},"status":{"type":"string","uniqueKey":"data.status","typeLabel":"string"},"processing_status":{"type":"string","enum":["pending","processed"],"uniqueKey":"data.processing_status","typeLabel":"enum\u003cstring>"},"whatsapp_message_id":{"type":"string","uniqueKey":"data.whatsapp_message_id","typeLabel":"string"},"metadata":{"type":"object","nullable":false,"description":"Type-specific metadata for the message","uniqueKey":"data.metadata","typeLabel":"object"},"media_url":{"type":"string","description":"URL to access any attached media (for image, video, audio, document message types)","uniqueKey":"data.media_url","typeLabel":"string"},"message_type_data":{"oneOf":[{"type":"object","description":"Data specific to text messages","properties":{"text":{"type":"string","description":"The text content of the message","uniqueKey":"data.message_type_data.oneOf.0.text","typeLabel":"string"}},"uniqueKey":"data.message_type_data.oneOf.0","typeLabel":"object"},{"type":"object","description":"Data specific to image messages","properties":{"caption":{"type":"string","description":"Optional caption for the image","uniqueKey":"data.message_type_data.oneOf.1.caption","typeLabel":"string"},"media_id":{"type":"string","description":"WhatsApp media ID for the image","uniqueKey":"data.message_type_data.oneOf.1.media_id","typeLabel":"string"},"mime_type":{"type":"string","description":"MIME type of the image (e.g., image/jpeg)","uniqueKey":"data.message_type_data.oneOf.1.mime_type","typeLabel":"string"}},"uniqueKey":"data.message_type_data.oneOf.1","typeLabel":"object"},{"type":"object","description":"Data specific to video messages","properties":{"caption":{"type":"string","description":"Optional caption for the video","uniqueKey":"data.message_type_data.oneOf.2.caption","typeLabel":"string"},"media_id":{"type":"string","description":"WhatsApp media ID for the video","uniqueKey":"data.message_type_data.oneOf.2.media_id","typeLabel":"string"},"mime_type":{"type":"string","description":"MIME type of the video (e.g., video/mp4)","uniqueKey":"data.message_type_data.oneOf.2.mime_type","typeLabel":"string"}},"uniqueKey":"data.message_type_data.oneOf.2","typeLabel":"object"},{"type":"object","description":"Data specific to audio messages","properties":{"media_id":{"type":"string","description":"WhatsApp media ID for the audio","uniqueKey":"data.message_type_data.oneOf.3.media_id","typeLabel":"string"},"mime_type":{"type":"string","description":"MIME type of the audio (e.g., audio/ogg)","uniqueKey":"data.message_type_data.oneOf.3.mime_type","typeLabel":"string"}},"uniqueKey":"data.message_type_data.oneOf.3","typeLabel":"object"},{"type":"object","description":"Data specific to document messages","properties":{"caption":{"type":"string","description":"Optional caption for the document","uniqueKey":"data.message_type_data.oneOf.4.caption","typeLabel":"string"},"media_id":{"type":"string","description":"WhatsApp media ID for the document","uniqueKey":"data.message_type_data.oneOf.4.media_id","typeLabel":"string"},"mime_type":{"type":"string","description":"MIME type of the document (e.g., application/pdf)","uniqueKey":"data.message_type_data.oneOf.4.mime_type","typeLabel":"string"},"filename":{"type":"string","description":"Original filename of the document","uniqueKey":"data.message_type_data.oneOf.4.filename","typeLabel":"string"}},"uniqueKey":"data.message_type_data.oneOf.4","typeLabel":"object"},{"type":"object","description":"Data specific to location messages","properties":{"latitude":{"type":"number","format":"float","description":"Latitude coordinate","uniqueKey":"data.message_type_data.oneOf.5.latitude","typeLabel":"number\u003cfloat>"},"longitude":{"type":"number","format":"float","description":"Longitude coordinate","uniqueKey":"data.message_type_data.oneOf.5.longitude","typeLabel":"number\u003cfloat>"},"location_name":{"type":"string","description":"Optional name for the location","uniqueKey":"data.message_type_data.oneOf.5.location_name","typeLabel":"string"},"location_address":{"type":"string","description":"Optional address for the location","uniqueKey":"data.message_type_data.oneOf.5.location_address","typeLabel":"string"}},"uniqueKey":"data.message_type_data.oneOf.5","typeLabel":"object"},{"type":"object","description":"Data specific to template messages","properties":{"template_name":{"type":"string","description":"Name of the template used","uniqueKey":"data.message_type_data.oneOf.6.template_name","typeLabel":"string"},"template_language":{"type":"string","description":"Language code of the template (e.g., en_US)","uniqueKey":"data.message_type_data.oneOf.6.template_language","typeLabel":"string"},"template_params":{"type":"array","description":"Parameters used in the template","items":{"type":"string","uniqueKey":"data.message_type_data.oneOf.6.template_params.items.[INDEX]","typeLabel":"string"},"uniqueKey":"data.message_type_data.oneOf.6.template_params","typeLabel":"string[]"},"header_type":{"type":"string","description":"Type of header used in the template","enum":["text","image","video","document"],"uniqueKey":"data.message_type_data.oneOf.6.header_type","typeLabel":"enum\u003cstring>"},"header_params":{"type":"string","description":"Content for the template header","uniqueKey":"data.message_type_data.oneOf.6.header_params","typeLabel":"string"},"header_filename":{"type":"string","description":"Filename for document headers","uniqueKey":"data.message_type_data.oneOf.6.header_filename","typeLabel":"string"}},"uniqueKey":"data.message_type_data.oneOf.6","typeLabel":"object"},{"type":"object","description":"Data specific to interactive messages","properties":{"interactive_type":{"type":"string","enum":["button","list"],"description":"Type of interactive message","uniqueKey":"data.message_type_data.oneOf.7.interactive_type","typeLabel":"enum\u003cstring>"},"body_text":{"type":"string","description":"Main text content of the interactive message","uniqueKey":"data.message_type_data.oneOf.7.body_text","typeLabel":"string"},"header_text":{"type":"string","description":"Optional header text","uniqueKey":"data.message_type_data.oneOf.7.header_text","typeLabel":"string"},"footer_text":{"type":"string","description":"Optional footer text","uniqueKey":"data.message_type_data.oneOf.7.footer_text","typeLabel":"string"},"buttons":{"type":"array","description":"Buttons for button-type interactive messages","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the button","uniqueKey":"data.message_type_data.oneOf.7.buttons.items.[INDEX].id","typeLabel":"string"},"title":{"type":"string","description":"Display text for the button","uniqueKey":"data.message_type_data.oneOf.7.buttons.items.[INDEX].title","typeLabel":"string"}},"uniqueKey":"data.message_type_data.oneOf.7.buttons.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.message_type_data.oneOf.7.buttons","typeLabel":"object[]"},"sections":{"type":"array","description":"Sections for list-type interactive messages","items":{"type":"object","properties":{"title":{"type":"string","description":"Section title","uniqueKey":"data.message_type_data.oneOf.7.sections.items.[INDEX].title","typeLabel":"string"},"rows":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Row identifier","uniqueKey":"data.message_type_data.oneOf.7.sections.items.[INDEX].rows.items.[INDEX].id","typeLabel":"string"},"title":{"type":"string","description":"Row title","uniqueKey":"data.message_type_data.oneOf.7.sections.items.[INDEX].rows.items.[INDEX].title","typeLabel":"string"},"description":{"type":"string","description":"Optional row description","uniqueKey":"data.message_type_data.oneOf.7.sections.items.[INDEX].rows.items.[INDEX].description","typeLabel":"string"}},"uniqueKey":"data.message_type_data.oneOf.7.sections.items.[INDEX].rows.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.message_type_data.oneOf.7.sections.items.[INDEX].rows","typeLabel":"object[]"}},"uniqueKey":"data.message_type_data.oneOf.7.sections.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.message_type_data.oneOf.7.sections","typeLabel":"object[]"},"reply_option_id":{"type":"string","description":"For replies, the ID of the selected option","uniqueKey":"data.message_type_data.oneOf.7.reply_option_id","typeLabel":"string"},"reply_option_title":{"type":"string","description":"For replies, the title of the selected option","uniqueKey":"data.message_type_data.oneOf.7.reply_option_title","typeLabel":"string"},"list_button_text":{"type":"string","description":"Text for the button that opens the list (for list-type messages)","uniqueKey":"data.message_type_data.oneOf.7.list_button_text","typeLabel":"string"}},"uniqueKey":"data.message_type_data.oneOf.7","typeLabel":"object"},{"type":"object","description":"Data specific to reaction messages","properties":{"reaction_emoji":{"type":"string","description":"Emoji used for the reaction","uniqueKey":"data.message_type_data.oneOf.8.reaction_emoji","typeLabel":"string"},"reacted_to_message_id":{"type":"string","description":"ID of the message being reacted to","uniqueKey":"data.message_type_data.oneOf.8.reacted_to_message_id","typeLabel":"string"}},"uniqueKey":"data.message_type_data.oneOf.8","typeLabel":"object"},{"type":"object","description":"Data specific to contact messages. Supports 1-257 contacts per WhatsApp guidelines.\nAt least one contact with a name (formatted_name or first_name) is required.\n","properties":{"contacts":{"type":"array","minItems":1,"maxItems":257,"description":"List of contact cards to send","items":{"type":"object","required":["name"],"properties":{"name":{"type":"object","description":"Contact name information. Either formatted_name or first_name is required.","properties":{"formatted_name":{"type":"string","description":"Full formatted contact name","example":"Barbara J. Johnson","uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].name.formatted_name","typeLabel":"string"},"first_name":{"type":"string","description":"First name","example":"Barbara","uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].name.first_name","typeLabel":"string"},"last_name":{"type":"string","description":"Last name","example":"Johnson","uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].name.last_name","typeLabel":"string"},"middle_name":{"type":"string","description":"Middle name","example":"Joana","uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].name.middle_name","typeLabel":"string"},"prefix":{"type":"string","description":"Name prefix","example":"Dr.","uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].name.prefix","typeLabel":"string"},"suffix":{"type":"string","description":"Name suffix","example":"Esq.","uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].name.suffix","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].name","typeLabel":"object"},"birthday":{"type":"string","format":"date","description":"Contact birthday in YYYY-MM-DD format","example":"1999-01-23","uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].birthday","typeLabel":"string\u003cdate>"},"phones":{"type":"array","description":"List of phone numbers","items":{"type":"object","required":["phone"],"properties":{"phone":{"type":"string","description":"Phone number (international format recommended)","example":"+16505559999","isRequired":true,"uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].phones.items.[INDEX].phone","typeLabel":"string"},"type":{"type":"string","description":"Phone number type","example":"Mobile","uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].phones.items.[INDEX].type","typeLabel":"string"},"wa_id":{"type":"string","description":"WhatsApp ID (normalized phone number without + prefix)","example":"19175559999","uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].phones.items.[INDEX].wa_id","typeLabel":"string"}},"uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].phones.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].phones","typeLabel":"object[]"},"emails":{"type":"array","description":"List of email addresses","items":{"type":"object","required":["email"],"properties":{"email":{"type":"string","format":"email","description":"Email address","example":"bjohnson@luckyshrub.com","isRequired":true,"uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].emails.items.[INDEX].email","typeLabel":"string\u003cemail>"},"type":{"type":"string","description":"Email type","example":"Work","uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].emails.items.[INDEX].type","typeLabel":"string"}},"uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].emails.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].emails","typeLabel":"object[]"},"addresses":{"type":"array","description":"List of physical addresses","items":{"type":"object","properties":{"street":{"type":"string","description":"Street address","example":"1 Lucky Shrub Way","uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].addresses.items.[INDEX].street","typeLabel":"string"},"city":{"type":"string","description":"City","example":"Menlo Park","uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].addresses.items.[INDEX].city","typeLabel":"string"},"state":{"type":"string","description":"State or province","example":"CA","uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].addresses.items.[INDEX].state","typeLabel":"string"},"zip":{"type":"string","description":"ZIP or postal code","example":"94025","uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].addresses.items.[INDEX].zip","typeLabel":"string"},"country":{"type":"string","description":"Country name","example":"United States","uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].addresses.items.[INDEX].country","typeLabel":"string"},"country_code":{"type":"string","description":"ISO country code","example":"US","uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].addresses.items.[INDEX].country_code","typeLabel":"string"},"type":{"type":"string","description":"Address type","example":"Office","uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].addresses.items.[INDEX].type","typeLabel":"string"}},"uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].addresses.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].addresses","typeLabel":"object[]"},"urls":{"type":"array","description":"List of URLs","items":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"URL","example":"https://www.luckyshrub.com","isRequired":true,"uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].urls.items.[INDEX].url","typeLabel":"string\u003curi>"},"type":{"type":"string","description":"URL type","example":"Company","uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].urls.items.[INDEX].type","typeLabel":"string"}},"uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].urls.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].urls","typeLabel":"object[]"},"org":{"type":"object","description":"Organization information","properties":{"company":{"type":"string","description":"Company name","example":"Lucky Shrub","uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].org.company","typeLabel":"string"},"department":{"type":"string","description":"Department name","example":"Legal","uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].org.department","typeLabel":"string"},"title":{"type":"string","description":"Job title","example":"Lead Counsel","uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].org.title","typeLabel":"string"}},"uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX].org","typeLabel":"object"}},"uniqueKey":"data.message_type_data.oneOf.9.contacts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.message_type_data.oneOf.9.contacts","typeLabel":"object[]"}},"uniqueKey":"data.message_type_data.oneOf.9","typeLabel":"object"}],"uniqueKey":"data.message_type_data","typeLabel":"object"},"created_at":{"type":"string","format":"date-time","uniqueKey":"data.created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","uniqueKey":"data.updated_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"text_message":{"title":"text_message","value":{"data":{"id":"msg-123abc","phone_number":"+1234567890","message_type":"text","content":"Hello, how can I help you today?","direction":"outbound","status":"sent","whatsapp_message_id":"wamid.HBgLMTIzNDU2Nzg5MAUCAw==","created_at":"2024-01-15T10:30:00Z","updated_at":"2024-01-15T10:30:00Z"}}},"template_message":{"title":"template_message","value":{"data":{"id":"msg-456def","phone_number":"+1234567890","message_type":"template","content":"Hi John Doe, your order ORD-12345 has been confirmed!","direction":"outbound","status":"sent","whatsapp_message_id":"wamid.HBgLMTIzNDU2Nzg5MAUCAw==","metadata":{"template_name":"order_confirmation","template_params":["John Doe","ORD-12345"]},"created_at":"2024-01-15T10:30:00Z","updated_at":"2024-01-15T10:30:00Z"}}},"template_message_named":{"title":"template_message_named","value":{"data":{"id":"msg-789ghi","phone_number":"+1234567890","message_type":"template","content":"Hi John Doe, your order ORD-12345 totaling $99.99 will be delivered Tomorrow at 2 PM!","direction":"outbound","status":"sent","whatsapp_message_id":"wamid.HBgLMTIzNDU2Nzg5MAUCAw==","metadata":{"template_name":"order_notification","template_language":"en_US","template_params":{"customer_name":"John Doe","order_id":"ORD-12345","delivery_date":"Tomorrow at 2 PM","total_amount":"$99.99"}},"created_at":"2024-01-15T10:30:00Z","updated_at":"2024-01-15T10:30:00Z"}}},"template_with_header_body_named":{"title":"template_with_header_body_named","value":{"data":{"id":"msg-101jkl","phone_number":"+1234567890","message_type":"template","content":"Summer Sale: Shop now through August 31st and use code SUMMER25 to get 25% off!","direction":"outbound","status":"sent","whatsapp_message_id":"wamid.HBgLMTIzNDU2Nzg5MAUCAw==","metadata":{"template_name":"seasonal_sale_extended","template_language":"en_US","template_params":{"header":{"sale_name":"Summer Sale"},"body":{"end_date":"August 31st","promo_code":"SUMMER25","discount_amount":"25%"}}},"created_at":"2024-01-15T10:30:00Z","updated_at":"2024-01-15T10:30:00Z"}}},"contacts_message":{"title":"contacts_message","value":{"data":{"id":"msg-202mno","phone_number":"+1234567890","message_type":"contacts","content":"Contact: Barbara J. Johnson","direction":"outbound","status":"sent","whatsapp_message_id":"wamid.HBgLMTIzNDU2Nzg5MAUCAw==","metadata":{"contacts_data":[{"name":{"formatted_name":"Barbara J. Johnson","first_name":"Barbara","last_name":"Johnson","middle_name":"Joana","prefix":"Dr.","suffix":"Esq."},"birthday":"1999-01-23","addresses":[{"street":"1 Lucky Shrub Way","city":"Menlo Park","state":"CA","zip":"94025","country":"United States","country_code":"US","type":"Office"}],"emails":[{"email":"bjohnson@luckyshrub.com","type":"Work"}],"phones":[{"phone":"+16505559999","type":"Landline"},{"phone":"+19175559999","type":"Mobile","wa_id":"19175559999"}],"org":{"company":"Lucky Shrub","department":"Legal","title":"Lead Counsel"},"urls":[{"url":"https://www.luckyshrub.com","type":"Company"}]}]},"created_at":"2024-01-15T10:30:00Z","updated_at":"2024-01-15T10:30:00Z"}}}},"exampleType":"examples"}},"exampleType":"examples"},"5a925ce7-e918-4472-a501-b2480892f75f":{"description":"Bad request - missing required parameters","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"Resource not found","uniqueKey":"error","typeLabel":"string"},"status":{"type":"integer","example":404,"uniqueKey":"status","typeLabel":"integer"},"message":{"type":"string","example":"The requested resource could not be found","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"missing_phone":{"title":"missing_phone","value":{"error":"Phone number is required"}}},"exampleType":"examples"}},"exampleType":"examples"},"b9e61ce4-40c9-4180-ac63-6f85b83bdf2c":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"Resource not found","uniqueKey":"error","typeLabel":"string"},"status":{"type":"integer","example":404,"uniqueKey":"status","typeLabel":"integer"},"message":{"type":"string","example":"The requested resource could not be found","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Resource not found","status":404,"message":"The requested resource could not be found"}}},"exampleType":"generated"}},"exampleType":"generated"},"4094295a-9112-496f-9835-d2938ef280e0":{"description":"Template not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"Resource not found","uniqueKey":"error","typeLabel":"string"},"status":{"type":"integer","example":404,"uniqueKey":"status","typeLabel":"integer"},"message":{"type":"string","example":"The requested resource could not be found","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"template_not_found":{"title":"template_not_found","value":{"error":"Template not found"}}},"exampleType":"examples"}},"exampleType":"examples"},"1a604283-d29f-43c2-ae09-c03cf1c405c0":{"description":"Cannot send message when an agent execution is active","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"Resource not found","uniqueKey":"error","typeLabel":"string"},"status":{"type":"integer","example":404,"uniqueKey":"status","typeLabel":"integer"},"message":{"type":"string","example":"The requested resource could not be found","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"agent_active":{"title":"agent_active","value":{"error":"Cannot send a manual message when an agent execution is active and not in handoff, failed, or stopped state"}}},"exampleType":"examples"}},"exampleType":"examples"},"2bb35b53-7442-41e5-9eb7-5f8f26fedb53":{"description":"Validation error or WhatsApp configuration not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"Resource not found","uniqueKey":"error","typeLabel":"string"},"status":{"type":"integer","example":404,"uniqueKey":"status","typeLabel":"integer"},"message":{"type":"string","example":"The requested resource could not be found","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"config_not_found":{"title":"config_not_found","value":{"error":"WhatsApp configuration not found"}}},"exampleType":"examples"}},"exampleType":"examples"},"9d8a5dba-ab6b-4c3d-95ac-7d9fe2b1f397":{"description":"WhatsApp service error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"Resource not found","uniqueKey":"error","typeLabel":"string"},"status":{"type":"integer","example":404,"uniqueKey":"status","typeLabel":"integer"},"message":{"type":"string","example":"The requested resource could not be found","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Resource not found","status":404,"message":"The requested resource could not be found"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"56101e0f-130f-4c4e-b5bf-1f38b2c2d3a4":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"API key required for all endpoints","scopes":[]}}},"servers":{"21319188-164c-40be-9786-d4b7e6f4d894":{"url":"https://app.kapso.ai/api/v1","description":"Production server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","description":"API key required for all endpoints","scopes":[]},"schema":{"title":"X-API-Key","type":"string","description":"API key required for all endpoints","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"X-API-Key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"api/legacy/openapi-whatsapp.yaml"},"subdomain":"kapso-1adbad2d","siteName":"Kapso Legacy API","title":"Send a WhatsApp message (standalone) - Kapso Legacy API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"api/legacy/whatsapp/whatsapp-messages/send-a-whatsapp-message-standalone.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Sends a new WhatsApp message without requiring a conversation ID. This endpoint automatically finds or creates a conversation based on the phone number and WhatsApp configuration. Configuration Selection: - If whatsapp_config_id is provided, uses that specific configuration - If customer_id is provided, uses the customer\u0026#x27;s WhatsApp configuration - If neither is provided, uses the first available configuration for the project Conversation Management: - Automatically finds existing active conversations for the phone number - Creates new conversations if none exist - Updates conversation activity timestamps - Creates WhatsApp contacts as needed Message Types: Supports all message types including text, template, media, interactive, location, reaction, and contacts. Agent Integration: Respects agent execution states and handoff rules. Messages are blocked when an agent execution is active and not in handoff, failed, or stopped state.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Kapso Legacy API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kapso-1adbad2d/GluN0HZ6wmoOHcq_/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/kapso-1adbad2d/GluN0HZ6wmoOHcq_/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kapso-1adbad2d/GluN0HZ6wmoOHcq_/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/kapso-1adbad2d/GluN0HZ6wmoOHcq_/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/kapso-1adbad2d/GluN0HZ6wmoOHcq_/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kapso-1adbad2d/GluN0HZ6wmoOHcq_/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kapso-1adbad2d/GluN0HZ6wmoOHcq_/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/kapso-1adbad2d/GluN0HZ6wmoOHcq_/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/kapso-1adbad2d/GluN0HZ6wmoOHcq_/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Send a WhatsApp message (standalone) - Kapso Legacy API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Sends a new WhatsApp message without requiring a conversation ID. This endpoint automatically finds or creates a conversation based on the phone number and WhatsApp configuration. Configuration Selection: - If whatsapp_config_id is provided, uses that specific configuration - If customer_id is provided, uses the customer\u0026#x27;s WhatsApp configuration - If neither is provided, uses the first available configuration for the project Conversation Management: - Automatically finds existing active conversations for the phone number - Creates new conversations if none exist - Updates conversation activity timestamps - Creates WhatsApp contacts as needed Message Types: Supports all message types including text, template, media, interactive, location, reaction, and contacts. Agent Integration: Respects agent execution states and handoff rules. Messages are blocked when an agent execution is active and not in handoff, failed, or stopped state.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Kapso Legacy API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://kapso-1adbad2d.mintlify.app/api/legacy/whatsapp/whatsapp-messages/send-a-whatsapp-message-standalone\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://kapso-1adbad2d.mintlify.site/_mintlify/api/og/v2?division=WhatsApp+Messages\u0026amp;title=Send+a+WhatsApp+message+%28standalone%29\u0026amp;description=Sends+a+new+WhatsApp+message+without+requiring+a+conversation+ID.%0AThis+endpoint+automatically+finds+or+creates+a+conversation+based+on+the+phone+number+and+What\u0026amp;theme=f73b688ffa4de61765f3e914\u0026amp;signature=f5abf1ebe10e87b4ffc5d64cdbf2818abcd572f6bb736d860a83b3005652b568\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Send a WhatsApp message (standalone) - Kapso Legacy API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Sends a new WhatsApp message without requiring a conversation ID. This endpoint automatically finds or creates a conversation based on the phone number and WhatsApp configuration. Configuration Selection: - If whatsapp_config_id is provided, uses that specific configuration - If customer_id is provided, uses the customer\u0026#x27;s WhatsApp configuration - If neither is provided, uses the first available configuration for the project Conversation Management: - Automatically finds existing active conversations for the phone number - Creates new conversations if none exist - Updates conversation activity timestamps - Creates WhatsApp contacts as needed Message Types: Supports all message types including text, template, media, interactive, location, reaction, and contacts. Agent Integration: Respects agent execution states and handoff rules. Messages are blocked when an agent execution is active and not in handoff, failed, or stopped state.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://kapso-1adbad2d.mintlify.site/_mintlify/api/og/v2?division=WhatsApp+Messages\u0026amp;title=Send+a+WhatsApp+message+%28standalone%29\u0026amp;description=Sends+a+new+WhatsApp+message+without+requiring+a+conversation+ID.%0AThis+endpoint+automatically+finds+or+creates+a+conversation+based+on+the+phone+number+and+What\u0026amp;theme=f73b688ffa4de61765f3e914\u0026amp;signature=f5abf1ebe10e87b4ffc5d64cdbf2818abcd572f6bb736d860a83b3005652b568\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/kapso-1adbad2d/GluN0HZ6wmoOHcq_/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Kapso Legacy API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://kapso-1adbad2d.mintlify.app/api/legacy/whatsapp/whatsapp-messages/send-a-whatsapp-message-standalone\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/legacy/whatsapp/whatsapp-messages/send-a-whatsapp-message-standalone.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://kapso-1adbad2d.mintlify.app/#organization\",\"name\":\"Kapso Legacy API\",\"url\":\"https://kapso-1adbad2d.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/kapso-1adbad2d/F0G7jRWQUb5FH6t1/logo/light.png?fit=max\u0026auto=format\u0026n=F0G7jRWQUb5FH6t1\u0026q=85\u0026s=62f92195d30c620aeef35e3219d13067\"}},{\"@type\":\"WebSite\",\"@id\":\"https://kapso-1adbad2d.mintlify.app#website\",\"name\":\"Kapso Legacy API\",\"url\":\"https://kapso-1adbad2d.mintlify.app\",\"publisher\":{\"@id\":\"https://kapso-1adbad2d.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://kapso-1adbad2d.mintlify.app/api/legacy/whatsapp/whatsapp-messages/send-a-whatsapp-message-standalone#webpage\",\"url\":\"https://kapso-1adbad2d.mintlify.app/api/legacy/whatsapp/whatsapp-messages/send-a-whatsapp-message-standalone\",\"name\":\"Send a WhatsApp message (standalone)\",\"description\":\"Sends a new WhatsApp message without requiring a conversation ID. This endpoint automatically finds or creates a conversation based on the phone number and WhatsApp configuration. Configuration Selection: - If whatsapp_config_id is provided, uses that specific configuration - If customer_id is provided, uses the customer's WhatsApp configuration - If neither is provided, uses the first available configuration for the project Conversation Management: - Automatically finds existing active conversations for the phone number - Creates new conversations if none exist - Updates conversation activity timestamps - Creates WhatsApp contacts as needed Message Types: Supports all message types including text, template, media, interactive, location, reaction, and contacts. Agent Integration: Respects agent execution states and handoff rules. Messages are blocked when an agent execution is active and not in handoff, failed, or stopped state.\",\"isPartOf\":{\"@id\":\"https://kapso-1adbad2d.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://kapso-1adbad2d.mintlify.app/api/legacy/whatsapp/whatsapp-messages/send-a-whatsapp-message-standalone#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://kapso-1adbad2d.mintlify.app/api/legacy/whatsapp/whatsapp-messages/send-a-whatsapp-message-standalone#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"WhatsApp Messages\",\"item\":\"https://kapso-1adbad2d.mintlify.app/api/legacy/whatsapp/whatsapp-messages/list-messages-in-a-whatsapp-conversation\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Send a WhatsApp message (standalone)\",\"item\":\"https://kapso-1adbad2d.mintlify.app/api/legacy/whatsapp/whatsapp-messages/send-a-whatsapp-message-standalone\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://kapso-1adbad2d.mintlify.app/api/legacy/whatsapp/whatsapp-messages/send-a-whatsapp-message-standalone#apireference\",\"headline\":\"Send a WhatsApp message (standalone)\",\"name\":\"Send a WhatsApp message (standalone)\",\"description\":\"Sends a new WhatsApp message without requiring a conversation ID. This endpoint automatically finds or creates a conversation based on the phone number and WhatsApp configuration. Configuration Selection: - If whatsapp_config_id is provided, uses that specific configuration - If customer_id is provided, uses the customer's WhatsApp configuration - If neither is provided, uses the first available configuration for the project Conversation Management: - Automatically finds existing active conversations for the phone number - Creates new conversations if none exist - Updates conversation activity timestamps - Creates WhatsApp contacts as needed Message Types: Supports all message types including text, template, media, interactive, location, reaction, and contacts. Agent Integration: Respects agent execution states and handoff rules. Messages are blocked when an agent execution is active and not in handoff, failed, or stopped state.\",\"url\":\"https://kapso-1adbad2d.mintlify.app/api/legacy/whatsapp/whatsapp-messages/send-a-whatsapp-message-standalone\",\"mainEntityOfPage\":{\"@id\":\"https://kapso-1adbad2d.mintlify.app/api/legacy/whatsapp/whatsapp-messages/send-a-whatsapp-message-standalone#webpage\"},\"publisher\":{\"@id\":\"https://kapso-1adbad2d.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://kapso-1adbad2d.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Kapso Legacy API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Kapso Legacy API","nav":{"global":{"anchors":[{"anchor":"Github","icon":"github","href":"https://github.com/gokapso"},{"anchor":"Current API","icon":"arrow-right","href":"https://docs.kapso.ai"}]},"tabs":[{"tab":"WhatsApp API","groups":[{"group":"Guides","pages":[{"title":"Sending Templates","href":"/docs/integrations/whatsapp/sending-templates"}]},{"group":"WhatsApp Conversations","pages":[{"title":"List WhatsApp conversations","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml get /whatsapp_conversations","href":"/api/legacy/whatsapp/whatsapp-conversations/list-whatsapp-conversations"},{"title":"Get WhatsApp conversation details","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml get /whatsapp_conversations/{conversation_id}","href":"/api/legacy/whatsapp/whatsapp-conversations/get-whatsapp-conversation-details"},{"title":"Update WhatsApp conversation status","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml patch /whatsapp_conversations/{conversation_id}","href":"/api/legacy/whatsapp/whatsapp-conversations/update-whatsapp-conversation-status"},{"title":"List agent executions for a WhatsApp conversation","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml get /whatsapp_conversations/{conversation_id}/agent_executions","href":"/api/legacy/whatsapp/whatsapp-conversations/list-agent-executions-for-a-whatsapp-conversation"},{"title":"Get agent execution association details","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml get /whatsapp_conversations/{conversation_id}/agent_executions/{id}","href":"/api/legacy/whatsapp/whatsapp-conversations/get-agent-execution-association-details"}]},{"group":"WhatsApp Messages","pages":[{"title":"List messages in a WhatsApp conversation","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml get /whatsapp_conversations/{conversation_id}/whatsapp_messages","href":"/api/legacy/whatsapp/whatsapp-messages/list-messages-in-a-whatsapp-conversation"},{"title":"Send a new WhatsApp message","description":"Sends a new message through WhatsApp Cloud API and creates the message record","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml post /whatsapp_conversations/{conversation_id}/whatsapp_messages","href":"/api/legacy/whatsapp/whatsapp-messages/send-a-new-whatsapp-message"},{"title":"Send a WhatsApp message (standalone)","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml post /whatsapp_messages","href":"/api/legacy/whatsapp/whatsapp-messages/send-a-whatsapp-message-standalone"},{"title":"Mark WhatsApp message as read","description":"Marks an inbound WhatsApp message as read and syncs the status with WhatsApp API.\n\n**Key Features:**\n- Only inbound messages can be marked as read\n- Optimistically updates local status for immediate feedback\n- Asynchronously syncs with WhatsApp API via background job\n- Skips messages already marked as read\n- Supports optional typing indicator control\n\n**Sandbox Mode:**\nMessages from sandbox conversations (no WhatsApp config) are handled appropriately with sandbox-specific processing.\n","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml patch /whatsapp_messages/{id}/mark_as_read","href":"/api/legacy/whatsapp/whatsapp-messages/mark-whatsapp-message-as-read"},{"title":"Delete WhatsApp message","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml delete /whatsapp_messages/{id}","href":"/api/legacy/whatsapp/whatsapp-messages/delete-whatsapp-message"}]},{"group":"Conversation Assignments","pages":[{"title":"List conversation assignments","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml get /whatsapp_conversations/{whatsapp_conversation_id}/conversation_assignments","href":"/api/legacy/whatsapp/conversation-assignments/list-conversation-assignments"},{"title":"Create a conversation assignment","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml post /whatsapp_conversations/{whatsapp_conversation_id}/conversation_assignments","href":"/api/legacy/whatsapp/conversation-assignments/create-a-conversation-assignment"},{"title":"Update a conversation assignment","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml patch /whatsapp_conversations/{whatsapp_conversation_id}/conversation_assignments/{id}","href":"/api/legacy/whatsapp/conversation-assignments/update-a-conversation-assignment"}]},{"group":"WhatsApp Templates","pages":[{"title":"List WhatsApp templates","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml get /whatsapp_templates","href":"/api/legacy/whatsapp/whatsapp-templates/list-whatsapp-templates"},{"title":"Create a new WhatsApp template","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml post /whatsapp_templates","href":"/api/legacy/whatsapp/whatsapp-templates/create-a-new-whatsapp-template"},{"title":"Get WhatsApp template details","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml get /whatsapp_templates/{template_id}","href":"/api/legacy/whatsapp/whatsapp-templates/get-whatsapp-template-details"},{"title":"Delete a WhatsApp template","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml delete /whatsapp_templates/{template_id}","href":"/api/legacy/whatsapp/whatsapp-templates/delete-a-whatsapp-template"},{"title":"Update a WhatsApp template","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml patch /whatsapp_templates/{template_id}","href":"/api/legacy/whatsapp/whatsapp-templates/update-a-whatsapp-template"},{"title":"Send a WhatsApp template message","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml post /whatsapp_templates/{template_id}/send_template","href":"/api/legacy/whatsapp/whatsapp-templates/send-a-whatsapp-template-message"},{"title":"Submit a WhatsApp template for approval","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml post /whatsapp_templates/{template_id}/submit","href":"/api/legacy/whatsapp/whatsapp-templates/submit-a-whatsapp-template-for-approval"},{"title":"Edit a WhatsApp template on Meta","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml patch /whatsapp_templates/{template_id}/meta","href":"/api/legacy/whatsapp/whatsapp-templates/edit-a-whatsapp-template-on-meta"},{"title":"Sync WhatsApp templates","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml post /whatsapp_templates/sync","href":"/api/legacy/whatsapp/whatsapp-templates/sync-whatsapp-templates"},{"title":"Get WhatsApp template sync status","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml get /whatsapp_templates/sync_status","href":"/api/legacy/whatsapp/whatsapp-templates/get-whatsapp-template-sync-status"}]},{"group":"WhatsApp Contacts","pages":[{"title":"List WhatsApp contacts","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml get /whatsapp_contacts","href":"/api/legacy/whatsapp/whatsapp-contacts/list-whatsapp-contacts"},{"title":"Create a WhatsApp contact","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml post /whatsapp_contacts","href":"/api/legacy/whatsapp/whatsapp-contacts/create-a-whatsapp-contact"},{"title":"Get a WhatsApp contact","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml get /whatsapp_contacts/{identifier}","href":"/api/legacy/whatsapp/whatsapp-contacts/get-a-whatsapp-contact"},{"title":"Update a WhatsApp contact","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml patch /whatsapp_contacts/{identifier}","href":"/api/legacy/whatsapp/whatsapp-contacts/update-a-whatsapp-contact"}]},{"group":"WhatsApp Contact Notes","pages":[{"title":"List notes for a WhatsApp contact","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml get /whatsapp_contacts/{identifier}/notes","href":"/api/legacy/whatsapp/whatsapp-contact-notes/list-notes-for-a-whatsapp-contact"},{"title":"Create a note for a WhatsApp contact","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml post /whatsapp_contacts/{identifier}/notes","href":"/api/legacy/whatsapp/whatsapp-contact-notes/create-a-note-for-a-whatsapp-contact"},{"title":"Get a specific note","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml get /whatsapp_contacts/{identifier}/notes/{note_id}","href":"/api/legacy/whatsapp/whatsapp-contact-notes/get-a-specific-note"},{"title":"Delete a note","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml delete /whatsapp_contacts/{identifier}/notes/{note_id}","href":"/api/legacy/whatsapp/whatsapp-contact-notes/delete-a-note"},{"title":"Update a note","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml patch /whatsapp_contacts/{identifier}/notes/{note_id}","href":"/api/legacy/whatsapp/whatsapp-contact-notes/update-a-note"}]},{"group":"WhatsApp Configs","pages":[{"title":"List WhatsApp configs","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml get /whatsapp_configs","href":"/api/legacy/whatsapp/whatsapp-configs/list-whatsapp-configs"},{"title":"Get WhatsApp config details","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml get /whatsapp_configs/{id}","href":"/api/legacy/whatsapp/whatsapp-configs/get-whatsapp-config-details"},{"title":"Delete WhatsApp config","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml delete /whatsapp_configs/{id}","href":"/api/legacy/whatsapp/whatsapp-configs/delete-whatsapp-config"},{"title":"Update WhatsApp config","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml patch /whatsapp_configs/{id}","href":"/api/legacy/whatsapp/whatsapp-configs/update-whatsapp-config"},{"title":"Get WhatsApp config health status","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml get /whatsapp_configs/{id}/health","href":"/api/legacy/whatsapp/whatsapp-configs/get-whatsapp-config-health-status"}]},{"group":"WhatsApp Calls","pages":[{"title":"List WhatsApp calls","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml get /whatsapp_calls","href":"/api/legacy/whatsapp/whatsapp-calls/list-whatsapp-calls"},{"title":"Get WhatsApp call details","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml get /whatsapp_calls/{id}","href":"/api/legacy/whatsapp/whatsapp-calls/get-whatsapp-call-details"}]},{"group":"WhatsApp Contact Call Permissions","pages":[{"title":"List call permissions for a WhatsApp contact","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml get /whatsapp_contacts/{identifier}/call_permissions","href":"/api/legacy/whatsapp/whatsapp-contact-call-permissions/list-call-permissions-for-a-whatsapp-contact"},{"title":"Get specific call permission","deprecated":null,"version":null,"openapi":"api/legacy/openapi-whatsapp.yaml get /whatsapp_contacts/{identifier}/call_permissions/{whatsapp_config_id}","href":"/api/legacy/whatsapp/whatsapp-contact-call-permissions/get-specific-call-permission"}]}]},{"tab":"Platform API","pages":[{"title":"Platform API","href":"/api/legacy/platform/customers/list-customers"}]},{"tab":"Agents API","pages":[{"title":"Agents API","href":"/api/legacy/agents-introduction"}]},{"tab":"Functions API","pages":[{"title":"Functions API","href":"/api/legacy/functions/functions/list-all-functions"}]},{"tab":"Builder SDK","pages":[{"title":"Builder SDK","href":"/builder-reference/overview"}]}]},"basePath":"","title":"Send a WhatsApp message (standalone) - Kapso Legacy API","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CBsVopKK.js","utils-DZAk68jJ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D32AYZrP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D_A5_cny.js","snippetPresets-xNRfS9th.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BIB25-tq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CydJ4w4j.js","shallow-CYPBeQSG.js","getApiPlaygroundDisplay-A5xJVBOu.js","CodeSnippet-BVRTgi3m.js","CodeSnippets-DjD6BSlt.js","Page-Dr40SSJq.js","getPastedJson-D4V4JyrR.js","icon-uhcnG22T.js","MethodPill-CM-ZQdGH.js","DuplicateIcon-B_WnOiNf.js","createIcon-CJsb8utt.js","DynamicMarkdown-D-2HDKEp.js","SectionHeading-KP5xmMgQ.js","axios-vUo_bRtp.js","Markdown-D_k0dg6k.js","clsx-DK3K4Z1S.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DE3EVdvd.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-fN9H9n9g.js"]}