API Overview
API Overview
Section titled “API Overview”Sayr provides a REST API for programmatic access to your data.
Base URL
Section titled “Base URL”https://api.sayr.ioAuthentication
Section titled “Authentication”All API requests require authentication via session cookies or API tokens.
curl -X GET "https://api.sayr.io/organizations" \ -H "Authorization: Bearer YOUR_API_TOKEN"Response Format
Section titled “Response Format”All responses are JSON formatted:
{ "data": { ... }, "meta": { "timestamp": "2024-01-15T10:30:00Z" }}Rate Limiting
Section titled “Rate Limiting”- 100 requests per minute for authenticated users
- 10 requests per minute for unauthenticated requests
Endpoints
Section titled “Endpoints”Organizations
Section titled “Organizations”| Method | Endpoint | Description |
|---|---|---|
| GET | /organizations | List your organizations |
| GET | /organizations/:slug | Get organization details |
| POST | /organizations | Create an organization |
| Method | Endpoint | Description |
|---|---|---|
| GET | /organizations/:slug/tasks | List tasks |
| GET | /tasks/:id | Get task details |
| POST | /organizations/:slug/tasks | Create a task |
| PATCH | /tasks/:id | Update a task |
| DELETE | /tasks/:id | Delete a task |
See the individual endpoint documentation for full details.