For the complete documentation index, see llms.txt. This page is also available as Markdown.

Chatbot templates

Retrieves a specific WhatsApp template

get

Required Permission: chatbots.templates.get

Resource: chatbots/:chatbotId

Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired

The ID of the chatbot.

templateIdstringRequired

The ID of the template to be retrieved.

workspaceIdstringRequired

The ID of the workspace.

Query parameters
channelIdanyRequired

The ID of the channel to which the template belongs.

Responses
200

Template details.

application/json
errorstringOptional

Optional error message.

get
/v1/workspaces/{workspaceId}/chatbots/{chatbotId}/templates/{templateId}

Creates a new WhatsApp template

post

Required Permission: chatbots.templates.create

Resource: chatbots/:chatbotId

Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired

The ID of the chatbot.

workspaceIdstringRequired

The ID of the workspace.

Body
channelIdstringRequired

The ID of the channel for which the template is created.

Example: t1o15pfRt7PBT5hvC9z4
namestringRequired

The name of the template.

Example: order_confirmation_v2
categorystringRequired

The category of the template (e.g., "UTILITY", "MARKETING").

Example: UTILITY
Responses
post
/v1/workspaces/{workspaceId}/chatbots/{chatbotId}/templates

Last updated