Map Download
This page describes how to download generated maps from our servers
1
Authenticate
POST /auth/v1/token?grant_type=password
POST /auth/v1/token?grant_type=passwordHeader
Value
{
"email": "[email protected]",
"password": "hunter2"
}POST <SUPABASE_URL>/auth/v1/token?grant_type=password
apikey: <SUPABASE_ANON_KEY>
Content-Type: application/json
{
"email": "[email protected]",
"password": "hunter2"
}{
"access_token": "eyJhbGciOiJIUzI1NiIs...",
"token_type": "bearer",
"expires_in": 3600,
"expires_at": 1711324800,
"refresh_token": "v1.MjQ3...",
"user": {
"id": "d0d8c19e-1b2a-4c3d-8e4f-5a6b7c8d9e0f",
"email": "[email protected]",
"role": "authenticated"
}
}2
List Maps
GET /rest/v1/map_requests
GET /rest/v1/map_requestsHeader
Value
Parameter
Value
Purpose
GET <SUPABASE_URL>/rest/v1/map_requests?select=*,map_results(*)&deleted_at=is.null&order=created_at.desc&limit=50&offset=0
apikey: <SUPABASE_ANON_KEY>
Authorization: Bearer <access_token>
Accept: application/json
Prefer: count=exact[
{
"id": 42,
"user_id": "d0d8c19e-1b2a-4c3d-8e4f-5a6b7c8d9e0f",
"workflow_id": "wf-abc-123",
"area_name": "Downtown Austin",
"status": "completed",
"percent_complete": 100,
"status_message": null,
"sw_lat": 30.26,
"sw_lon": -97.75,
"ne_lat": 30.28,
"ne_lon": -97.73,
"geometry_geojson": null,
"home_position": { "lat": 30.27, "lon": -97.74, "alt": 0 },
"created_at": "2026-03-20T14:30:00Z",
"started_at": "2026-03-20T14:31:00Z",
"completed_at": "2026-03-20T15:05:00Z",
"failed_at": null,
"deleted_at": null,
"error_message": null,
"area_km2": 1.25,
"org_id": null,
"map_results": {
"id": 99,
"request_id": 42,
"unique_id": "map-1710942300000",
"download_url": "https://storage.example.com/maps/map-1710942300000_Downtown_Austin.tar.gz",
"compressed_size_mb": 85.4,
"compressed_file": "map-1710942300000_Downtown_Austin.tar.gz",
"upload_path": "/maps/map-1710942300000_Downtown_Austin",
"checksum": "e3b0c44298fc1c149afbf4c8996fb924...",
"created_at": "2026-03-20T15:05:00Z"
}
},
{
"id": 41,
"workflow_id": "wf-def-456",
"area_name": "Lake Travis",
"status": "processing",
"percent_complete": 63,
"map_results": null
}
]Field
Description
3
Get Download Link for a Specific Map
GET /rest/v1/map_requests
GET /rest/v1/map_requestsParameter
Value
GET <SUPABASE_URL>/rest/v1/map_requests?select=area_name,map_results(download_url,compressed_size_mb,checksum)&workflow_id=eq.wf-abc-123&deleted_at=is.null
apikey: <SUPABASE_ANON_KEY>
Authorization: Bearer <access_token>
Accept: application/vnd.pgrst.object+json{
"area_name": "Downtown Austin",
"map_results": {
"download_url": "https://storage.example.com/maps/map-1710942300000_Downtown_Austin.tar.gz",
"compressed_size_mb": 85.4,
"checksum": "e3b0c44298fc1c149afbf4c8996fb924..."
}
}Complete Flow Summary
Expected filename format
Last updated
