HOOKDROP / API
API documentation
Authenticate, send a webhook, and inspect your private request history.
Overview
Production base URL: https://hookdrop.id
Create a webhook URL in the workspace first, with or without an account. Confirm your email before password login. URL names use 3–100 lowercase letters, numbers, and hyphens between characters.
Receiving webhooks is public. Signed-in creation makes history private to the owner; guest-created history can be read or deleted by anyone.
Google OAuth remains available through the sign-in page. The password endpoint is for email/password accounts only; both methods use the same account permissions.
Get a login token
/api/public/auth/tokenSend email and password as JSON. No bearer token or backend API key is required.
curl -X POST "https://hookdrop.id/api/public/auth/token" \
-H "Content-Type: application/json" \
--data '{"email":"you@example.com","password":"YOUR_PASSWORD"}'200 OK
{
"access_token": "<access_token>",
"refresh_token": "<refresh_token>",
"expires_in": 3600,
"expires_at": 1791507600,
"token_type": "bearer"
}Example values only. Use expires_in (seconds) or expires_at (Unix seconds, when present) from the actual response. Keep tokens secret; never send credentials in a URL or commit them to source control.
Refresh a session
/api/public/auth/refreshSend the latest refresh token, not the access token. Replace both stored tokens with the new response after every successful refresh.
curl -X POST "https://hookdrop.id/api/public/auth/refresh" \
-H "Content-Type: application/json" \
--data '{"refresh_token":"YOUR_REFRESH_TOKEN"}'200 returns the same token fields as login. If refresh returns 401, sign in again. Serialize refresh requests to avoid competing token rotations.
Send a webhook
/{slug}No authentication required. The URL must already exist. Headers, query parameters, and the raw body are recorded; GET and HEAD store an empty body.
curl -X POST "https://hookdrop.id/your-custom-webhook?source=postman" \
-H "Content-Type: application/json" \
--data '{"event":"order.created","order_id":"demo-001"}'{"ok":true,"message":"Webhook received"}Success is 200 by default; HEAD has no response body. Private inboxes owned by a Pro account can return a configured status and body instead — see Custom response. Maximum payload: 256 KB. Authorization, Cookie, X-API-Key, and Proxy-Authorization headers are redacted. Body fields are not automatically masked: use test data, not production secrets.
Custom response (Pro)
Choose what Hookdrop replies to the sender of your webhook. Use it to test how your provider handles success, validation errors, and retries — for example return 500 to see whether a payment gateway resends the event.
Set it from the Custom Response card on your private inbox page: a status code (100–599, default 200) and an optional reply body (text or JSON).
Example: configured 422 with a JSON body
curl -i -X POST "https://hookdrop.id/your-custom-webhook" \
-H "Content-Type: application/json" \
--data '{"event":"order.created"}'HTTP/2 422
{"status":"REJECTED","reason":"invalid signature"}- Applies only to private inboxes whose owner has an active Pro plan.
- Guest inboxes and Free accounts always reply 200 {"ok":true,"message":"Webhook received"}.
- The payload is stored first; the custom reply is sent only after it is saved. System errors (404, 413, 500) are never replaced.
Read your inbox
/api/inbox/{slug}Use Authorization: Bearer with the access token. Only the creator can read the inbox; invited access is not available yet.
curl "https://hookdrop.id/api/inbox/your-custom-webhook" \
-H "Authorization: Bearer $HOOKDROP_ACCESS_TOKEN"{
"inbox": {
"slug": "your-custom-webhook",
"created_at": "2026-10-09T00:00:00Z"
},
"requests": [
{
"id": "00000000-0000-4000-8000-000000000001",
"method": "POST",
"headers": {
"content-type": "application/json"
},
"query_params": {
"source": "postman"
},
"body": "{\"event\":\"order.created\",\"order_id\":\"demo-001\"}",
"content_type": "application/json",
"source_ip": "192.0.2.1",
"received_at": "2026-10-09T00:01:00Z"
}
]
}Returns up to 100 requests from the last 24 hours, newest first, plus hasMore and canLoadMore. An empty inbox returns requests: []. Body is a raw string; parse it yourself if it contains JSON.
Pro: add ?before=<received_at of the oldest request> to load the next 100 older requests. Free accounts receive 403 for this parameter.
Public guest inboxes
No login or bearer token is needed. Anyone can read or delete a guest inbox. Sign in before creating a webhook to keep its history private. Active URL names cannot be acquired by another user.
POST /api/public/inboxes/
Content-Type: application/json
X-Hookdrop-Intent: public-inbox
{"slug":"your-custom-webhook"}201 returns { slug, visibility: "public" }; duplicate names return 409. JSON is limited to 2 KB. Writes require X-Hookdrop-Intent: public-inbox; browser calls must be same-origin.
GET /api/public/inboxes/{slug}
DELETE /api/public/inboxes/{slug}
X-Hookdrop-Intent: public-inboxGET returns the same inbox and requests fields as the private API. DELETE returns { deleted: true } and permanently removes the inbox and all requests. Private or absent inboxes return 404 through these public endpoints. After deletion anyone can reuse the name and receive future requests still sent to that URL.
Errors & limits
| Status | Meaning |
|---|---|
| 400 | Invalid JSON, fields, or authenticated inbox slug. |
| 401 | Login/refresh rejected, or missing, expired, or invalid bearer token. |
| 403 | Cross-origin browser requests to the token APIs are not allowed. |
| 404 | Webhook URL absent; inbox absent or owned by another account. |
| 413 | Auth JSON exceeds 16 KB or webhook payload exceeds 256 KB. |
| 415 | Token endpoints require Content-Type: application/json. |
| 429 | Auth provider rejected too many attempts. Wait before retrying. |
| 500 / 503 | Storage or authentication is temporarily unavailable. |
{"error":"Valid bearer token required"}Token and inbox responses use Cache-Control: private, no-store. Requests expire after 24 hours and are permanently deleted once a day. cURL and Postman are supported; cross-origin browser access is not enabled. Private creation and listing use the signed-in workspace; public guest APIs are documented above.