v2 Reference (Preview)Stations
Get station
Retrieve detailed information about a specific station including linked procedures and connection status.
API v2 Preview
The TofuPilot API v2.0 is currently in public preview and is subject to change as we stabilize until release (planned for Oct 2025).
Access
| API Key | Access Level | Description |
|---|---|---|
| User | Full | Users can read stations |
| Station | Unauthorized | Stations cannot read other stations |
Endpoint
GET
/v2/stations/{id}AuthorizationBearer <token>
API key for authentication. Use format: Bearer YOUR_API_KEY
In: header
Path Parameters
idstring
Unique identifier of the station to retrieve
Format
uuidResponse Body
from tofupilot.v2 import TofuPilot
# Initialize the TofuPilot client
client = TofuPilot()
# Execute the operation
result = client.stations.get(
id="550e8400-e29b-41d4-a716-446655440000"
)
# Handle response
print(result){
"id": "550e8400-e29b-41d4-a716-446655440000",
"identifier": "STA-A1B",
"name": "Assembly Station 1",
"image": "https://example.com/station-image.jpg",
"api_key": "550e8400...",
"procedures": [
{
"id": "550e8400-e29b-41d4-a716-446655440002",
"identifier": "PROC-001",
"name": "Assembly Test",
"runs_count": 42,
"deployment": {
"deployed_at": "2026-01-22T10:00:00Z",
"commit": {
"sha": "a1b2c3d4e5f6",
"message": "Update procedure",
"branch": "main"
},
"repository": {
"owner": "tofupilot",
"name": "procedures",
"provider": "github"
}
}
}
],
"connection_status": "connected",
"team": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string"
}
}{
"message": "Not found",
"code": "NOT_FOUND",
"issues": []
}{
"message": "Internal server error",
"code": "INTERNAL_SERVER_ERROR",
"issues": []
}How is this guide?