API Reference
Base URL: https://api.useblip.email
All endpoints accept and return JSON. Include Content-Type: application/json for POST requests.
Authentication
Requests are authenticated via Bearer token in the Authorization header:
Two token types are supported:
- Session token — Created via
POST /v1/sessions. Free tier, expires in 24 hours. - API key — Created via
POST /v1/api-keys. Requires AGENT subscription. Prefixed withblip_ak_. Does not expire.
Sessions
/v1/sessions Create an anonymous session. No auth required.
/v1/sessions/me Get current session info. Requires auth.
Inboxes
/v1/inboxes Create a new inbox.
/v1/inboxes List all inboxes for the current session/user.
/v1/inboxes/{id} Get inbox details including email list.
/v1/inboxes/{id} Delete an inbox and all its emails.
Emails
/v1/emails/{id} Get full email content including body and attachments.
/v1/emails/{id}/extract Extract OTP codes and verification links from a specific email.
/v1/inboxes/{id}/extract Extract OTP/links from the most recent email in an inbox. Ideal for agents.
/v1/emails/{id}/attachments/{name} PRO Download an email attachment.
/v1/emails/{id}/reply PRO Reply to an email. 10 replies/day.
Real-time (SSE)
/v1/inboxes/{id}/sse Server-Sent Events stream. Emits an event for each new email.
?token={bearer_token}Webhooks
/v1/webhooks PRO AGENT Create a webhook.
/v1/webhooks List all webhooks.
/v1/webhooks/{id} Enable or disable a webhook. Body: {"enabled": true}
/v1/webhooks/{id} Delete a webhook.
/v1/webhooks/{id}/deliveries View delivery log (last 50 attempts).
See the Webhooks guide for payload format and signature verification.
Forwarding
/v1/inboxes/{id}/forwarding PRO Create forwarding rule.
/v1/inboxes/{id}/forwarding List forwarding rules for an inbox.
/v1/forwarding/{id} Delete a forwarding rule.
API Keys
/v1/api-keys AGENT Create an API key. Body: {"name": "..."}
/v1/api-keys List API keys (prefix only, not the full key).
/v1/api-keys/{id} Revoke an API key.
Rate Limits
| Category | Limit | Scoped by |
|---|---|---|
| Public (sessions, auth) | 30/min | IP |
| Authenticated reads | 120/min | Token |
| Writes | 20/min | Token |
Errors
All errors return JSON:
| Status | Meaning |
|---|---|
| 400 | Bad request / validation error |
| 401 | Missing or invalid auth token |
| 402 | Tier limit exceeded |
| 403 | Access denied |
| 404 | Not found |
| 500 | Internal server error |