Skip to content

Inboxes

Create Inbox

Creates a new inbox and generates a unique email address.

POST /inboxes

bash
curl -X POST https://api.emailhook.com/v1/inboxes \
  -H "Authorization: Bearer apk_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Support",
    "webhookUrl": "https://yourapp.com/webhooks/inbox"
  }'

List Inboxes

Returns a list of your inboxes.

GET /inboxes

bash
curl -H "Authorization: Bearer apk_your_api_key_here" \
     "https://api.emailhook.com/v1/inboxes?limit=10"

Get Inbox

Retrieves a specific inbox by ID.

GET /inboxes/{inboxId}

bash
curl -H "Authorization: Bearer apk_your_api_key_here" \
     https://api.emailhook.com/v1/inboxes/inbx_123

Update Inbox

Updates an existing inbox.

PATCH /inboxes/{inboxId}

bash
curl -X PATCH https://api.emailhook.com/v1/inboxes/inbx_123 \
  -H "Authorization: Bearer apk_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{"name": "Support (Tier 2)"}'

Delete Inbox

Permanently deletes an inbox and all its emails.

DELETE /inboxes/{inboxId}

bash
curl -X DELETE https://api.emailhook.com/v1/inboxes/inbx_123 \
  -H "Authorization: Bearer apk_your_api_key_here"

Built with VitePress