Sayr

API Overview

Introduction to the Sayr API

API Overview

Sayr provides a REST API for programmatic access to your data.

Base URL

https://api.sayr.io

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

All responses are JSON formatted:

{
  "data": { ... },
  "meta": {
    "timestamp": "2024-01-15T10:30:00Z"
  }
}

Rate Limiting

  • 100 requests per minute for authenticated users
  • 10 requests per minute for unauthenticated requests

Endpoints

Organizations

MethodEndpointDescription
GET/organizationsList your organizations
GET/organizations/:slugGet organization details
POST/organizationsCreate an organization

Tasks

MethodEndpointDescription
GET/organizations/:slug/tasksList tasks
GET/tasks/:idGet task details
POST/organizations/:slug/tasksCreate a task
PATCH/tasks/:idUpdate a task
DELETE/tasks/:idDelete a task

See the individual endpoint documentation for full details.

On this page