Webhooks
6 endpoints. Every call is POST https://api.useburj.com/v1/<path> with a JSON body.
Set the webhook
/webhook/configurationEach 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
webhookUrlstringoptionalhttps URL that accepts POST
eventsany[]optionalEvents to receive; null = all
lowBalanceThresholdnumberoptionalUSD
Errors
WEBHOOK_URL_NOT_HTTPSHTTP 400webhookUrl 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
/webhook/getURL, 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
/webhook/secret/rotateThe 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
/webhook/testSends webhook.test, or a sample of any event (test: true), and returns what your server answered.
Body
eventstringoptionalDefault 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
/webhook/deliveriesEvery event sent to you, newest first, with the payload, attempts and your server's last answer.
Body
statusstringoptionalPENDING, RETRYING, DELIVERED, FAILED
eventstringoptionalEvent name
limitintegeroptionalDefault 50, max 100
cursorstringoptional
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
/webhook/deliveries/resendSends it right now and returns the result.
Body
deliveryIdstringrequired
Errors
Like every authenticated endpoint, it can also return AUTH_UNAUTHORIZED (401), RATE_LIMITED (429) and INTERNAL_ERROR (500). See all error codes.