Vitrina API
Referencia

Webhooks

Suscripciones a los eventos del workspace, y el registro de cada entrega.

Suscripciones a los eventos del workspace, y el registro de cada entrega.

MétodoRutaQué hace
GET/webhooksList webhook subscriptions
POST/webhooksCreate a webhook subscription (returns plaintext secret)
DELETE/webhooks/{id}Delete a webhook subscription
GET/webhooks/{id}Get a webhook subscription
PUT/webhooks/{id}Update a webhook subscription
GET/webhooks/{id}/deliveriesList webhook delivery attempts

GET /webhooks

List webhook subscriptions

curl https://api.vitrinadev.com/api/v1/webhooks \
  -H "Authorization: Bearer $VITRINA_KEY"

Responde: 200 · 400 · 401 · 403 · 404 · 409 · 429

POST /webhooks

Create a webhook subscription (returns plaintext secret)

Cuerpo

CampoTipoObligatorioRestricciones
urlstringuri, máx. 2048
events* \ai_agent.publish \ai_agent_graph.publish \
descriptionstring | nullmáx. 500
curl -X POST https://api.vitrinadev.com/api/v1/webhooks \
  -H "Authorization: Bearer $VITRINA_KEY" \
  -H "Content-Type: application/json" \
  -d '{ … }'

Responde: 201 · 400 · 401 · 403 · 404 · 409 · 429

DELETE /webhooks/{id}

Delete a webhook subscription

ParámetroEnTipoObligatorioRestricciones
idpathuuid
curl -X DELETE https://api.vitrinadev.com/api/v1/webhooks/<id> \
  -H "Authorization: Bearer $VITRINA_KEY"

Responde: 204 · 400 · 401 · 403 · 404 · 409 · 429

GET /webhooks/{id}

Get a webhook subscription

ParámetroEnTipoObligatorioRestricciones
idpathuuid
curl https://api.vitrinadev.com/api/v1/webhooks/<id> \
  -H "Authorization: Bearer $VITRINA_KEY"

Responde: 200 · 400 · 401 · 403 · 404 · 409 · 429

PUT /webhooks/{id}

Update a webhook subscription

ParámetroEnTipoObligatorioRestricciones
idpathuuid

Cuerpo

CampoTipoObligatorioRestricciones
urlstringuri, máx. 2048
events* \ai_agent.publish \ai_agent_graph.publish \
enabledboolean
descriptionstring | nullmáx. 500
curl -X PUT https://api.vitrinadev.com/api/v1/webhooks/<id> \
  -H "Authorization: Bearer $VITRINA_KEY" \
  -H "Content-Type: application/json" \
  -d '{ … }'

Responde: 200 · 400 · 401 · 403 · 404 · 409 · 429

GET /webhooks/{id}/deliveries

List webhook delivery attempts

ParámetroEnTipoObligatorioRestricciones
idpathuuid
limitqueryintegerno≥ 1, ≤ 200, por defecto 50
offsetqueryinteger | nullno≥ 0, por defecto 0
curl https://api.vitrinadev.com/api/v1/webhooks/<id>/deliveries \
  -H "Authorization: Bearer $VITRINA_KEY"

Responde: 200 · 400 · 401 · 403 · 404 · 409 · 429

En esta página