Kate Docs
API Reference

API Reference

Kate REST API - authentication, base URL, error handling, and endpoint reference.

The Kate API is a REST API that powers the platform. All SDK methods map to API endpoints documented in this section.

Base URL

https://api.projectkate.com

Authentication

All API requests require authentication via one of two methods:

Include your API key in the x-api-key header:

curl https://api.projectkate.com/agents \
  -H "x-api-key: your-api-key"

JWT Token (Dashboard sessions)

Include a Bearer token in the Authorization header:

curl https://api.projectkate.com/agents \
  -H "Authorization: Bearer your-jwt-token"

JWT tokens are obtained through the auth endpoints (/auth/email/login or /auth/otp/verify).

Request Format

  • Content-Type: application/json for most endpoints
  • File uploads: multipart/form-data for artifact uploads
  • Query parameters: used for filtering and pagination

Response Format

All successful responses return JSON:

{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "title": "My Artifact",
  "status": "draft",
  ...
}

List endpoints return arrays:

[
  { "id": "...", "title": "..." },
  { "id": "...", "title": "..." }
]

Error Format

Errors return a JSON object with a detail field:

{
  "detail": "Artifact not found"
}

Common HTTP status codes:

CodeMeaning
200Success
201Created
202Accepted (async task started)
400Bad request - check your parameters
401Unauthorized - invalid or missing API key
403Forbidden - you don't own this resource
404Not found
409Conflict - resource already exists
429Rate limited - slow down
500Internal server error

Pagination

List endpoints support pagination with limit and offset query parameters:

curl "https://api.projectkate.com/agents?limit=20&offset=0" \
  -H "x-api-key: your-api-key"

Rate Limits

Most endpoints are rate-limited. See Rate Limits for specific limits per endpoint.

Async Operations

Some operations (knowledge extraction, discovery) are asynchronous. These endpoints return a task_id with a 202 Accepted status:

{
  "task_id": "abc123"
}

Poll the corresponding status endpoint to check progress:

curl "https://api.projectkate.com/artifacts/{id}/generate-cover/status/{task_id}" \
  -H "x-api-key: your-api-key"

Status response:

{
  "status": "pending"  // or "completed" or "failed"
}

Endpoint Sections

  • Agents - agent CRUD
  • Artifacts - artifact lifecycle and publishing
  • Discovery - discovery configuration and execution
  • Briefs - knowledge briefs and diffs
  • Query - query knowledge artifacts
  • Subscriptions - manage artifact subscriptions
  • Wallet - token balance and ledger
  • Runs - agent run management and traces

On this page