Docs / API reference
Webhook deliveries API
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
| Route | Statuses |
|---|---|
GET /v1/webhooks/deliveries | 200, 401 |
Each delivery
A 200 carries data, newest first. Each row:
| Field | Meaning |
|---|---|
id | The delivery. |
webhook_id | The endpoint it went to. |
event | balance.low, balance.empty, key.budget_reached, key.limit_reached, topup.credited, payment.failed, incident.opened or incident.resolved. |
attempts | Sends made so far, at most 3. |
status | pending, delivered or failed. |
last_status_code | The HTTP status your endpoint last returned, or null when it did not answer. |
created_at | When the delivery was queued, Unix milliseconds. |
done_at | When 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
curl https://api.pentestllm.ai/v1/webhooks/deliveries \ -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.
Read next
- MCP servers
- Log export
- Invoices
- Billing details
- Statement signing key
- Keys and scopes
- Usage and signed receipts
- Spend limits and balance
- Redaction and guardrails
- Sessions
- Embeddings, rerank and moderation
- Batch files
- Batches
- Status and proof feeds
- Count tokens
- Usage by app
- App sign-in keys
- Docs: connect in two minutes