API Reference
work.studio provides a comprehensive REST API for programmatic access to all platform features. All services expose OpenAPI specifications with interactive documentation.
Quick Links
Explore and test APIs directly using our Swagger UI interfaces.
Learn how to authenticate your API requests.
Platform Architecture
work.studio is built as a modular platform with the following core services:
graph TB
subgraph "API Gateway"
ALB[Application Load Balancer]
end
subgraph "Core Services"
ACC[Account Service]
CAT[Catalog Service]
CON[Connection Service]
POR[Portal Service]
end
subgraph "Execution Services"
RUN[Run Service]
TRG[Trigger Service]
TSK[Task Service]
WH[Webhook Service]
end
subgraph "Data Services"
STR[Storage Service]
SUB[Subscription Service]
NOT[Notification Service]
end
subgraph "AI Services"
AI[AI Runtime]
KB[KB Worker]
EMB[Embedding Service]
end
ALB --> ACC
ALB --> CAT
ALB --> CON
ALB --> POR
ALB --> RUN
ALB --> TRG
ALB --> TSK
ALB --> WH
ALB --> STR
ALB --> SUB
ALB --> NOT
ALB --> AI
ALB --> KBBase URL
All API endpoints are accessed through the API gateway:
https://api.work.studio/api/v1/workflow
https://api.work.studio/api/v1/workflow
Service Overview
Core Services
Execution Services
Data Services
AI Services
Common Headers
All authenticated requests require these headers:
Rate Limits
Rate limit headers are included in responses:
X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 999
X-RateLimit-Reset: 1619827200
Error Responses
All errors follow a standard format:
{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid workflow configuration",
"details": [
{
"field": "trigger.config.schedule",
"message": "Invalid cron expression"
}
]
},
"requestId": "req_abc123",
"timestamp": "2024-01-15T10:30:00Z"
}
HTTP Status Codes
Client libraries
pip install workstudio
A client for the REST API — workflows, runs and agents.
npm install @workstudio-inc/sdk
Headless and framework-agnostic. Covers the embeddable integration marketplace today; the surface is growing to the rest of the API.
Note the npm scope
The JavaScript package is @workstudio-inc/sdk, not @workstudio/sdk. The
unprefixed @workstudio scope on npm belongs to an unrelated project — anything
published there is not ours.
Both are MIT licensed and at 0.1.0, so expect the surface to move. Pin a version
if you need stability.
No library for your language? The API is plain REST over HTTPS with a bearer token,
so any HTTP client works — every endpoint on this page has a curl example. Tell us
what you'd want at support@work.studio.