Public API: an organisation's custom style, one billed map load per fetch (metered)
GET
/v1/styles/{handle}/{styleId}
const url = 'https://api.tareky.com/v1/styles/acme/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.tareky.com/v1/styles/acme/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”handle
required
string
Example
acmeThe organisation’s handle
styleId
required
string
The style id, with an optional .json
Header Parameters
Section titled “Header Parameters”x-access-key-id
string
Legacy key id (until its sunset)
Responses
Section titled “Responses”MapLibre style JSON
Media typeapplication/json
object
version
required
number
name
required
string
glyphs
required
string
sources
required
object
key
additional properties
object
type
required
string
key
additional properties
layers
required
Array<object>
object
id
required
string
type
required
string
key
additional properties
key
additional properties
any
Example
{ "version": 8}Rate limit or monthly quota exceeded; see Retry-After
Media typeapplication/json
object
error
required
object
code
required
Stable machine-readable code, e.g. quota_exceeded, no_route
string
message
required
string
status
required
integer
details
For invalid_request: the validation issues
docsUrl
required
string
requestId
string
Examplegenerated
{ "error": { "code": "example", "message": "example", "status": 1, "details": "example", "docsUrl": "example" }, "requestId": "example"}default
Section titled “default”Any other error, in the /v1 error envelope
Media typeapplication/json
object
error
required
object
code
required
Stable machine-readable code, e.g. quota_exceeded, no_route
string
message
required
string
status
required
integer
details
For invalid_request: the validation issues
docsUrl
required
string
requestId
string
Examplegenerated
{ "error": { "code": "example", "message": "example", "status": 1, "details": "example", "docsUrl": "example" }, "requestId": "example"}