Skip to content
Docs
Get started

API reference

Webhook Endpoints

Where Verilo sends signed events, with retries for about three days.

List webhook endpoints

GET/webhook_endpoints

Every endpoint in this mode.

Responses

  • 200

    The endpoints.

  • 401

    api_key_missing: No API key was sent. Send Authorization: Bearer <key>. api_key_invalid: The API key is not recognised, or it was revoked.

  • 429

    rate_limited: Too many requests. Wait for the number of seconds in Retry-After.

curl https://api.verilo.app/v1/webhook_endpoints \
  -H "Authorization: Bearer $VERILO_API_KEY"
Response · 200
{
  "object": "list",
  "data": [
    {
      "id": "we_86e774f5007e4e62aac4b0e9c9de82a1",
      "object": "webhook_endpoint",
      "livemode": true,
      "url": "https://api.example.com/webhooks/verilo",
      "description": "string",
      "events": [
        "claim.link_issued"
      ],
      "enabled": true,
      "secret": "whsec_Example…",
      "createdAt": "2026-11-14T09:30:00Z"
    }
  ],
  "hasMore": true
}

Create a webhook endpoint

POST/webhook_endpoints

Adds an https address on the public internet to receive events. The answer carries the signing secret once. Each delivery is a POST signed in Verilo-Signature; Verilo retries 8 times over about three days until you answer 2xx. Up to 16 endpoints per mode.

Body parameters

  • urlstringrequired

    An https address.

  • eventsarray of string

    The events to send. Default: every event.

  • descriptionstring

    A note for yourself.

Responses

  • 201

    The endpoint, with its secret.

  • 400

    parameter_missing: A required parameter is missing. parameter_invalid: A parameter has the wrong type or an invalid value. param names it.

  • 401

    api_key_missing: No API key was sent. Send Authorization: Bearer <key>. api_key_invalid: The API key is not recognised, or it was revoked.

  • 429

    rate_limited: Too many requests. Wait for the number of seconds in Retry-After.

curl -X POST https://api.verilo.app/v1/webhook_endpoints \
  -H "Authorization: Bearer $VERILO_API_KEY" \
  -H "Idempotency-Key: rma-1042-create" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://api.example.com/webhooks/verilo",
    "events": [
      "claim.result_ready",
      "claim.link_expired",
      "claim.processing_failed"
    ]
  }'
Response · 201
{
  "id": "we_86e774f5007e4e62aac4b0e9c9de82a1",
  "object": "webhook_endpoint",
  "livemode": true,
  "url": "https://api.example.com/webhooks/verilo",
  "description": "string",
  "events": [
    "claim.link_issued"
  ],
  "enabled": true,
  "secret": "whsec_Example…",
  "createdAt": "2026-11-14T09:30:00Z"
}

Retrieve a webhook endpoint

GET/webhook_endpoints/{id}

One endpoint, without its secret.

Path parameters

  • idstringrequired

    The webhook endpoint's id.

Responses

  • 200

    The endpoint.

  • 401

    api_key_missing: No API key was sent. Send Authorization: Bearer <key>. api_key_invalid: The API key is not recognised, or it was revoked.

  • 404

    resource_missing: No object with that id exists for this key's account and mode.

  • 429

    rate_limited: Too many requests. Wait for the number of seconds in Retry-After.

curl https://api.verilo.app/v1/webhook_endpoints/we_86e774f5007e4e62aac4b0e9c9de82a1 \
  -H "Authorization: Bearer $VERILO_API_KEY"
Response · 200
{
  "id": "we_86e774f5007e4e62aac4b0e9c9de82a1",
  "object": "webhook_endpoint",
  "livemode": true,
  "url": "https://api.example.com/webhooks/verilo",
  "description": "string",
  "events": [
    "claim.link_issued"
  ],
  "enabled": true,
  "secret": "whsec_Example…",
  "createdAt": "2026-11-14T09:30:00Z"
}

Update a webhook endpoint

POST/webhook_endpoints/{id}

Changes the address, the events, the note, or pauses it with enabled: false. Events that happen while it is paused are not sent later.

Path parameters

  • idstringrequired

    The webhook endpoint's id.

Body parameters

  • urlstring

    A new https address.

  • eventsarray of string
  • descriptionstring

    A note.

  • enabledboolean

