Get Station
GET /api/v1/stations/:id
Retrieves a single station by its ID, including its config.
Path Parameters
| Parameter | Type | Description |
|---|
id | string | The station's unique identifier |
Query Parameters
| Parameter | Type | Default | Description |
|---|
fields | string | all | Comma-separated field names |
Example Request
curl -X GET "https://orchestrator.assemblyline.sh/api/v1/stations/st_abc123" \
-H "api-key: al_xxxxxxxxxxxx" \
-H "api-secret: xxxxxxxxxxxxxxxx"
Response
{
"data": {
"id": "st_abc123",
"name": "Invoice Approval",
"description": "Validate and approve vendor invoices",
"short_code": "IA1",
"line": "IA",
"config": { "threshold": 10000 },
"dependencies": [],
"is_enabled": true,
"archived_at": null,
"tags": [
{ "id": "tag_abc123", "name": "monthly", "color": "#0075ca" }
],
"created_at": "2024-01-10T08:00:00Z"
}
}
Field Selection
Request only specific fields:
curl -X GET "https://orchestrator.assemblyline.sh/api/v1/stations/st_abc123?fields=id,name,config" \
-H "api-key: al_xxxxxxxxxxxx" \
-H "api-secret: xxxxxxxxxxxxxxxx"
Errors
| Code | Description |
|---|
401 | Invalid or missing API credentials |
403 | API key lacks stations:read permission |
404 | Station not found |
Not Found Response
{
"error": {
"code": "NOT_FOUND",
"message": "Station not found"
}
}