Docs / API reference

Webhook deliveries API

Updated 2026-11-22. Published by PentestLLM.

When a low-balance alert or an incident notice should have reached your on-call channel and did not, one route under https://api.pentestllm.ai/v1 shows each recent delivery, newest first, with its attempt count and the last status your endpoint returned.

Route

RouteStatuses
GET /v1/webhooks/deliveries200, 401

Each delivery

A 200 carries data, newest first. Each row:

FieldMeaning
idThe delivery.
webhook_idThe endpoint it went to.
eventbalance.low, balance.empty, key.budget_reached, key.limit_reached, topup.credited, payment.failed, incident.opened or incident.resolved.
attemptsSends made so far, at most 3.
statuspending, delivered or failed.
last_status_codeThe HTTP status your endpoint last returned, or null when it did not answer.
created_atWhen the delivery was queued, Unix milliseconds.
done_atWhen it was delivered or given up, Unix milliseconds; null while pending.

Errors

No valid admin key is 401 invalid_api_key. The OpenAPI document lists no other error for the route.

Example

shell
1curl https://api.pentestllm.ai/v1/webhooks/deliveries \
2 -H "Authorization: Bearer sk-ptl-live-…"

Questions

Which key reads this?

An admin key. Delivery history is an account-level audit view, so a key scoped to model calls gets 401 invalid_api_key.

How do I tell a dead endpoint from a slow one?

A null last_status_code means the latest attempt got no answer at all; a 5xx means your endpoint answered and failed. After at most three attempts the status settles as delivered or failed and done_at is set.

Where are the endpoints themselves set up?

Not here; this route only reports what was sent. Endpoints that relay finished requests, signed webhooks included, live on the log export reference.

Join on TelegramHelp