List Stations
GET /api/v1/stations
Returns a paginated list of stations in your organization.
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
page | number | 1 | Page number |
limit | number | 100 | Items per page (max 500) |
fields | string | all | Comma-separated field names |
enabled | boolean | - | Filter by enabled status |
tag | string | - | Filter by tag name |
include_archived | boolean | false | Include archived stations in the results |
Example Request
curl -X GET "https://orchestrator.assemblyline.sh/api/v1/stations?enabled=true" \
-H "api-key: al_xxxxxxxxxxxx" \
-H "api-secret: xxxxxxxxxxxxxxxx"
Response
{
"data": [
{
"id": "st_abc123",
"name": "Invoice Validation",
"description": "Validate invoice data and format",
"short_code": "IV1",
"line": "IV",
"config": {},
"dependencies": [],
"is_enabled": true,
"archived_at": null,
"tags": [
{ "id": "tag_abc123", "name": "monthly", "color": "#0075ca" }
],
"created_at": "2024-01-10T08:00:00Z"
},
{
"id": "st_def456",
"name": "PO Approval",
"description": "Route PO for approval based on amount",
"short_code": "PO1",
"line": "PO",
"config": { "threshold": 10000 },
"dependencies": [],
"is_enabled": true,
"tags": [],
"created_at": "2024-01-08T14:30:00Z"
}
],
"page_context": {
"count": 2,
"page": 1,
"per_page": 100,
"total": 15,
"has_more": false
}
}
Field Selection
Request only specific fields (useful for listing without each station's config):
curl -X GET "https://orchestrator.assemblyline.sh/api/v1/stations?fields=id,name,enabled" \
-H "api-key: al_xxxxxxxxxxxx" \
-H "api-secret: xxxxxxxxxxxxxxxx"
{
"data": [
{ "id": "st_abc123", "name": "Invoice Validation", "enabled": true },
{ "id": "st_def456", "name": "PO Approval", "enabled": true }
],
"page_context": { ... }
}
Filtering by Enabled Status
Only Enabled Stations
curl -X GET "https://orchestrator.assemblyline.sh/api/v1/stations?enabled=true" \
-H "api-key: al_xxxxxxxxxxxx" \
-H "api-secret: xxxxxxxxxxxxxxxx"
Only Disabled Stations
curl -X GET "https://orchestrator.assemblyline.sh/api/v1/stations?enabled=false" \
-H "api-key: al_xxxxxxxxxxxx" \
-H "api-secret: xxxxxxxxxxxxxxxx"
Filtering by Tag
curl -X GET "https://orchestrator.assemblyline.sh/api/v1/stations?tag=monthly" \
-H "api-key: al_xxxxxxxxxxxx" \
-H "api-secret: xxxxxxxxxxxxxxxx"
Returns only stations that have the monthly tag. Returns an empty list if the tag doesn't exist or no stations have it.
Including Archived Stations
Archived stations are excluded from the response by default. Pass include_archived=true to surface them — useful for admin views and audits.
curl -X GET "https://orchestrator.assemblyline.sh/api/v1/stations?include_archived=true" \
-H "api-key: al_xxxxxxxxxxxx" \
-H "api-secret: xxxxxxxxxxxxxxxx"
Archived stations carry a non-null archived_at timestamp on every response.
Errors
| Code | Description |
|---|---|
401 | Invalid or missing API credentials |
403 | API key lacks stations:read permission |