---
updatedAt: 2026-05-08T11:56:40.000Z
agentTools:
  projectIndex: https://developers.voiso.com/llms.txt
---

# Create conversation

Initiate a new conversation for WhatsApp channels.

The **Create conversation** endpoint initiates a new conversation for **WhatsApp** channels.

Requirements: [Base URL](https://developers.voiso.com/reference/base-url), [Authentication](https://developers.voiso.com/reference/authentication), [Error codes](https://developers.voiso.com/reference/error-codes)

**Scope**: `messaging.conversations.manage`

## What this does

When you send a Create conversation request, <BrandName /> creates a new conversation and sends an initial **WhatsApp template** message.

## Endpoint

```
POST /api/v4/messaging/conversations
```

## Request body

Required fields:

* channel\_profile\_id\
  The unique identifier of the channel profile.
* contact\_channel\_identifier\
  Channel specific identifier of the contact (phone number for WhatsApp).
* message\
  The initial message for the conversation.

Optional fields:

* user\_id\
  The unique identifier of the user assigned to the conversation (integer).
* source\
  Information about the external system that provided the contact.

  * source.system\
    The name of an external application, such as a CRM.
  * source.account\_id\
    An identifier assigned to the contact in an external application, such as a CRM.

### message object

* content\_type\
  Must be `whatsapp_template`.
* content\_data.whatsapp\_template\_id\
  The unique identifier of the WhatsApp template (UUID).
* content\_data.placeholders\
  Placeholder values for the WhatsApp template, indexed by position.

## Related endpoints

* Get a WhatsApp template ID: [Get list of WhatsApp templates](https://developers.voiso.com/reference/getwhatsapptemplates)
* Get a user ID: [Get list of users](https://developers.voiso.com/reference/getusers)
* Get a channel profile ID: [Get list of channel profiles](https://developers.voiso.com/reference/getchannelprofiles)

## Example request

```bash
curl -X POST "https://{cluster_id}.voiso.com/api/v4/messaging/conversations" \
  -H "Authorization: Bearer <contact_center_api_key>" \
  -H "Content-Type: application/json" \
  -d '{
    "channel_profile_id": 12,
    "contact_channel_identifier": "15551234567",
    "user_id": 1,
    "source": {
      "system": "zoho",
      "account_id": "123321"
    },
    "message": {
      "content_type": "whatsapp_template",
      "content_data": {
        "whatsapp_template_id": "0b62763c-40d6-4ec8-8380-3cb94e442a75",
        "placeholders": {
          "1": "John",
          "2": "01 Jan 2026"
        }
      }
    }
  }'
```

## Response

If successful, the API returns a `conversation` object.

```json
{
  "conversation": {
    "id": "0b62763c-40d6-4ec8-8380-3cb94e442a75",
    "channel_profile": {
      "id": 12,
      "channel": "whatsapp",
      "identifier": "18885658889",
      "name": "WhatsApp Main (18885658889)"
    },
    "contact_channel_account": {
      "id": "0b62763c-40d6-4ec8-8380-3cb94e442a75",
      "channel": "whatsapp",
      "identifier": "15551234567",
      "data": {
        "name": "John Smith",
        "username": "johnsmith"
      }
    },
    "user": {
      "id": 1,
      "name": "Jane Doe",
      "email": "jane.doe@contactcenter.com"
    },
    "flow": null,
    "queue": null,
    "status": "active"
  }
}
```

`conversation` fields come from the Conversation schema.

## Notes

* This endpoint is intended for WhatsApp conversations.
* The initial message must be a WhatsApp template message (`content_type: whatsapp_template`).
* `source` is optional. If you provide `source`, include both `source.system` and `source.account_id`.

## Troubleshooting

### 401 Unauthorized

Returned if the API key is missing or invalid.

### 403 Forbidden

Returned if the API key does not have access to Messaging resources.

### 422 Unprocessable Entity

Returned when request validation fails (for example missing required fields, invalid IDs, or invalid template payload).

### 429 Too many requests

Returned if requests are rate limited.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Voiso API",
    "description": "The Voiso APIs follow a conventional REST architecture and are compatible with any programming language.\n\nUse these APIs to securely access data and manage contact center features, settings, and entities.\n",
    "version": "4.0.0",
    "contact": {
      "name": "Support",
      "email": "support@voiso.com"
    }
  },
  "servers": [
    {
      "url": "https://{defaultHost}",
      "variables": {
        "defaultHost": {
          "default": "{cluster_id}.voiso.com"
        }
      }
    }
  ],
  "tags": [
    {
      "name": "Messaging"
    }
  ],
  "security": [
    {
      "StaticKey": []
    }
  ],
  "paths": {
    "/api/v4/messaging/conversations": {
      "post": {
        "operationId": "createConversation",
        "tags": [
          "Messaging"
        ],
        "summary": "Create conversation",
        "description": "Initiate a new conversation for WhatsApp channels.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "channel_profile_id": {
                    "description": "The unique identifier of the channel profile.",
                    "type": "integer",
                    "example": 1
                  },
                  "contact_channel_identifier": {
                    "description": "Channel-specific identifier of the contact (phone number for WhatsApp).",
                    "type": "string",
                    "example": "15551234567"
                  },
                  "user_id": {
                    "description": "The unique identifier of the user assigned to the conversation.",
                    "type": "integer",
                    "example": 1
                  },
                  "message": {
                    "description": "The initial message for the conversation.",
                    "type": "object",
                    "properties": {
                      "content_type": {
                        "description": "The message content type (\"whatsapp_template\" only).",
                        "type": "string",
                        "enum": [
                          "whatsapp_template"
                        ],
                        "example": "whatsapp_template"
                      },
                      "content_data": {
                        "description": "WhatsApp template payload.",
                        "type": "object",
                        "properties": {
                          "whatsapp_template_id": {
                            "description": "The unique identifier of the WhatsApp template.",
                            "type": "string",
                            "format": "uuid",
                            "example": "0b62763c-40d6-4ec8-8380-3cb94e442a75"
                          },
                          "placeholders": {
                            "description": "Placeholder values for the WhatsApp template, indexed by position.",
                            "type": "object",
                            "example": {
                              "1": "John",
                              "2": "01 Jan 2026"
                            }
                          }
                        },
                        "required": [
                          "whatsapp_template_id"
                        ]
                      }
                    },
                    "required": [
                      "content_type",
                      "content_data"
                    ]
                  },
                  "source": {
                    "description": "Information about the external system that provided the contact number, such as a CRM.",
                    "type": "object",
                    "properties": {
                      "system": {
                        "description": "The name of an external application, such as a CRM, where contact information is managed.",
                        "type": "string",
                        "example": "zoho"
                      },
                      "account_id": {
                        "description": "An identifier assigned to the contact in an external application, such as a CRM.",
                        "type": "string",
                        "example": "123321"
                      }
                    },
                    "required": [
                      "system",
                      "account_id"
                    ]
                  }
                },
                "required": [
                  "channel_profile_id",
                  "contact_channel_identifier",
                  "message"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "conversation": {
                      "$ref": "#/components/schemas/Conversation"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ChannelAccount": {
        "type": "object",
        "properties": {
          "id": {
            "description": "The unique identifier of the channel account.",
            "type": "string",
            "format": "uuid",
            "example": "0b62763c-40d6-4ec8-8380-3cb94e442a75"
          },
          "channel": {
            "description": "The messaging channel.",
            "type": "string",
            "enum": [
              "chat",
              "facebook",
              "instagram",
              "telegram",
              "viber",
              "whatsapp"
            ],
            "example": "whatsapp"
          },
          "identifier": {
            "description": "Channel-specific identifier of the contact.",
            "type": "string",
            "example": "15551234567"
          },
          "data": {
            "description": "Additional channel data.",
            "type": "object",
            "properties": {
              "name": {
                "description": "Display name of the contact.",
                "type": "string",
                "example": "John Smith",
                "nullable": true
              },
              "username": {
                "description": "Channel username when applicable.",
                "type": "string",
                "example": "johnsmith",
                "nullable": true
              }
            },
            "required": [
              "name"
            ]
          }
        }
      },
      "ChannelProfileShort": {
        "type": "object",
        "properties": {
          "id": {
            "description": "The unique identifier of the channel profile.",
            "type": "integer",
            "example": 12
          },
          "channel": {
            "description": "The channel associated with the profile.",
            "type": "string",
            "enum": [
              "chat",
              "facebook",
              "instagram",
              "telegram",
              "viber",
              "whatsapp"
            ],
            "example": "whatsapp"
          },
          "identifier": {
            "description": "Channel profile identifier (for WhatsApp, the phone number).",
            "type": "string",
            "example": "18885658889",
            "nullable": true
          },
          "name": {
            "description": "The name of the channel profile.",
            "type": "string",
            "example": "WhatsApp Main (18885658889)"
          }
        }
      },
      "Conversation": {
        "type": "object",
        "properties": {
          "id": {
            "description": "The unique identifier of the conversation.",
            "type": "string",
            "format": "uuid",
            "example": "0b62763c-40d6-4ec8-8380-3cb94e442a75"
          },
          "channel_profile": {
            "description": "Channel profile handling the conversation.",
            "allOf": [
              {
                "$ref": "#/components/schemas/ChannelProfileShort"
              }
            ],
            "nullable": true
          },
          "contact_channel_account": {
            "description": "Contact account used for the conversation.",
            "allOf": [
              {
                "$ref": "#/components/schemas/ChannelAccount"
              }
            ]
          },
          "user": {
            "description": "User assigned to the conversation.",
            "allOf": [
              {
                "$ref": "#/components/schemas/UserShort"
              }
            ],
            "nullable": true
          },
          "flow": {
            "description": "Flow used to route the conversation.",
            "allOf": [
              {
                "$ref": "#/components/schemas/FlowShort"
              }
            ],
            "nullable": true
          },
          "queue": {
            "description": "Queue where the conversation is routed.",
            "allOf": [
              {
                "$ref": "#/components/schemas/QueueShort"
              }
            ],
            "nullable": true
          },
          "status": {
            "description": "Current status of the conversation.",
            "type": "string",
            "enum": [
              "initial",
              "active",
              "archived",
              "business_initiated",
              "business_initiated_waiting",
              "contact_disconnected",
              "dropped",
              "flow_ai_waiting",
              "flow_controlled",
              "flow_initiated",
              "flow_initiated_waiting",
              "flow_waiting",
              "force_closed",
              "forwarding",
              "rejected",
              "ringing",
              "system_initiated_waiting",
              "terminated",
              "waiting",
              "window_waiting"
            ],
            "example": "active"
          },
          "created_at": {
            "description": "Timestamp when the conversation was created (ISO 8601).",
            "type": "string",
            "format": "date-time",
            "example": "2026-01-15T10:30:00.123000Z"
          },
          "updated_at": {
            "description": "Timestamp when the conversation was last updated (ISO 8601).",
            "type": "string",
            "format": "date-time",
            "example": "2026-01-20T14:15:00.456000Z"
          }
        }
      },
      "FlowShort": {
        "type": "object",
        "properties": {
          "id": {
            "description": "The unique identifier of the flow.",
            "type": "string",
            "format": "uuid",
            "example": "0b62763c-40d6-4ec8-8380-3cb94e442a75"
          },
          "name": {
            "description": "The name of the flow.",
            "type": "string",
            "example": "Lead Qualification"
          }
        }
      },
      "QueueShort": {
        "type": "object",
        "properties": {
          "id": {
            "description": "The unique identifier of the queue.",
            "type": "integer",
            "example": 1
          },
          "name": {
            "description": "The name of the queue.",
            "type": "string",
            "example": "Technical Support"
          }
        }
      },
      "UserShort": {
        "type": "object",
        "properties": {
          "id": {
            "description": "The unique identifier of the user.",
            "type": "integer",
            "example": 1
          },
          "name": {
            "description": "The name of the user.",
            "type": "string",
            "example": "Jane Doe"
          },
          "email": {
            "description": "The email address of the user.",
            "type": "string",
            "format": "email",
            "example": "jane.doe@contactcenter.com"
          }
        }
      }
    },
    "responses": {
      "401": {
        "description": "Unauthorized",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "description": "Error message.",
                  "type": "string",
                  "enum": [
                    "Unauthorized"
                  ],
                  "example": "Unauthorized"
                }
              }
            }
          }
        }
      },
      "403": {
        "description": "Forbidden",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "description": "Error message.",
                  "type": "string",
                  "enum": [
                    "Forbidden"
                  ],
                  "example": "Forbidden"
                }
              }
            }
          }
        }
      },
      "422": {
        "description": "Unprocessable Entity",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "errors": {
                  "description": "A set of error messages.",
                  "type": "object",
                  "additionalProperties": {
                    "description": "An array of error messages.",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "parameter1": [
                      "is missing"
                    ],
                    "parameter2": [
                      "must be a string"
                    ]
                  }
                }
              }
            }
          }
        }
      },
      "429": {
        "description": "Too many requests",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "description": "Error message.",
                  "type": "string",
                  "enum": [
                    "Too many requests"
                  ],
                  "example": "Too many requests"
                }
              }
            }
          }
        }
      }
    },
    "securitySchemes": {
      "StaticKey": {
        "description": "API key provided as a Bearer token.",
        "type": "http",
        "scheme": "bearer"
      }
    }
  }
}
```