Skip to main content
🐙
Docs

API Reference

The Delegate REST API lets you programmatically access workspaces, tasks, meetings, and more.

#Base URL

All API requests are made to:

https://delegate.ws/api
ℹ️Note
If you are running Delegate locally, the base URL is http://localhost:3000/api.

#Authentication

The Delegate API uses session-based authentication. To make authenticated requests from your own code, pass your session token as a cookie or use the Authorization header with a bearer token.

💡Tip
For server-to-server integrations, use the API token generated in Settings → Developer → API Tokens.
curl https://delegate.ws/api/tasks \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json"

#Response format

All responses are JSON. Successful responses use HTTP 200, 201, or 204. Errors return a JSON object with a message field:

{
  "message": "Unauthorized",
  "status": 401
}

#Rate limits

PlanRequests / minuteRequests / day
Starter6010,000
Pro300100,000
Team1,000Unlimited

Rate limit headers are included in every response:

X-RateLimit-Limit: 300
X-RateLimit-Remaining: 299
X-RateLimit-Reset: 1710000000

#Available endpoints

  • Workspaces — list and manage workspaces
  • Tasks — CRUD for tasks and subtasks
  • Meetings — create, update, and query meetings
  • GET /api/dashboard/stats — workspace-level stats
  • GET /api/mail — paginated email list
  • GET /api/knowledge — knowledge base entries
  • GET /api/ai/suggestions — pending AI suggestions

#Webhooks

Register a webhook URL in Settings → Developer → Webhooks to receive real-time event notifications. Supported events:

  • task.created
  • task.updated
  • task.deleted
  • meeting.created
  • meeting.completed
  • ai.suggestion.created

Webhook payloads are signed with HMAC-SHA256. Validate the X-Delegate-Signature header to verify authenticity.