Team
Add a domain for map tiles
Registers a web origin for the vector map tiles: scheme, host and the port when it is not the default, e.g. https://maps.example.com, or http://localhost:5173 while developing. A path or query is not part of an origin and is rejected. The origin can be used right away.
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-keystringheaderrequiredYour API key, sent in the x-api-key header.
Bodyapplication/json
domainstringrequiredResponses
The registered origin · application/json
teamCorsIdintegerdomainstring | nulluserIdinteger | nulllastUpdatedAtUtcstringNot an http or https origin
The team has already registered this origin