Reference

Registry Endpoints


Workflow Registration

Register Workflow

1
POST /api/v1/registry/workflows
2
Authorization: Bearer <token>
3
Content-Type: application/json
4
5
{
6
"name": "order_processing",
7
"version": "1.0.0",
8
"description": "Process customer orders",
9
"language": "rust",
10
"metadata": {
11
"author": "engineering@acme.com",
12
"tags": ["orders", "payments"]
13
}
14
}

Response:

1
{
2
"workflow_id": "wf_123",
3
"name": "order_processing",
4
"version": "1.0.0",
5
"status": "registered",
6
"registered_at": "2024-01-07T12:00:00Z"
7
}

Upload WASM Workflow

1
POST /api/v1/registry/workflows/wasm
2
Authorization: Bearer <token>
3
Content-Type: multipart/form-data
4
5
# Upload a compiled WASM workflow binary

List Registered Workflows

1
GET /api/v1/registry/workflows?limit=50
2
Authorization: Bearer <token>

Get Workflow Details

1
GET /api/v1/registry/workflows/:workflow_id
2
Authorization: Bearer <token>

Update Workflow

1
PUT /api/v1/registry/workflows/:workflow_id
2
Authorization: Bearer <token>
3
Content-Type: application/json
4
5
{
6
"description": "Updated description",
7
"metadata": {
8
"author": "engineering@acme.com",
9
"tags": ["orders", "payments", "v2"]
10
}
11
}

Delete Workflow

1
DELETE /api/v1/registry/workflows/:workflow_id
2
Authorization: Bearer <token>

Deployment

Deploy Workflow

Deploy a registered workflow to specific task queues, making it available for execution.

1
POST /api/v1/registry/workflows/:workflow_id/deploy
2
Authorization: Bearer <token>
3
Content-Type: application/json
4
5
{
6
"task_queues": ["orders", "payments"]
7
}

Health

Registry Health Check

1
GET /api/v1/registry/health
2
Authorization: Bearer <token>

Next Steps