TIC
POSThttps://lens-api.tic.io/team/tiles/cors

Registers a web origin for the vector map tiles, so pages served from it can load them. It can be used right away.

An origin is the scheme, the host and the port when it is not the default: https://maps.example.com, or http://localhost:5173 while developing. A path or a query is not part of an origin and is rejected. The response is the registered origin, with the teamCorsId to remove it later.

curl -X POST "https://lens-api.tic.io/team/tiles/cors" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "domain": "https://maps.example.com" }'

See Vector Maps for how the origins are used.

Authorization

x-api-keystringheaderrequired

Your API key, sent in the x-api-key header.

Bodyapplication/json

domainstringrequired

min length 1

Responses

The registered origin · application/json

teamCorsIdinteger

format: int32

domainstring | null
userIdinteger | null

format: int32

lastUpdatedAtUtcstring

format: date-time