API reference

Webhooks

6 endpoints. Every call is POST https://api.useburj.com/v1/<path> with a JSON body.

Set the webhook

POST
/webhook/configuration

Each field is optional; null clears it. A signing secret is created with the first URL. events limits which events you receive (default: all). lowBalanceThreshold (USD) enables balance.low.

Body

  • webhookUrlstring
    optional

    https URL that accepts POST

  • eventsany[]
    optional

    Events to receive; null = all

  • lowBalanceThresholdnumber
    optional

    USD

Errors

  • WEBHOOK_URL_NOT_HTTPS
    HTTP 400

    webhookUrl must use HTTPS. Use a public HTTPS endpoint.

Like every authenticated endpoint, it can also return AUTH_UNAUTHORIZED (401), RATE_LIMITED (429) and INTERNAL_ERROR (500). See all error codes.

Webhook settings

POST
/webhook/get

URL, secret, events and threshold.

Body

Send an empty JSON object: {}

Errors

Like every authenticated endpoint, it can also return AUTH_UNAUTHORIZED (401), RATE_LIMITED (429) and INTERNAL_ERROR (500). See all error codes.

New signing secret

POST
/webhook/secret/rotate

The old secret stops working immediately.

Body

Send an empty JSON object: {}

Errors

Like every authenticated endpoint, it can also return AUTH_UNAUTHORIZED (401), RATE_LIMITED (429) and INTERNAL_ERROR (500). See all error codes.

Send a test event now

POST
/webhook/test

Sends webhook.test, or a sample of any event (test: true), and returns what your server answered.

Body

  • eventstring
    optional

    Default webhook.test

Errors

Like every authenticated endpoint, it can also return AUTH_UNAUTHORIZED (401), RATE_LIMITED (429) and INTERNAL_ERROR (500). See all error codes.

Delivery log

POST
/webhook/deliveries

Every event sent to you, newest first, with the payload, attempts and your server's last answer.

Body

  • statusstring
    optional

    PENDING, RETRYING, DELIVERED, FAILED

  • eventstring
    optional

    Event name

  • limitinteger
    optional

    Default 50, max 100

  • cursorstring
    optional

Errors

Like every authenticated endpoint, it can also return AUTH_UNAUTHORIZED (401), RATE_LIMITED (429) and INTERNAL_ERROR (500). See all error codes.

Send a delivery again

POST
/webhook/deliveries/resend

Sends it right now and returns the result.

Body

  • deliveryIdstring
    required

Errors

Like every authenticated endpoint, it can also return AUTH_UNAUTHORIZED (401), RATE_LIMITED (429) and INTERNAL_ERROR (500). See all error codes.