ZapyFlow/API documentationopenapi.json

Developers

Outbound webhooks, deliveries and logs

GET/api/developers/deliveries

The team's webhook deliveries

Required scope: developers.read

ParameterInRequired
cursorqueryno
limitqueryno
endpointIdqueryno
statusqueryno
eventqueryno
bash
curl "https://api.zapyflow.com.br/api/developers/deliveries" \
  -H "Authorization: Bearer $ZAPYFLOW_API_KEY"
Responses
  • 200 — OK
  • 403 — Forbidden, or the key lacks this scope

GET/api/developers/deliveries/{id}

One delivery and every attempt it made

Required scope: developers.read

ParameterInRequired
idpathyes
bash
curl "https://api.zapyflow.com.br/api/developers/deliveries/{id}" \
  -H "Authorization: Bearer $ZAPYFLOW_API_KEY"
Responses
  • 200 — OK
  • 404 — Not found — also returned when the resource belongs to another workspace

POST/api/developers/deliveries/{id}/retry

Resend a delivery now

Required scope: developers.write

ParameterInRequired
idpathyes
bash
curl -X POST "https://api.zapyflow.com.br/api/developers/deliveries/{id}/retry" \
  -H "Authorization: Bearer $ZAPYFLOW_API_KEY"
Responses
  • 200 — OK
  • 404 — Not found — also returned when the resource belongs to another workspace
  • 409 — Conflict with the current state

GET/api/developers/events

Catalog of the events the platform emits

Required scope: developers.read

bash
curl "https://api.zapyflow.com.br/api/developers/events" \
  -H "Authorization: Bearer $ZAPYFLOW_API_KEY"
Responses
  • 200 — OK

GET/api/developers/logs

List the team's event logs

Required scope: developers.read

ParameterInRequired
pagequeryno
limitqueryno
eventqueryno
sourcequeryno
dateFromqueryno
dateToqueryno
webhookIdqueryno
bash
curl "https://api.zapyflow.com.br/api/developers/logs" \
  -H "Authorization: Bearer $ZAPYFLOW_API_KEY"
Responses
  • 200 — OK
  • 403 — Forbidden, or the key lacks this scope

GET/api/developers/logs/{id}

One event log in detail

Required scope: developers.read

ParameterInRequired
idpathyes
bash
curl "https://api.zapyflow.com.br/api/developers/logs/{id}" \
  -H "Authorization: Bearer $ZAPYFLOW_API_KEY"
Responses
  • 200 — OK
  • 403 — Forbidden, or the key lacks this scope
  • 404 — Not found — also returned when the resource belongs to another workspace

GET/api/developers/stats

Stats for the developers area

Required scope: developers.read

bash
curl "https://api.zapyflow.com.br/api/developers/stats" \
  -H "Authorization: Bearer $ZAPYFLOW_API_KEY"
Responses
  • 200 — OK
  • 403 — Forbidden, or the key lacks this scope

GET/api/developers/webhooks

List the team's webhook endpoints

Required scope: developers.read

bash
curl "https://api.zapyflow.com.br/api/developers/webhooks" \
  -H "Authorization: Bearer $ZAPYFLOW_API_KEY"
Responses
  • 200 — OK
  • 403 — Forbidden, or the key lacks this scope

POST/api/developers/webhooks

Create a webhook endpoint

Required scope: developers.write

Request body

FieldTypeRequiredConstraints
urlstringyes—
events"message.received" | "message.sent" | "message.status" | "conversation.created" | "conversation.status.changed" | "conversation.resolved" | "conversation.escalated" | "lead.captured" | "order.created" | "order.updated" | "order.deleted" | "appointment.created" | "appointment.updated" | "appointment.deleted" | "crm.card.created" | "crm.card.moved" | "crm.card.updated" | "crm.card.deleted" | "bot.created" | "bot.deleted" | "channel.connected" | "catalog.synced" | "quota.warning" | "quota.exceeded" | "trial.started" | "trial.locked" | "payment.succeeded" | "payment.failed"[]yes≥ 1 items
descriptionstringnomax 255
bash
curl -X POST "https://api.zapyflow.com.br/api/developers/webhooks" \
  -H "Authorization: Bearer $ZAPYFLOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ ... }'
Responses
  • 201 — Created
  • 403 — Forbidden, or the key lacks this scope

PATCH/api/developers/webhooks/{id}

Update a webhook endpoint

Required scope: developers.write

ParameterInRequired
idpathyes

Request body

FieldTypeRequiredConstraints
urlstringno—
events"message.received" | "message.sent" | "message.status" | "conversation.created" | "conversation.status.changed" | "conversation.resolved" | "conversation.escalated" | "lead.captured" | "order.created" | "order.updated" | "order.deleted" | "appointment.created" | "appointment.updated" | "appointment.deleted" | "crm.card.created" | "crm.card.moved" | "crm.card.updated" | "crm.card.deleted" | "bot.created" | "bot.deleted" | "channel.connected" | "catalog.synced" | "quota.warning" | "quota.exceeded" | "trial.started" | "trial.locked" | "payment.succeeded" | "payment.failed"[]no—
descriptionstringnomax 255
activebooleanno—
bash
curl -X PATCH "https://api.zapyflow.com.br/api/developers/webhooks/{id}" \
  -H "Authorization: Bearer $ZAPYFLOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ ... }'
Responses
  • 200 — OK
  • 404 — Not found — also returned when the resource belongs to another workspace

DELETE/api/developers/webhooks/{id}

Delete a webhook endpoint

Required scope: developers.write

ParameterInRequired
idpathyes
bash
curl -X DELETE "https://api.zapyflow.com.br/api/developers/webhooks/{id}" \
  -H "Authorization: Bearer $ZAPYFLOW_API_KEY"
Responses
  • 200 — OK
  • 404 — Not found — also returned when the resource belongs to another workspace

POST/api/developers/webhooks/{id}/test

Send a test event to a webhook

Required scope: developers.write

ParameterInRequired
idpathyes
bash
curl -X POST "https://api.zapyflow.com.br/api/developers/webhooks/{id}/test" \
  -H "Authorization: Bearer $ZAPYFLOW_API_KEY"
Responses
  • 200 — OK
  • 404 — Not found — also returned when the resource belongs to another workspace