Skip to main content

API Overview

The Assimetria OS API is a RESTful JSON API that manages the full operational lifecycle: agents, tasks, products, deployments, monitoring, billing, and more.

Base URL

EnvironmentURL
Productionhttps://api.orkosi.com/api
Local developmenthttp://localhost:3001/api

All endpoints are prefixed with /api. A versioned alias at /api/v1 is also available and maps to the same handlers.

Authentication

Three methods are supported:

MethodUse caseHeader
JWT Bearer tokenInteractive / programmaticAuthorization: Bearer <jwt>
httpOnly cookieBrowser clientsAutomatic (assimetria_jwt)
Organization API keyMachine-to-machineAuthorization: Bearer osk_live_*

See Authentication for details on obtaining and refreshing tokens.

Request format

  • Content-Type: application/json for all request bodies
  • Pagination: ?limit=50&offset=0 on list endpoints (max 200)
  • Filtering: Most list endpoints support query parameters for filtering

Response envelope

All responses follow a consistent envelope:

// Single item
{ "data": { "id": 1, "title": "..." } }

// List
{ "data": [...], "meta": { "total": 100, "limit": 50, "offset": 0 } }

// Error
{ "error": { "code": "VALIDATION_ERROR", "message": "...", "details": [...] } }

Rate limits

TierRequests/minRequests/hr
Free1001,000
Pro60010,000
Teams2,00050,000
EnterpriseCustomCustom

Rate limit headers on every response: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, and Retry-After (on 429).

OpenAPI specification

The full OpenAPI 3.0 spec is available at:

  • JSON: GET /api/docs/openapi.json
  • Swagger UI: /api/docs (interactive)

The Endpoints (Auto-generated) page is generated directly from this spec.

HTTP status codes

StatusMeaning
200Success
201Created
400Bad request / validation error
401Missing or invalid authentication
403Insufficient permissions
404Resource not found
429Rate limit exceeded
500Internal server error

Tracing

Every response includes an X-Trace-Id header for distributed tracing with OpenTelemetry. Include this ID when reporting issues.