Skip to content
getgeolens.com

Share Map Endpoint

POST
/maps/{map_id}/share/
curl --request POST \
--url https://example.com/api/maps/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/share/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "expires_at": "2026-04-15T12:00:00Z" }'

Create or retrieve a share token for a public map.

Community supports basic non-expiring share links. Non-null expiration requires GeoLens Enterprise.

map_id
required
Map Id
string format: uuid
Media type application/json
Any of:
ShareTokenRequest
object
expires_at
Any of:
string format: date-time
Example generated
{
"expires_at": "2026-04-15T12:00:00Z"
}

Successful Response

Media type application/json
ShareTokenResponse
object
token
required
Token

Raw token on create, hint on retrieve

string
share_url
Any of:
string
expires_at
Any of:
string format: date-time
is_active
Is Active
boolean
default: true
Example
{
"is_active": true
}

Bad request — invalid payload

Unauthorized — missing or invalid credentials

Forbidden — caller lacks write access

Not found

Conflict — resource state prevents the operation

Validation error

Internal server error