POST /v1/instances
Creates a new WhatsApp instance. After creation, pair a phone number by scanning the QR code.
Request
Headers
| Header | Value |
|---|---|
Authorization | Bearer <token> |
Content-Type | application/json |
Body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | A label for this instance |
metadata | object | No | Arbitrary key-value metadata |
Response 201
Returns the created instance object.
| Field | Type | Description |
|---|---|---|
id | string | Unique instance ID (inst_ prefix) |
name | string | Instance label |
status | string | Always CREATED on creation |
metadata | object | Provided metadata |
created_at | string | ISO 8601 timestamp |
updated_at | string | ISO 8601 timestamp |
Errors
| Code | Description |
|---|---|
400 | name is missing |
401 | Missing or invalid token |