REST API
Full HTTP API for emails, threads, agents, 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}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.