Webhooks

View as Markdown

List the current brand's webhooks

GET/api/v1/webhooks

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl "https://app.opvs.ai/api/v1/webhooks" \
  -H "Authorization: Bearer $OPVS_TOKEN"

Register a webhook

POST/api/v1/webhooks

Register a new webhook. The secret is returned EXACTLY ONCE.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X POST "https://app.opvs.ai/api/v1/webhooks" \
  -H "Authorization: Bearer $OPVS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

Rotate the HMAC signing secret

POST/api/v1/webhooks/{webhook_id}/rotate-secret

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X POST "https://app.opvs.ai/api/v1/webhooks/{webhook_id}/rotate-secret" \
  -H "Authorization: Bearer $OPVS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

Queue a test ``webhooks.ping`` envelope

POST/api/v1/webhooks/{webhook_id}/ping

Create a pending delivery row containing a ``webhooks.ping`` envelope.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X POST "https://app.opvs.ai/api/v1/webhooks/{webhook_id}/ping" \
  -H "Authorization: Bearer $OPVS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

List recent delivery attempts for a webhook

GET/api/v1/webhooks/{webhook_id}/deliveries

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl "https://app.opvs.ai/api/v1/webhooks/{webhook_id}/deliveries" \
  -H "Authorization: Bearer $OPVS_TOKEN"

Queue a synthetic ``webhooks.test`` delivery

POST/api/v1/webhooks/{webhook_id}/test

Queue a test envelope for the UI "Test" button.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X POST "https://app.opvs.ai/api/v1/webhooks/{webhook_id}/test" \
  -H "Authorization: Bearer $OPVS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

Replay a failed delivery (reuses original event_id)

POST/api/v1/webhooks/{webhook_id}/replay/{delivery_id}

Reset a ``failed`` or ``abandoned`` delivery to ``pending``.

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X POST "https://app.opvs.ai/api/v1/webhooks/{webhook_id}/replay/{delivery_id}" \
  -H "Authorization: Bearer $OPVS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

Fetch a single delivery attempt with payload + response

GET/api/v1/webhooks/{webhook_id}/deliveries/{delivery_id}

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl "https://app.opvs.ai/api/v1/webhooks/{webhook_id}/deliveries/{delivery_id}" \
  -H "Authorization: Bearer $OPVS_TOKEN"

Fetch a single webhook

GET/api/v1/webhooks/{webhook_id}

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl "https://app.opvs.ai/api/v1/webhooks/{webhook_id}" \
  -H "Authorization: Bearer $OPVS_TOKEN"

Update a webhook (partial)

PATCH/api/v1/webhooks/{webhook_id}

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X PATCH "https://app.opvs.ai/api/v1/webhooks/{webhook_id}" \
  -H "Authorization: Bearer $OPVS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

Soft-delete a webhook

DELETE/api/v1/webhooks/{webhook_id}

Errors

CodeWhenWhat to do
422Validation Error—
Request
curl -X DELETE "https://app.opvs.ai/api/v1/webhooks/{webhook_id}" \
  -H "Authorization: Bearer $OPVS_TOKEN"
Did this answer your question?