Introduction to GAIA API
Welcome to the GAIA API documentation. GAIA is a proactive personal AI assistant that helps you manage tasks, emails, calendar events, workflows, and more through intelligent automation.Base URL
All API requests should be made to:API Versioning
The GAIA API uses URL-based versioning. The current version isv1, which is included in the base URL path.
Version Format: /api/v{version_number}
- Current version:
v1 - Base path:
/api/v1
Quick Start
1. Authentication
All API requests require authentication via WorkOS session tokens. Include your session token in theCookie header:
2. Make Your First Request
List your todos:3. Create a Resource
Create a new todo:Response Format
All responses are returned in JSON format with appropriate HTTP status codes:200 OK- Successful GET, PUT, PATCH requests201 Created- Successful POST request creating a resource204 No Content- Successful DELETE request400 Bad Request- Invalid request parameters401 Unauthorized- Missing or invalid authentication403 Forbidden- Authenticated but not authorized404 Not Found- Resource not found429 Too Many Requests- Rate limit exceeded500 Internal Server Error- Server error
Success Response Example
Error Response Example
Request Headers
Required Headers
Cookie: wos_session=YOUR_SESSION_TOKEN- Authentication tokenContent-Type: application/json- For POST, PUT, PATCH requests
Optional Headers
x-timezone- User’s timezone (defaults to UTC)
Pagination
List endpoints support pagination using query parameters:Page number (1-based)
Items per page (max: 100)
Pagination Response
Timestamps
All timestamps are returned in ISO 8601 format with UTC timezone:Feature Overview
The GAIA API provides endpoints for:- Chat - Stream chat messages with AI assistance
- Todos - Manage tasks with projects, subtasks, and priorities
- Calendar - Create and manage calendar events
- Email - Send, search, and manage Gmail messages
- Workflows - Automate tasks with AI-generated workflows
- Goals - Track goals with AI-generated roadmaps
- Memory - Store and retrieve contextual memories
- Integrations - Connect third-party services
Support & Resources
- Documentation: https://docs.heygaia.io
- Status Page: https://status.heygaia.io
- GitHub: https://github.com/anomalyco/gaia
Next Steps
Authentication
Learn how to authenticate your requests
Rate Limits
Understand API rate limits and quotas
Chat API
Stream AI-powered conversations
Todos API
Manage tasks and projects