Skip to main content

Inboxes

An inbox is a receiving address plus the rules applied to the mail that arrives on it. See the Inbox model for the shape of the returned object.

CommandHTTPDescription
inboxes listGET /inboxesList inboxes in the workspace. Cursor-paginated.
inboxes getGET /inboxes/{id}Fetch one inbox by internal id or external_id.
inboxes createPOST /inboxesCreate an inbox — the address is composed and live immediately.
inboxes upsertPUT /inboxesCreate or update, matched by id, external_id, then email.
inboxes updatePATCH /inboxes/{id}Update in place. Changing slug repoints the receiving address.
inboxes deleteDELETE /inboxes/{id}Soft-delete.
inboxes recipients createPOST /inboxes/{id}/recipientsAdd one address to allowed_recipients.
inboxes recipients deleteDELETE /inboxes/{id}/recipientsRemove one address from allowed_recipients.

Examples​

# List, filtered by status
kobana inbox inboxes list \
--params '{"status": "active", "limit": 25}' \
--fields "id,label,email,status"

# Get one
kobana inbox inboxes get \
--params '{"id": "INBOX_ID"}' \
--fields "id,label,email,agent_id,filters"

# Create
kobana inbox inboxes create \
--json '{"label": "Support", "slug": "support", "agent_id": "AGENT_ID"}'

# Create or update, matched by email
kobana inbox inboxes upsert \
--json '{"email": "acme.workspace.support@inbox.kobana.com.br", "agent_id": "AGENT_ID"}'

# Update filters
kobana inbox inboxes update \
--params '{"id": "INBOX_ID"}' \
--json '{"attachments_allow": false}'

# Soft-delete
kobana inbox inboxes delete --params '{"id": "INBOX_ID"}' --dry-run

# Allow a sender
kobana inbox inboxes recipients create \
--params '{"id": "INBOX_ID"}' \
--json '{"email": "sender@example.com"}'

# Revoke a sender
kobana inbox inboxes recipients delete \
--params '{"id": "INBOX_ID", "email": "sender@example.com"}'

Next steps​

  • E-mails — the messages that arrive on an inbox.
  • Agents — the processor an inbox points at.