Responses

  • 200

    The endpoint.

  • 400

    parameter_invalid: A parameter has the wrong type or an invalid value. param names it.

  • 401

    api_key_missing: No API key was sent. Send Authorization: Bearer <key>. api_key_invalid: The API key is not recognised, or it was revoked.

  • 404

    resource_missing: No object with that id exists for this key's account and mode.

  • 429

    rate_limited: Too many requests. Wait for the number of seconds in Retry-After.

curl -X POST https://api.verilo.app/v1/webhook_endpoints/we_86e774f5007e4e62aac4b0e9c9de82a1 \
  -H "Authorization: Bearer $VERILO_API_KEY" \
  -H "Idempotency-Key: rma-1042-create" \
  -H "Content-Type: application/json" \
  -d '{
    "enabled": false
  }'
Response · 200
{
  "id": "we_86e774f5007e4e62aac4b0e9c9de82a1",
  "object": "webhook_endpoint",
  "livemode": true,
  "url": "https://api.example.com/webhooks/verilo",
  "description": "string",
  "events": [
    "claim.link_issued"
  ],
  "enabled": true,
  "secret": "whsec_Example…",
  "createdAt": "2026-11-14T09:30:00Z"
}

Delete a webhook endpoint

DELETE/webhook_endpoints/{id}

Nothing more is sent to it, including retries.

Path parameters

  • idstringrequired

    The webhook endpoint's id.

Responses

  • 200

    Deleted.

  • 401

    api_key_missing: No API key was sent. Send Authorization: Bearer <key>. api_key_invalid: The API key is not recognised, or it was revoked.

  • 404

    resource_missing: No object with that id exists for this key's account and mode.

  • 429

    rate_limited: Too many requests. Wait for the number of seconds in Retry-After.

curl -X DELETE https://api.verilo.app/v1/webhook_endpoints/we_86e774f5007e4e62aac4b0e9c9de82a1 \
  -H "Authorization: Bearer $VERILO_API_KEY"
Response · 200
{
  "id": "string",
  "object": "string",
  "deleted": true
}

Roll the signing secret

POST/webhook_endpoints/{id}/roll_secret

Makes a new signing secret, returned once. Deliveries are signed with it at once, so update your receiver first.

Path parameters

  • idstringrequired

    The webhook endpoint's id.

Responses

  • 200

    The endpoint with its new secret.

  • 401

    api_key_missing: No API key was sent. Send Authorization: Bearer <key>. api_key_invalid: The API key is not recognised, or it was revoked.

  • 404

    resource_missing: No object with that id exists for this key's account and mode.

  • 429

    rate_limited: Too many requests. Wait for the number of seconds in Retry-After.

curl -X POST https://api.verilo.app/v1/webhook_endpoints/we_86e774f5007e4e62aac4b0e9c9de82a1/roll_secret \
  -H "Authorization: Bearer $VERILO_API_KEY" \
  -H "Idempotency-Key: rma-1042-create"
Response · 200
{
  "id": "we_86e774f5007e4e62aac4b0e9c9de82a1",
  "object": "webhook_endpoint",
  "livemode": true,
  "url": "https://api.example.com/webhooks/verilo",
  "description": "string",
  "events": [
    "claim.link_issued"
  ],
  "enabled": true,
  "secret": "whsec_Example…",
  "createdAt": "2026-11-14T09:30:00Z"
}

Send a test event

POST/webhook_endpoints/{id}/test

Sends a signed ping event now and reports how your endpoint answered. Not retried.

Path parameters

  • idstringrequired

    The webhook endpoint's id.

Responses

  • 200

    How the endpoint answered.

  • 401

    api_key_missing: No API key was sent. Send Authorization: Bearer <key>. api_key_invalid: The API key is not recognised, or it was revoked.

  • 404

    resource_missing: No object with that id exists for this key's account and mode.

  • 429

    rate_limited: Too many requests. Wait for the number of seconds in Retry-After.

curl -X POST https://api.verilo.app/v1/webhook_endpoints/we_86e774f5007e4e62aac4b0e9c9de82a1/test \
  -H "Authorization: Bearer $VERILO_API_KEY" \
  -H "Idempotency-Key: rma-1042-create"
Response · 200
{
  "object": "webhook_test",
  "delivered": true,
  "status": 200,
  "ms": 182,
  "error": null
}