Command Palette

Search for a command to run...

REST API

Full HTTP API for emails, threads, agents, calendar, scheduled emails, storage, search, and webhooks. All endpoints are scoped to the agent associated with your API key.

Base URL
https://api.xobni.ai/api/v1

Parameters like account_id and agent_id are auto-resolved from your API key scope — you don't need to pass them.

Endpoints

Emails

GET/emails
GET/emails/{id}
POST/emails/send
PATCH/emails/{id}
GET/emails/attachments/{id}/url
GET/emails/storage-usage

Threads

GET/emails/threads
GET/emails/threads/{id}

Search

POST/search

Agents

GET/agents
GET/agents/{id}
PATCH/agents/{id}

Storage

GET/store/collections
POST/store/collections
DELETE/store/collections/{name}
GET/store/{collection}/documents
POST/store/{collection}/documents
GET/store/{collection}/documents/{id}
PUT/store/{collection}/documents/{id}
PATCH/store/{collection}/documents/{id}
DELETE/store/{collection}/documents/{id}
POST/store/search
POST/store/ask

Documents are JSON objects stored in named collections. Each document is automatically embedded for semantic search. The /ask endpoint retrieves relevant docs and generates an AI answer with source citations.

Calendar

GET/calendar/events
POST/calendar/events
GET/calendar/events/{id}
PATCH/calendar/events/{id}
DELETE/calendar/events/{id}
POST/calendar/events/search

Scheduled Emails

GET/calendar/scheduled-emails
POST/calendar/scheduled-emails
GET/calendar/scheduled-emails/{id}
DELETE/calendar/scheduled-emails/{id}

Event Hooks (Webhooks)

GET/event-hooks
POST/event-hooks
GET/event-hooks/{id}
PATCH/event-hooks/{id}
DELETE/event-hooks/{id}
GET/event-hooks/{id}/deliveries
POST/event-hooks/{id}/test

Trusted Senders

GET/trusted-senders?agent_id=...
POST/trusted-senders
DELETE/trusted-senders/{id}

All email responses include is_trusted_sender: true/false computed from this allowlist. The agent owner's email is always a default trusted sender.