Skip to main content
POST
Send a template

Authorizations

x-api-key
string
header
required

Copy the API key as provided by the Bridge Console.

Headers

Idempotency-Key
string
required

Required. A key you choose for each send, 1 to 255 characters, such as your system's operation id. Send the same key to retry that send: for 24 hours Bridge answers with the message the first request stored instead of sending again.

Required string length: 1 - 255
Example:

"erp-order-981-shipped"

Path Parameters

workspaceId
string<uuid>
required

Unique identifier of the workspace (UUID v4).

Example:

"b6cf1c4a-2b1e-4e63-8f3e-0f9d1a2a1234"

conversationId
string<uuid>
required

Unique identifier of the conversation (UUID v4).

Example:

"4e362e2b-67b2-4a7e-a9df-e9ecf9141be8"

Body

application/json

Request body to send a provider template into an existing conversation.

template
Template · object
required

The provider template to send and the values of its variables.

Response

Bridge stored the message for sending, or an earlier request with the same Idempotency-Key did. See Responses and retries.

The message Bridge stored for sending the template into the conversation.

conversationId
string
required

Identifier of the conversation the template was sent into.

Example:

"7d4a1f2e-3b5c-4d6e-8f9a-0b1c2d3e4f5a"

messageId
string
required

Identifier of the message Bridge stored for the template. It is one message, read by every WhatsApp Contact of the conversation.

Example:

"b6cf1c4a-2b1e-4e63-8f3e-0f9d1a2a1234"

templateId
string
required

Identifier of the template that was sent.

Example:

"4061e74e-f6fe-4072-a760-3aec0b64f7a6"

templateName
string
required

Name of the template that was sent.

Example:

"order_shipped_promo"