Webhooks

Base: https://webvyze.com/api/v1 · clique numa rota para ver escopo, parâmetros, exemplo e respostas.

POST/sites/{site}/deploy-hookCreate the deploy hook of a site (returns its URL once)

Needs a token with api:write. Needs the sites.manage permission in the account.

Escopo
api:write
Parâmetros de rota
{site} integer
Respostas
200401402403422429
curl -X POST -H "Authorization: Bearer $WEBVYZE_KEY" \
  -H "Content-Type: application/json" -d '{}' \
  https://webvyze.com/api/v1/sites/{site}/deploy-hook
Link para esta rota
DELETE/sites/{site}/deploy-hookRemove the deploy hook of a site

Needs a token with api:write. Needs the sites.manage permission in the account.

Escopo
api:write
Parâmetros de rota
{site} integer
Respostas
200401402403422429
curl -X DELETE -H "Authorization: Bearer $WEBVYZE_KEY" \
  -H "Content-Type: application/json" -d '{}' \
  https://webvyze.com/api/v1/sites/{site}/deploy-hook
Link para esta rota
GET/webhooksWebhooks of the account

Needs access to the site, when there is one.

Escopo
api:read
Respostas
200401402403422429
curl -H "Authorization: Bearer $WEBVYZE_KEY" \
  https://webvyze.com/api/v1/webhooks
Link para esta rota
POST/webhooksAdd a webhook

Needs a token with api:write. Needs the integrations.manage permission in the account.

Escopo
api:write
Respostas
200401402403422429
curl -X POST -H "Authorization: Bearer $WEBVYZE_KEY" \
  -H "Content-Type: application/json" -d '{}' \
  https://webvyze.com/api/v1/webhooks
Link para esta rota
DELETE/webhooks/{webhook}Remove a webhook

Needs a token with api:write. Needs the integrations.manage permission in the account.

Escopo
api:write
Parâmetros de rota
{webhook} integer
Respostas
200401402403422429
curl -X DELETE -H "Authorization: Bearer $WEBVYZE_KEY" \
  -H "Content-Type: application/json" -d '{}' \
  https://webvyze.com/api/v1/webhooks/{webhook}
Link para esta rota
POST/webhooks/{webhook}/testSend a test event (and approve a pending webhook)

Needs a token with api:write. Needs the integrations.manage permission in the account.

Escopo
api:write
Parâmetros de rota
{webhook} integer
Respostas
200401402403422429
curl -X POST -H "Authorization: Bearer $WEBVYZE_KEY" \
  -H "Content-Type: application/json" -d '{}' \
  https://webvyze.com/api/v1/webhooks/{webhook}/test
Link para esta rota