API Endpoints
Complete reference for WorkClaw REST API endpoints. Manage Claws, deployments, skills, team members, and chat programmatically.
How are endpoints organized?
All endpoints are prefixed with /v1 and grouped by resource. Requests and responses use JSON. Authentication is required for all endpoints -- see API Authentication.
What Claw endpoints are available?
| Method | Path | Description | Scope |
|---|---|---|---|
GET | /v1/claws | List all Claws in your workspace | claws:read |
GET | /v1/claws/:id | Get a specific Claw's configuration | claws:read |
POST | /v1/claws | Create a new Claw | claws:write |
PATCH | /v1/claws/:id | Update a Claw's configuration | claws:write |
DELETE | /v1/claws/:id | Delete a Claw | claws:write |
Claw objects include identity, personality, installed skills, active connections, and current deployment status.
What deployment endpoints are available?
| Method | Path | Description | Scope |
|---|---|---|---|
GET | /v1/deployments | List recent deployments | deployments:read |
GET | /v1/deployments/:id | Get deployment details and status | deployments:read |
POST | /v1/deployments | Trigger a new deployment | deployments:write |
POST | /v1/deployments/:id/rollback | Roll back a deployment | deployments:write |
When triggering a deployment, you can optionally specify a deploy strategy to override the team default.
What skill endpoints are available?
| Method | Path | Description | Scope |
|---|---|---|---|
GET | /v1/claws/:id/skills | List installed skills | skills:read |
POST | /v1/claws/:id/skills | Install a skill | skills:write |
DELETE | /v1/claws/:id/skills/:skillId | Remove a skill | skills:write |
What team endpoints are available?
| Method | Path | Description | Scope |
|---|---|---|---|
GET | /v1/team/members | List team members | team:read |
POST | /v1/team/members | Invite a new member | team:write |
PATCH | /v1/team/members/:id | Update a member's role | team:write |
DELETE | /v1/team/members/:id | Remove a member | team:write |
What chat endpoints are available?
| Method | Path | Description | Scope |
|---|---|---|---|
POST | /v1/chat/:clawId/messages | Send a message to a Claw | chat:write |
GET | /v1/chat/:clawId/messages | Retrieve conversation history | chat:read |
The chat endpoint returns the Claw's response synchronously. For long-running tasks, the response includes a taskId you can poll via GET /v1/tasks/:taskId. See Tasks for more on task management.
How are errors returned?
All errors follow a consistent format:
{
"error": {
"code": "not_found",
"message": "Claw not found",
"status": 404
}
}
Common error codes: unauthorized (401), forbidden (403), not_found (404), rate_limited (429), internal_error (500).