REST API for as-built data from the RPD 35 robotic pile driving solution.
GET /as-built
Include your API key in the request header:
| Header | Description |
|---|---|
| X-API-Key | Your secret API key required |
| Parameter | Type | Description |
|---|---|---|
| start_epoch | number required | Start time as Unix epoch (seconds since 1970-01-01 UTC) |
| end_epoch | number optional | End time as Unix epoch (seconds since 1970-01-01 UTC). Defaults to now. |
| project | string optional | One authorized project name, such as cantaloupe. Omit to query all your projects. Other names return 404. |
| distance_units | string optional | Output unit for all distance fields. Default: ft |
The distance_units parameter accepts the following labels:
| Label | Unit |
|---|---|
| m | Meters |
| ft | Feet (international) — default |
| sft | Survey feet (US) |
| inch | Inches |
422 error with a descriptive message.
# Fetch piles installed on a single day (2026-01-15 00:00 PST) curl -H "X-API-Key: YOUR_KEY" \ "https://saranac.builtrobotics.com/as-built?start_epoch=1768464000" # Fetch piles installed in a date range (2026-01-01 to 2026-01-31 PST) curl -H "X-API-Key: YOUR_KEY" \ "https://saranac.builtrobotics.com/as-built?start_epoch=1767254400&end_epoch=1769846400" # Receive all distance fields in survey feet curl -H "X-API-Key: YOUR_KEY" \ "https://saranac.builtrobotics.com/as-built?start_epoch=1768464000&distance_units=sft"
Each object in the JSON array contains:
| Field | Default Unit | Description |
|---|---|---|
| project_id | Project identifier | |
| machine_id | Machine (robot) identifier | |
| pile_id | Unique pile identifier | |
| tracker_id | Tracker (rack) identifier from the install instruction | |
| pile_color | Pile coloration | |
| pile_cross_section | Cross-section designation | |
| pile_length | ft | Total pile length |
| timestamp_epoch | s | Installation timestamp (Unix epoch seconds) |
| recorded_easting | ft | Easting coordinate of pile head |
| recorded_northing | ft | Northing coordinate of pile head |
| recorded_elevation | ft | Elevation of pile head |
| proposed_grade | ft | Proposed ground elevation |
| embedment | ft | Embedded length (pile_length minus reveal) |
| reveal | ft | Length of pile above ground |
| drive_time | s | Time spent driving the pile |
| cycle_time | Full cycle time (minutes:seconds) | |
| pile_pitch | deg | Pitch angle of installed pile |
| pile_roll | deg | Roll angle of installed pile |
| twist | deg | Twist angle of installed pile |
| measured_grade | ft | Measured ground elevation |
| grade_diff | ft | Measured minus proposed grade |
[
{
"project_id": "12345678910",
"machine_id": "artemis",
"pile_id": "1234",
"tracker_id": "123",
"pile_color": "Red",
"pile_cross_section": "W6x9",
"pile_length": 12.5,
"timestamp_epoch": 1736966520.0,
"recorded_easting": 2145678.123,
"recorded_northing": 456789.456,
"recorded_elevation": 1234.567,
"proposed_grade": 1232.1,
"embedment": 10.2,
"reveal": 2.3,
"drive_time": 45.6,
"cycle_time": "3:22",
"pile_pitch": 0.12,
"pile_roll": -0.05,
"twist": 1.3,
"measured_grade": 1232.3,
"grade_diff": 0.2
}
]
| Status | Reason |
|---|---|
| 401 | Missing or invalid X-API-Key |
| 404 | Unknown project, or one your key is not authorized for |
| 422 | Invalid or missing query parameters, or an unrecognized distance_units label |
| 429 | Too many requests. The limit is 20 requests per minute, with a burst of 10. |
| 503 | The requested time range holds too much data to return in time. The JSON body has "error": "query_timeout". Request at most 30 days per call using start_epoch/end_epoch and page through the range. |
503 with a JSON query_timeout error and a Retry-After header, instead of a 500 or 504.tracker_id response field (the tracker a pile belongs to), positioned immediately after pile_id.sft (US survey feet) to ft (international feet).distance_units query parameter to override the output unit for all distance fields. Valid labels: m, ft, sft, inch.