Stations API
A station is one job a factory session runs, with the handler its factory defines for the station's code and the station's config. Each station belongs to a line, whose location decides which factory session picks it up.
Base URL
https://orchestrator.assemblyline.sh/api/v1/stations
Vocabulary note. The orchestrator is in the middle of a Station → Station rename. The canonical API surface is
/api/v1/stations/*; the/api/v1/stations/*paths shown below remain functional via a deprecation re-export that addsDeprecation: trueheaders. New clients should prefer/stations/*. Thearchive/unarchiveendpoints exist only on the canonical surface — there is no/stations/*alias for those.
Endpoints
| Method | Endpoint | Description |
|---|---|---|
GET | /api/v1/stations | List all stations |
GET | /api/v1/stations/:id | Get a single station |
POST | /api/v1/stations | Create a new station |
PUT | /api/v1/stations/:id | Update a station |
DELETE | /api/v1/stations/:id[?cascade=true] | Delete a station |
POST | /api/v1/stations/:id/run | Run a station |
POST | /api/v1/stations/:id/archive | Archive a station |
POST | /api/v1/stations/:id/unarchive | Unarchive a station |
GET | /api/v1/stations/:id/tags | Get station tags |
PUT | /api/v1/stations/:id/tags | Set station tags |
Required Permissions
| Action | Permission |
|---|---|
| List/Get | stations:read |
| Create | stations:create |
| Update | stations:edit |
| Delete | stations:delete |
| Run | stations:create |
| Archive/Unarchive | stations:edit |
Quick Example
List Stations
curl -X GET "https://orchestrator.assemblyline.sh/api/v1/stations" \
-H "api-key: al_xxxxxxxxxxxx" \
-H "api-secret: xxxxxxxxxxxxxxxx"
Create Station
curl -X POST "https://orchestrator.assemblyline.sh/api/v1/stations" \
-H "api-key: al_xxxxxxxxxxxx" \
-H "api-secret: xxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"short_code": "IV1",
"line": "IV",
"name": "validate_invoice",
"description": "Validate invoice data",
"config": {}
}'
See Also
- Station Object — full field reference
- Run Station — trigger station execution
- Work Records — view execution records
- Work Record Object — statuses, retries and how a run is queued and claimed