Pins
Pin management
List of pins
JSON object containing geographic position and orientation data
Pin visibility setting
URL of the relocalization reference photo
Instructions for scanning/relocalizing
Camera pose hint for AR relocalization
Internal server error
GET /api/pins HTTP/1.1
Accept: */*
[
{
"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"
}
]Creates a pin that is not associated with any specific zone. This allows pinning objects anywhere on the map without being restricted to defined zones.
Title of the pin
URL of the content associated with the pin
Type of content associated with the pin
Latitude coordinate (optional, can be derived from geoPose)
Longitude coordinate (optional, can be derived from geoPose)
Global pin created successfully
JSON object containing geographic position and orientation data
Pin visibility setting
URL of the relocalization reference photo
Instructions for scanning/relocalizing
Camera pose hint for AR relocalization
Invalid pin data
Failed to create pin
POST /api/pins HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 185
{
"title": "text",
"contentUrl": "https://example.com",
"contentType": "IMAGE",
"geoPose": {
"position": {
"lat": 1,
"lon": 1,
"h": 0
},
"angles": {
"yaw": 0,
"pitch": 0,
"roll": 0
}
},
"latitude": 1,
"longitude": 1
}{
"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"
}Deletes a global pin by ID and removes any associated uploaded files. This operation cascades to clean up related file records.
The ID of the pin to delete
Pin deleted successfully
Pin deleted successfullyID of the deleted pin
Number of associated uploaded files that were also deleted
Invalid pin ID or validation failed
Pin not found
Failed to delete pin
DELETE /api/pins?id=text HTTP/1.1
Accept: */*
{
"message": "Pin deleted successfully",
"deletedPinId": 1,
"deletedFilesCount": 1
}Retrieves a single pin by ID with map associations. MVP: Public access, no authentication required.
Pin ID
Pin retrieved successfully
JSON object containing geographic position and orientation data
Pin visibility setting
URL of the relocalization reference photo
Instructions for scanning/relocalizing
Camera pose hint for AR relocalization
Bad request
Unauthorized
Forbidden - pin not accessible due to visibility settings
Resource not found
Internal server error
GET /api/pins/{id} HTTP/1.1
Accept: */*
{
"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"
}Pin updated
JSON object containing geographic position and orientation data
Pin visibility setting
URL of the relocalization reference photo
Instructions for scanning/relocalizing
Camera pose hint for AR relocalization
Bad request
Internal server error
PUT /api/pins/{id} HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 90
{
"title": "text",
"contentUrl": "https://example.com",
"contentType": "IMAGE",
"gcpData": "text"
}{
"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"
}Marks a pin as visited for the authenticated user across all maps containing it. Returns updated progress for each map.
Bearer token authentication. Pass the session token obtained from /auth/sync.
Pin ID
Pin visit recorded
Map IDs where the visit was recorded
Bad request
Unauthorized
Resource not found
Internal server error
POST /api/pins/{id}/visit HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": true,
"visitedMaps": [
1
],
"progress": [
{
"mapId": 1,
"totalPins": 1,
"visitedPins": 1,
"completionPercentage": 1
}
]
}Updates the visibility setting of a pin (public, private, or friends).
Bearer token authentication. Pass the session token obtained from /auth/sync.
Pin ID
Visibility updated
JSON object containing geographic position and orientation data
Pin visibility setting
URL of the relocalization reference photo
Instructions for scanning/relocalizing
Camera pose hint for AR relocalization
Bad request
Unauthorized
Resource not found
Internal server error
PATCH /api/pins/{id}/visibility HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 23
{
"visibility": "public"
}{
"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"
}Updates the AR relocalization data for a pin, including the reference photo URL, scan instructions, and camera pose hint.
Bearer token authentication. Pass the session token obtained from /auth/sync.
Pin ID
Localization data updated
JSON object containing geographic position and orientation data
Pin visibility setting
URL of the relocalization reference photo
Instructions for scanning/relocalizing
Camera pose hint for AR relocalization
Bad request
Unauthorized
Resource not found
Internal server error
PATCH /api/pins/{id}/localization HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 163
{
"relocalizationPhotoUrl": "https://example.com",
"scanInstructions": "text",
"cameraPoseHint": {
"fov": 1,
"orientation": "portrait",
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}{
"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"
}Retrieves the blockchain sync status, transaction signature, explorer URL, and transaction history for a specific pin. Authentication required.
Dynamic authentication header. Required for blockchain endpoints and other authenticated operations.
Pin ID
Blockchain status retrieved successfully
Invalid pin ID
Unauthorized
Pin not found
Failed to fetch blockchain status
GET /api/pins/{id}/blockchain HTTP/1.1
X-Dynamic-User-Id: YOUR_API_KEY
Accept: */*
{
"pin": {
"id": 1,
"blockchainSignature": "text",
"blockchainTxUrl": "https://example.com",
"blockchainSyncedAt": "2026-01-01T00:00:00.000Z"
},
"transactions": [
{
"id": 1,
"entityType": "Zone",
"entityId": 1,
"signature": "text",
"network": "devnet",
"status": "pending",
"blockHeight": 1,
"createdAt": "2026-01-01T00:00:00.000Z"
}
]
}Last updated