Channels
WhatsApp channels
GET/api/channels
Required scope: channels.read
| Parameter | In | Required |
|---|---|---|
search | query | no |
includeDeactivated | query | no |
bash
curl "https://api.zapyflow.com.br/api/channels" \
-H "Authorization: Bearer $ZAPYFLOW_API_KEY"Responses
200— OK
POST/api/channels
Required scope: channels.write
Request body
| Field | Type | Required | Constraints |
|---|---|---|---|
name | string | yes | min 2, max 120 |
provider | "BAILEYS" | "CLOUD_API" | yes | — |
bash
curl -X POST "https://api.zapyflow.com.br/api/channels" \
-H "Authorization: Bearer $ZAPYFLOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{ ... }'Responses
201— Created403— Forbidden, or the key lacks this scope
GET/api/channels/{id}
Required scope: channels.read
| Parameter | In | Required |
|---|---|---|
id | path | yes |
bash
curl "https://api.zapyflow.com.br/api/channels/{id}" \
-H "Authorization: Bearer $ZAPYFLOW_API_KEY"Responses
200— OK404— Not found — also returned when the resource belongs to another workspace
PATCH/api/channels/{id}
Required scope: channels.write
| Parameter | In | Required |
|---|---|---|
id | path | yes |
Request body
| Field | Type | Required | Constraints |
|---|---|---|---|
name | string | yes | min 2, max 120 |
bash
curl -X PATCH "https://api.zapyflow.com.br/api/channels/{id}" \
-H "Authorization: Bearer $ZAPYFLOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{ ... }'Responses
200— OK
PUT/api/channels/{id}/ai-agent
Required scope: channels.write
| Parameter | In | Required |
|---|---|---|
id | path | yes |
Request body
| Field | Type | Required | Constraints |
|---|---|---|---|
aiAgentId | string | yes | min 1 |
bash
curl -X PUT "https://api.zapyflow.com.br/api/channels/{id}/ai-agent" \
-H "Authorization: Bearer $ZAPYFLOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{ ... }'Responses
200— OK404— Not found — also returned when the resource belongs to another workspace
DELETE/api/channels/{id}/ai-agent
Required scope: channels.write
| Parameter | In | Required |
|---|---|---|
id | path | yes |
bash
curl -X DELETE "https://api.zapyflow.com.br/api/channels/{id}/ai-agent" \
-H "Authorization: Bearer $ZAPYFLOW_API_KEY"Responses
200— OK
GET/api/channels/{id}/business-verification
Required scope: channels.read
| Parameter | In | Required |
|---|---|---|
id | path | yes |
bash
curl "https://api.zapyflow.com.br/api/channels/{id}/business-verification" \
-H "Authorization: Bearer $ZAPYFLOW_API_KEY"Responses
200— OK
POST/api/channels/{id}/deactivate
Required scope: channels.write
| Parameter | In | Required |
|---|---|---|
id | path | yes |
bash
curl -X POST "https://api.zapyflow.com.br/api/channels/{id}/deactivate" \
-H "Authorization: Bearer $ZAPYFLOW_API_KEY"Responses
200— OK
GET/api/channels/{id}/health
Required scope: channels.read
| Parameter | In | Required |
|---|---|---|
id | path | yes |
bash
curl "https://api.zapyflow.com.br/api/channels/{id}/health" \
-H "Authorization: Bearer $ZAPYFLOW_API_KEY"Responses
200— OK
GET/api/channels/{id}/meta/templates
Required scope: channels.read
| Parameter | In | Required |
|---|---|---|
id | path | yes |
bash
curl "https://api.zapyflow.com.br/api/channels/{id}/meta/templates" \
-H "Authorization: Bearer $ZAPYFLOW_API_KEY"Responses
200— OK400— Malformed request404— Not found — also returned when the resource belongs to another workspace502— Upstream provider failed
GET/api/channels/{id}/qr
Required scope: channels.read
| Parameter | In | Required |
|---|---|---|
refresh | query | no |
id | path | yes |
bash
curl "https://api.zapyflow.com.br/api/channels/{id}/qr" \
-H "Authorization: Bearer $ZAPYFLOW_API_KEY"Responses
200— OK
POST/api/channels/{id}/reactivate
Required scope: channels.write
| Parameter | In | Required |
|---|---|---|
id | path | yes |
bash
curl -X POST "https://api.zapyflow.com.br/api/channels/{id}/reactivate" \
-H "Authorization: Bearer $ZAPYFLOW_API_KEY"Responses
200— OK