Maps
Map management, pin ordering, sharing, and visit tracking
Fetches all maps accessible to the authenticated user, including their pins, visit counts, and GCP details.
Bearer token authentication. Pass the session token obtained from /auth/sync.
Filter for public maps only
Filter for friends' public maps
List of maps
Unauthorized
Internal server error
GET /api/maps HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": 1,
"title": "text",
"description": "text",
"isPublic": true,
"coverImage": "text",
"latitude": 1,
"longitude": 1,
"userId": "text",
"pins": [
{
"pin": {
"id": 1,
"title": "text",
"latitude": 1,
"longitude": 1,
"geoPose": {},
"contentType": "APK",
"contentUrl": "text",
"localizationData": {
"trackingMode": "WORLD",
"worldmapURL": "https://example.com"
},
"zoneId": 1,
"gcpId": 1,
"userId": "text",
"visibility": "public",
"relocalizationPhotoUrl": "text",
"scanInstructions": "text",
"cameraPoseHint": {},
"blockchainSignature": "text",
"blockchainTxUrl": "text",
"blockchainSyncedAt": "2026-01-01T00:00:00.000Z",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
},
"order": 1
}
],
"_count": {
"visits": 1
},
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"deletedAt": "2026-01-01T00:00:00.000Z"
}
]Bearer token authentication. Pass the session token obtained from /auth/sync.
falseMap created
Bad request
Unauthorized
Internal server error
POST /api/maps HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 116
{
"title": "text",
"description": "text",
"isPublic": false,
"coverImage": "https://example.com",
"latitude": 1,
"longitude": 1
}{
"id": 1,
"title": "text",
"description": "text",
"isPublic": true,
"coverImage": "text",
"latitude": 1,
"longitude": 1,
"userId": "text",
"pins": [
{
"pin": {
"id": 1,
"title": "text",
"latitude": 1,
"longitude": 1,
"geoPose": {},
"contentType": "APK",
"contentUrl": "text",
"localizationData": {
"trackingMode": "WORLD",
"worldmapURL": "https://example.com"
},
"zoneId": 1,
"gcpId": 1,
"userId": "text",
"visibility": "public",
"relocalizationPhotoUrl": "text",
"scanInstructions": "text",
"cameraPoseHint": {},
"blockchainSignature": "text",
"blockchainTxUrl": "text",
"blockchainSyncedAt": "2026-01-01T00:00:00.000Z",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
},
"order": 1
}
],
"_count": {
"visits": 1
},
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"deletedAt": "2026-01-01T00:00:00.000Z"
}Bearer token authentication. Pass the session token obtained from /auth/sync.
Map ID
Map details
Bad request
Unauthorized
Resource not found
Internal server error
GET /api/maps/{id} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": 1,
"title": "text",
"description": "text",
"isPublic": true,
"coverImage": "text",
"latitude": 1,
"longitude": 1,
"userId": "text",
"pins": [
{
"pin": {
"id": 1,
"title": "text",
"latitude": 1,
"longitude": 1,
"geoPose": {},
"contentType": "APK",
"contentUrl": "text",
"localizationData": {
"trackingMode": "WORLD",
"worldmapURL": "https://example.com"
},
"zoneId": 1,
"gcpId": 1,
"userId": "text",
"visibility": "public",
"relocalizationPhotoUrl": "text",
"scanInstructions": "text",
"cameraPoseHint": {},
"blockchainSignature": "text",
"blockchainTxUrl": "text",
"blockchainSyncedAt": "2026-01-01T00:00:00.000Z",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
},
"order": 1
}
],
"_count": {
"visits": 1
},
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"deletedAt": "2026-01-01T00:00:00.000Z"
}Bearer token authentication. Pass the session token obtained from /auth/sync.
Map deleted
Bad request
Unauthorized
Resource not found
Internal server error
DELETE /api/maps/{id} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"message": "text",
"deletedPins": 1
}Bearer token authentication. Pass the session token obtained from /auth/sync.
Map updated
Bad request
Unauthorized
Resource not found
Internal server error
PATCH /api/maps/{id} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 115
{
"title": "text",
"description": "text",
"isPublic": true,
"coverImage": "https://example.com",
"latitude": 1,
"longitude": 1
}{
"id": 1,
"title": "text",
"description": "text",
"isPublic": true,
"coverImage": "text",
"latitude": 1,
"longitude": 1,
"userId": "text",
"pins": [
{
"pin": {
"id": 1,
"title": "text",
"latitude": 1,
"longitude": 1,
"geoPose": {},
"contentType": "APK",
"contentUrl": "text",
"localizationData": {
"trackingMode": "WORLD",
"worldmapURL": "https://example.com"
},
"zoneId": 1,
"gcpId": 1,
"userId": "text",
"visibility": "public",
"relocalizationPhotoUrl": "text",
"scanInstructions": "text",
"cameraPoseHint": {},
"blockchainSignature": "text",
"blockchainTxUrl": "text",
"blockchainSyncedAt": "2026-01-01T00:00:00.000Z",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
},
"order": 1
}
],
"_count": {
"visits": 1
},
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"deletedAt": "2026-01-01T00:00:00.000Z"
}Gets the authenticated user's completion progress for a map, including which pins have been visited.
Bearer token authentication. Pass the session token obtained from /auth/sync.
Map ID
Map progress
Bad request
Unauthorized
Resource not found
Internal server error
GET /api/maps/{id}/progress HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"mapId": 1,
"mapTitle": "text",
"totalPins": 1,
"visitedPins": 1,
"completionPercentage": 1,
"visitedPinIds": [
1
],
"pins": [
{
"pinId": 1,
"order": 1,
"title": "text",
"visited": true,
"visitedAt": "2026-01-01T00:00:00.000Z"
}
]
}Resets all visit records for a map. WARNING: This affects all users' progress for this map.
Bearer token authentication. Pass the session token obtained from /auth/sync.
Progress reset successfully
Bad request
Unauthorized
Resource not found
Internal server error
POST /api/maps/{id}/reset HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": true,
"deletedVisits": 1,
"message": "text"
}Bearer token authentication. Pass the session token obtained from /auth/sync.
0Pin added to map
Bad request
Unauthorized
Resource not found
Internal server error
POST /api/maps/{id}/pins HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"pinId": 1,
"order": 0
}{
"mapId": 1,
"pinId": 1,
"order": 1
}Bearer token authentication. Pass the session token obtained from /auth/sync.
Pin removed from map
Bad request
Unauthorized
Resource not found
Internal server error
DELETE /api/maps/{id}/pins?pinId=1 HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"message": "text"
}Bearer token authentication. Pass the session token obtained from /auth/sync.
Pin order updated
Bad request
Unauthorized
Resource not found
Internal server error
PATCH /api/maps/{id}/pins HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"pinId": 1,
"order": 1
}{
"mapId": 1,
"pinId": 1,
"order": 1
}Bearer token authentication. Pass the session token obtained from /auth/sync.
List of share records
Bad request
Unauthorized
Resource not found
Internal server error
GET /api/maps/{id}/share HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": 1,
"mapId": 1,
"userId": "text",
"canEdit": true,
"sharedAt": "2026-01-01T00:00:00.000Z"
}
]Bearer token authentication. Pass the session token obtained from /auth/sync.
falseMap shared successfully
Bad request
Unauthorized
Resource not found
Internal server error
POST /api/maps/{id}/share HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 33
{
"userId": "text",
"canEdit": false
}{
"id": 1,
"mapId": 1,
"userId": "text",
"canEdit": true,
"sharedAt": "2026-01-01T00:00:00.000Z"
}Bearer token authentication. Pass the session token obtained from /auth/sync.
Map unshared
Bad request
Unauthorized
Resource not found
Internal server error
DELETE /api/maps/{id}/share?userId=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"message": "text"
}Last updated