STADION Ai Systems

API Documentation

API Overview

Base URL

https://web-production-5f56.up.railway.app/api/

Authentication

All API requests require an API key in the header:

X-API-Key: your_api_key_here

Find your API key in Workspace → Dashboard tab.

Example: Process a Survey

POST /api/process
# Upload and process a survey document
curl -X POST \
  https://web-production-5f56.up.railway.app/api/process \
  -H "X-API-Key: your_api_key" \
  -F "file=@survey.pdf"

Response

{
  "job_id": "abc123",
  "status": "processing",
  "message": "Survey queued for processing"
}

Rate Limits & Error Codes

Rate Limits

  • API requests: 60/minute
  • File uploads: 10/minute
  • Downloads: 30/minute

Error Codes

  • 400 — Bad request (invalid input)
  • 401 — Unauthorized (missing/invalid API key)
  • 403 — Forbidden (tier limit reached)
  • 404 — Not found
  • 429 — Rate limit exceeded
  • 500 — Server error
  • 501 — Feature coming soon

Output Formats

DXF — AutoCAD/Civil 3DAvailable
PNG — Preview imageAvailable
Closure Report — Quality metricsAvailable
GeoJSON — Web/GISPrecision+
KML — Google EarthPrecision+
Shapefile — ArcGIS/QGISPrecision+
CSV — SpreadsheetPrecision+

Note: All coordinates are in CAD local feet (not geographic lat/lon). Apply georeferencing externally for GIS map display.