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/v1Parameters like account_id and agent_id are auto-resolved from your API key scope — you don't need to pass them.
Endpoints
Emails
GET
/emailsGET
/emails/{id}POST
/emails/sendPATCH
/emails/{id}GET
/emails/attachments/{id}/urlGET
/emails/storage-usageThreads
GET
/emails/threadsGET
/emails/threads/{id}Search
POST
/searchAgents
GET
/agentsGET
/agents/{id}PATCH
/agents/{id}Storage
GET
/store/collectionsPOST
/store/collectionsDELETE
/store/collections/{name}GET
/store/{collection}/documentsPOST
/store/{collection}/documentsGET
/store/{collection}/documents/{id}PUT
/store/{collection}/documents/{id}PATCH
/store/{collection}/documents/{id}DELETE
/store/{collection}/documents/{id}POST
/store/searchPOST
/store/askDocuments 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/eventsPOST
/calendar/eventsGET
/calendar/events/{id}PATCH
/calendar/events/{id}DELETE
/calendar/events/{id}POST
/calendar/events/searchScheduled Emails
GET
/calendar/scheduled-emailsPOST
/calendar/scheduled-emailsGET
/calendar/scheduled-emails/{id}DELETE
/calendar/scheduled-emails/{id}Event Hooks (Webhooks)
GET
/event-hooksPOST
/event-hooksGET
/event-hooks/{id}PATCH
/event-hooks/{id}DELETE
/event-hooks/{id}GET
/event-hooks/{id}/deliveriesPOST
/event-hooks/{id}/testTrusted Senders
GET
/trusted-senders?agent_id=...POST
/trusted-sendersDELETE
/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.