API Reference (v2)Stations
Get station
Retrieve detailed station information including linked procedures, connection status, and recent activity.
Access
| API Key | Access Level | Description |
|---|---|---|
| User | Unauthorized | Users cannot read stations |
| Station | Full | Stations can read 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
Response Body
from tofupilot.v2 import TofuPilot
# Initialize the TofuPilot client
client = TofuPilot()
# Execute the operation
result = client.stations.get(
id="string"
)
# Handle response
print(result){
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Assembly Station 1",
"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",
"gitlab_project_id": 12345
}
}
}
],
"organization_slug": "my-org",
"connection_status": "connected",
"team": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string"
}
}{
"message": "Unauthorized",
"code": "UNAUTHORIZED",
"issues": []
}{
"message": "Not found",
"code": "NOT_FOUND",
"issues": []
}{
"message": "Internal server error",
"code": "INTERNAL_SERVER_ERROR",
"issues": []
}How is this guide?