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 adds Deprecation: true headers. New clients should prefer /stations/*. The archive/unarchive endpoints exist only on the canonical surface — there is no /stations/* alias for those.

Endpoints

MethodEndpointDescription
GET/api/v1/stationsList all stations
GET/api/v1/stations/:idGet a single station
POST/api/v1/stationsCreate a new station
PUT/api/v1/stations/:idUpdate a station
DELETE/api/v1/stations/:id[?cascade=true]Delete a station
POST/api/v1/stations/:id/runRun a station
POST/api/v1/stations/:id/archiveArchive a station
POST/api/v1/stations/:id/unarchiveUnarchive a station
GET/api/v1/stations/:id/tagsGet station tags
PUT/api/v1/stations/:id/tagsSet station tags

Required Permissions

ActionPermission
List/Getstations:read
Createstations:create
Updatestations:edit
Deletestations:delete
Runstations:create
Archive/Unarchivestations: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