Referencia de la API
Todos los endpoints de la API REST v1. El contenido técnico está en inglés.
Channels
Endpoints: 1
get/channelsList connected WhatsApp numbers
Removed channels (disconnected, no credentials) are not listed. Tokens and credentials are never returned.
Respuestas
- 200 Successobject
- 400 Validation errorApiError
- 401 Missing, malformed, revoked or expired API keyApiError
- 403 Insufficient scope, or the REST API is not included in the planApiError
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError
Contacts
Endpoints: 7
get/contacts/{id}/attributesGet custom attributes
Parámetros
| Name | In | Type | Description |
|---|---|---|---|
| id * | path | string |
Respuestas
- 200 Successobject
- 400 Validation errorApiError
- 401 Missing, malformed, revoked or expired API keyApiError
- 403 Insufficient scope, or the REST API is not included in the planApiError
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError
put/contacts/{id}/attributesMerge custom attributes
Merge patch: null deletes a key. Keys match ^[A-Za-z0-9_.-]{1,60}$, at most 50 attributes in total.
Parámetros
| Name | In | Type | Description |
|---|---|---|---|
| id * | path | string |
Respuestas
- 200 Successobject
- 400 Validation errorApiError
- 401 Missing, malformed, revoked or expired API keyApiError
- 403 Insufficient scope, or the REST API is not included in the planApiError
- 404 Not found (resources of other workspaces are also 404)ApiError
- 422 Unprocessable (business rule: window closed, no consent, idempotency key reused ...)ApiError
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError
get/contacts/{id}Get a contact
Parámetros
| Name | In | Type | Description |
|---|---|---|---|
| id * | path | string |
Respuestas
- 200 SuccessContact
- 400 Validation errorApiError
- 401 Missing, malformed, revoked or expired API keyApiError
- 403 Insufficient scope, or the REST API is not included in the planApiError
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError
patch/contacts/{id}Update a contact
Partial update. attributes are merged (null deletes a key). Tags are managed via /tags.
Parámetros
| Name | In | Type | Description |
|---|---|---|---|
| id * | path | string |
Solicitud
| Field | Type | Description |
|---|---|---|
| name | string | null | |
| string (email) | null | ||
| locale | "en" | "tr" | "de" | "es" | "fr" | "it" | "pt" | null | |
| externalId | string | null | |
| attributes | object |
Respuestas
- 200 SuccessContact
- 400 Validation errorApiError
- 401 Missing, malformed, revoked or expired API keyApiError
- 403 Insufficient scope, or the REST API is not included in the planApiError
- 404 Not found (resources of other workspaces are also 404)ApiError
- 409 ConflictApiError
- 422 Unprocessable (business rule: window closed, no consent, idempotency key reused ...)ApiError
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError
post/contacts/batchUpsert up to 100 contacts
A failing item does not stop the others. Consents are not accepted in batch items.
Parámetros
| Name | In | Type | Description |
|---|---|---|---|
| Idempotency-Key | header | string | Same key + same body returns the first response; a different body returns 422. |
Solicitud
| Field | Type | Description |
|---|---|---|
| items * | ContactUpsert[] |
Respuestas
- 200 Successobject
- 400 Validation errorApiError
- 401 Missing, malformed, revoked or expired API keyApiError
- 403 Insufficient scope, or the REST API is not included in the planApiError
- 409 ConflictApiError
- 422 Unprocessable (business rule: window closed, no consent, idempotency key reused ...)ApiError
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError
post/contacts/upsertCreate or update a contact
Matches by externalId, then phone. 201 when created, 200 when updated. The consents field additionally requires the consents:write scope.
Parámetros
| Name | In | Type | Description |
|---|---|---|---|
| Idempotency-Key | header | string | Same key + same body returns the first response; a different body returns 422. |
Solicitud
| Field | Type | Description |
|---|---|---|
| phone | string | |
| externalId | string | |
| name | string | null | |
| string (email) | null | ||
| locale | "en" | "tr" | "de" | "es" | "fr" | "it" | "pt" | null | |
| attributes | object | |
| tags | string[] | |
| consents | object[] |
Respuestas
- 200 ErrorApiError
- 201 ErrorApiError
- 400 Validation errorApiError
- 401 Missing, malformed, revoked or expired API keyApiError
- 402 Plan limit reachedApiError
- 403 Insufficient scope, or the REST API is not included in the planApiError
- 409 ConflictApiError
- 422 Unprocessable (business rule: window closed, no consent, idempotency key reused ...)ApiError
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError
get/contactsList contacts
Newest first. Filters: phone (E.164), externalId, email, tag, createdAfter.
Parámetros
| Name | In | Type | Description |
|---|---|---|---|
| limit | query | integer | |
| cursor | query | string | |
| phone | query | string | |
| externalId | query | string | |
| query | string | ||
| tag | query | string | |
| createdAfter | query | string (date-time) |
Respuestas
- 200 SuccessContactList
- 400 Validation errorApiError
- 401 Missing, malformed, revoked or expired API keyApiError
- 403 Insufficient scope, or the REST API is not included in the planApiError
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError
Consents
Endpoints: 2
put/contacts/{id}/consents/{scope}Record a consent decision
granted requires evidence (min 10 chars) and occurredAt, which must be after the latest revocation of that scope (a contact opt-out such as STOP is never overridden by an older grant). Source is always "api".
Parámetros
| Name | In | Type | Description |
|---|---|---|---|
| id * | path | string | |
| scope * | path | string |
Solicitud
| Field | Type | Description |
|---|---|---|
| status * | "granted" | "revoked" | |
| evidence | string | |
| occurredAt | string (date-time) | |
| textVersion | string |
Respuestas
- 200 Successobject
- 400 Validation errorApiError
- 401 Missing, malformed, revoked or expired API keyApiError
- 403 Insufficient scope, or the REST API is not included in the planApiError
- 404 Not found (resources of other workspaces are also 404)ApiError
- 422 Unprocessable (business rule: window closed, no consent, idempotency key reused ...)ApiError
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError
get/contacts/{id}/consentsConsent state and last 20 consent events
Parámetros
| Name | In | Type | Description |
|---|---|---|---|
| id * | path | string |
Respuestas
- 200 Successobject
- 400 Validation errorApiError
- 401 Missing, malformed, revoked or expired API keyApiError
- 403 Insufficient scope, or the REST API is not included in the planApiError
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError
Conversations
Endpoints: 3
get/conversations/{id}/messagesList messages of a conversation
Parámetros
| Name | In | Type | Description |
|---|---|---|---|
| id * | path | string | |
| limit | query | integer | |
| cursor | query | string |
Respuestas
- 200 Successobject
- 400 Validation errorApiError
- 401 Missing, malformed, revoked or expired API keyApiError
- 403 Insufficient scope, or the REST API is not included in the planApiError
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError
get/conversations/{id}Get a conversation
Parámetros
| Name | In | Type | Description |
|---|---|---|---|
| id * | path | string |
Respuestas
- 200 SuccessConversation
- 400 Validation errorApiError
- 401 Missing, malformed, revoked or expired API keyApiError
- 403 Insufficient scope, or the REST API is not included in the planApiError
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError
get/conversationsList conversations
Newest first (by creation). Filters: status, contactId, channelId, assigneeMemberId, updatedAfter. No message previews.
Parámetros
| Name | In | Type | Description |
|---|---|---|---|
| limit | query | integer | |
| cursor | query | string | |
| status | query | "open" | "pending" | "snoozed" | "resolved" | |
| contactId | query | string (uuid) | |
| channelId | query | string (uuid) | |
| assigneeMemberId | query | string (uuid) | |
| updatedAfter | query | string (date-time) |
Respuestas
- 200 Successobject
- 400 Validation errorApiError
- 401 Missing, malformed, revoked or expired API keyApiError
- 403 Insufficient scope, or the REST API is not included in the planApiError
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError
Events
Endpoints: 1
post/eventsSend a commerce event
Flat body: id (your unique event id), occurredAt, type and the event fields (e.g. order.paid with customer and order). A repeated id returns 200 {status:"duplicate"}. Processing is asynchronous.
Parámetros
| Name | In | Type | Description |
|---|---|---|---|
| Idempotency-Key | header | string | Same key + same body returns the first response; a different body returns 422. |
Solicitud
| Field | Type | Description |
|---|---|---|
| id * | string | |
| occurredAt * | string (date-time) |
Respuestas
- 200 ErrorApiError
- 202 Successobject
- 400 Validation errorApiError
- 401 Missing, malformed, revoked or expired API keyApiError
- 403 Insufficient scope, or the REST API is not included in the planApiError
- 409 ConflictApiError
- 422 Unprocessable (business rule: window closed, no consent, idempotency key reused ...)ApiError
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError
Account
Endpoints: 1
get/meDescribe the API key
Returns the workspace, scopes and plan rate limit of the key used. Useful as a connection test.
Respuestas
- 200 SuccessMe
- 400 Validation errorApiError
- 401 Missing, malformed, revoked or expired API keyApiError
- 403 Insufficient scope, or the REST API is not included in the planApiError
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError
Messages
Endpoints: 2
get/messages/{id}Get a message and its delivery status
Parámetros
| Name | In | Type | Description |
|---|---|---|---|
| id * | path | string |
Respuestas
- 200 SuccessMessage
- 400 Validation errorApiError
- 401 Missing, malformed, revoked or expired API keyApiError
- 403 Insufficient scope, or the REST API is not included in the planApiError
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError
post/messagesSend a message
Goes through the same rules as the inbox: free text and media only inside the 24h window (otherwise 422 template_required), marketing templates need marketing consent (422 no_consent). Idempotency-Key is required; a repeat returns the same message.
Parámetros
| Name | In | Type | Description |
|---|---|---|---|
| Idempotency-Key * | header | string | Same key + same body returns the first response; a different body returns 422. |
Respuestas
- 202 Successobject
- 400 Validation errorApiError
- 401 Missing, malformed, revoked or expired API keyApiError
- 402 Plan limit reachedApiError
- 403 Insufficient scope, or the REST API is not included in the planApiError
- 404 Not found (resources of other workspaces are also 404)ApiError
- 409 ConflictApiError
- 422 Unprocessable (business rule: window closed, no consent, idempotency key reused ...)ApiError
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError
Meta
Endpoints: 1
get/openapi.jsonOpenAPI document
Respuestas
- 200 Success
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError
Templates
Endpoints: 1
get/templatesList message templates
Read-only (templates are created and approved from the dashboard). channelIds lists connected numbers of the same WhatsApp Business Account.
Parámetros
| Name | In | Type | Description |
|---|---|---|---|
| limit | query | integer | |
| cursor | query | string | |
| status | query | string | |
| language | query | string | |
| category | query | "MARKETING" | "UTILITY" | "AUTHENTICATION" | |
| channelId | query | string (uuid) | |
| name | query | string |
Respuestas
- 200 Successobject
- 400 Validation errorApiError
- 401 Missing, malformed, revoked or expired API keyApiError
- 403 Insufficient scope, or the REST API is not included in the planApiError
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError
Webhooks
Endpoints: 10
post/webhook-deliveries/{id}/redeliverRedeliver an event (same eventId, new delivery)
Only succeeded or dead deliveries can be redelivered.
Parámetros
| Name | In | Type | Description |
|---|---|---|---|
| id * | path | string | |
| Idempotency-Key | header | string | Same key + same body returns the first response; a different body returns 422. |
Respuestas
- 202 Successobject
- 400 Validation errorApiError
- 401 Missing, malformed, revoked or expired API keyApiError
- 403 Insufficient scope, or the REST API is not included in the planApiError
- 404 Not found (resources of other workspaces are also 404)ApiError
- 409 ConflictApiError
- 422 Unprocessable (business rule: window closed, no consent, idempotency key reused ...)ApiError
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError
get/webhook-deliveries/{id}Get a delivery with payload and attempts
Parámetros
| Name | In | Type | Description |
|---|---|---|---|
| id * | path | string |
Respuestas
- 200 Successobject
- 400 Validation errorApiError
- 401 Missing, malformed, revoked or expired API keyApiError
- 403 Insufficient scope, or the REST API is not included in the planApiError
- 404 Not found (resources of other workspaces are also 404)ApiError
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError
get/webhook-endpoints/{id}/deliveriesList deliveries of an endpoint (newest first, payload excluded)
Parámetros
| Name | In | Type | Description |
|---|---|---|---|
| id * | path | string | |
| limit | query | integer | |
| cursor | query | string | |
| status | query | "pending" | "retrying" | "succeeded" | "dead" | "cancelled" | |
| eventType | query | string |
Respuestas
- 200 Successobject
- 400 Validation errorApiError
- 401 Missing, malformed, revoked or expired API keyApiError
- 403 Insufficient scope, or the REST API is not included in the planApiError
- 404 Not found (resources of other workspaces are also 404)ApiError
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError
post/webhook-endpoints/{id}/rotate-secretRotate the signing secret
Returns the new secret ONCE. The previous secret keeps signing for 24 hours (two v1= signatures in the header).
Parámetros
| Name | In | Type | Description |
|---|---|---|---|
| id * | path | string |
Respuestas
- 200 Successobject
- 400 Validation errorApiError
- 401 Missing, malformed, revoked or expired API keyApiError
- 403 Insufficient scope, or the REST API is not included in the planApiError
- 404 Not found (resources of other workspaces are also 404)ApiError
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError
post/webhook-endpoints/{id}/testSend a webhook.test event
Sent even if the endpoint is not subscribed; single attempt; does not count as a failure.
Parámetros
| Name | In | Type | Description |
|---|---|---|---|
| id * | path | string | |
| Idempotency-Key | header | string | Same key + same body returns the first response; a different body returns 422. |
Respuestas
- 202 Successobject
- 400 Validation errorApiError
- 401 Missing, malformed, revoked or expired API keyApiError
- 403 Insufficient scope, or the REST API is not included in the planApiError
- 404 Not found (resources of other workspaces are also 404)ApiError
- 409 ConflictApiError
- 422 Unprocessable (business rule: window closed, no consent, idempotency key reused ...)ApiError
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError
get/webhook-endpoints/{id}Get a webhook endpoint
Parámetros
| Name | In | Type | Description |
|---|---|---|---|
| id * | path | string |
Respuestas
- 200 Successobject
- 400 Validation errorApiError
- 401 Missing, malformed, revoked or expired API keyApiError
- 403 Insufficient scope, or the REST API is not included in the planApiError
- 404 Not found (resources of other workspaces are also 404)ApiError
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError
patch/webhook-endpoints/{id}Update a webhook endpoint
Changing the URL re-runs the SSRF checks. Re-enabling resets the failure counter.
Parámetros
| Name | In | Type | Description |
|---|---|---|---|
| id * | path | string |
Solicitud
| Field | Type | Description |
|---|---|---|
| url | string | |
| events | "message.received" | "message.sent" | "message.delivered" | "message.read" | "message.failed" | "conversation.opened" | "conversation.assigned" | "conversation.closed" | "contact.created" | "contact.updated" | "contact.consent_changed" | "tag.added" | "template.status_changed" | "channel.status_changed" | "campaign.completed" | string[] | |
| description | string | null | |
| enabled | boolean |
Respuestas
- 200 Successobject
- 400 Validation errorApiError
- 401 Missing, malformed, revoked or expired API keyApiError
- 403 Insufficient scope, or the REST API is not included in the planApiError
- 404 Not found (resources of other workspaces are also 404)ApiError
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError
delete/webhook-endpoints/{id}Delete a webhook endpoint and its delivery log
Parámetros
| Name | In | Type | Description |
|---|---|---|---|
| id * | path | string |
Respuestas
- 204 Success
- 400 Validation errorApiError
- 401 Missing, malformed, revoked or expired API keyApiError
- 403 Insufficient scope, or the REST API is not included in the planApiError
- 404 Not found (resources of other workspaces are also 404)ApiError
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError
get/webhook-endpointsList webhook endpoints
Respuestas
- 200 Successobject
- 400 Validation errorApiError
- 401 Missing, malformed, revoked or expired API keyApiError
- 403 Insufficient scope, or the REST API is not included in the planApiError
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError
post/webhook-endpointsCreate a webhook endpoint
https only (port 443, public hosts). The signing secret (whsec_…) is returned ONCE in this response. Limit: 10 endpoints per workspace.
Solicitud
| Field | Type | Description |
|---|---|---|
| url * | string | |
| events * | "message.received" | "message.sent" | "message.delivered" | "message.read" | "message.failed" | "conversation.opened" | "conversation.assigned" | "conversation.closed" | "contact.created" | "contact.updated" | "contact.consent_changed" | "tag.added" | "template.status_changed" | "channel.status_changed" | "campaign.completed" | string[] | |
| description | string | null | |
| enabled | boolean |
Respuestas
- 201 Successobject
- 400 Validation errorApiError
- 401 Missing, malformed, revoked or expired API keyApiError
- 402 Plan limit reachedApiError
- 403 Insufficient scope, or the REST API is not included in the planApiError
- 429 Rate limit exceeded (see Retry-After)ApiError
- 500 Internal error (quote requestId to support)ApiError