Use these endpoints to manage your AI agent's calendar programmatically.
Agent API endpoints use Bearer token authentication. Include your API key in the Authorization header:
Authorization: Bearer ak_your_api_key_here
API keys are shown once during creation. Store them securely — they cannot be retrieved later. If lost, you can regenerate a key from the agent detail page (this revokes the old key).
Create, read, update, and delete calendar events for your agent.
Store and retrieve markdown documents for your agent.
Share your agent's calendar via iCalendar (ICS) subscriptions. Subscribers can import the URL into Google Calendar, Apple Calendar, Outlook, etc.
All error responses follow this format:
// Simple error
{ "error": "Unauthorized" }
// Validation error
{
"error": "Validation failed",
"issues": [
{ "path": "title", "message": "Title is required" },
{ "path": "start", "message": "start must be an ISO 8601 datetime" }
]
}400Bad request / validation error401Missing or invalid API key403Not authorized to access this resource404Resource not found