Skip to content
getgeolens.com

Get Tile Token

GET
/tiles/token/{dataset_id}/
curl --request GET \
--url https://example.com/api/tiles/token/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/ \
--header 'Authorization: Bearer <token>'

Generate a tile token for a dataset.

For vector datasets: returns HMAC-signed token (sig, exp, scope, expires_in). For raster datasets: returns tile URL template and metadata.

Both responses include a discriminated kind field.

Public datasets can be accessed without authentication. Private/restricted datasets require authentication and RBAC checks.

dataset_id
required
Dataset Id
string format: uuid

Successful Response

Media type application/json
Any of:
VectorTileToken
object
kind
required
Kind
string
Allowed value: vector
sig
required
Sig
string
exp
required
Exp
integer
scope
required
Scope
string
expires_in
required
Expires In
integer
Example
{
"kind": "vector"
}

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}