Get Station

GET /api/v1/stations/:id

Retrieves a single station by its ID, including its config.

Path Parameters

ParameterTypeDescription
idstringThe station's unique identifier

Query Parameters

ParameterTypeDefaultDescription
fieldsstringallComma-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

CodeDescription
401Invalid or missing API credentials
403API key lacks stations:read permission
404Station not found

Not Found Response

{
  "error": {
    "code": "NOT_FOUND",
    "message": "Station not found"
  }
}