Skip to main content
For the complete documentation index, see llms.txt.

Mapbox Tiling Service v2

Public Beta for Mapbox Tiling Service v2

Mapbox Tiling Service v2 and the Tilesets API v2 are in public beta. The API may change before general availability.

Mapbox Tiling Service v1

This page documents MTS v2, which uses the Tilesets API v2 (/tilesets/v2) to build tilesets from datasources. For tileset sources, changesets, and raster tilesets, see Mapbox Tiling Service v1.

Mapbox Tiling Service (MTS) v2 uses the Tilesets API v2 to create, edit, and publish tilesets from datasources. A tileset's recipe points at datasource branches, so the tileset can follow its data as it changes.

Before you publish, you can preview what a publish will cost. A quote shows you the compute units (CU) that publishing your recipe will use before you publish your tileset. For how Mapbox bills compute units, see Mapbox Tiling Service pricing.

Every recipe change produces a preview version of the tileset that you can inspect in a map on the Mapbox Console using the Data Workbench before you publish. Publishing runs an MTS job and moves the tileset's latest tag to the result, so your maps keep serving the last published version until the new one is ready.

Create a tileset​

post
https://api.mapbox.com/tilesets/v2/{account}.{id}
tilesets:write

Creates a tileset. The recipe is optional:

  • With a recipe, the recipe is validated and the tileset gets a preview tag.
  • Without a recipe, the tileset is created blank, with type vector and no tags. Add a recipe later with the Replace a tileset's recipe endpoint to be able to publish the tileset.

Creating a tileset doesn't publish it. To process the tileset so you can use it in a map, publish it.

Required parametersTypeDescription
accountstringThe Mapbox username of the account that will own the tileset.
idstringThe ID of the tileset within the account. Up to 32 characters. The only allowed characters are lowercase letters, numbers, -, and _.
access_tokenstringA valid Mapbox access token with the tilesets:write scope. The token must belong to account.

The request body is a JSON object with any of the following properties:

Optional body propertiesTypeDefaultDescription
namestring{id}A name for the tileset, up to 64 characters. Letters, numbers, spaces, -, _, and . are allowed.
descriptionstringNoneA description of the tileset, up to 500 characters.
attributionarray of objectsNoneUp to three attributions, each with a text and an optional link. The combined length of all text values must be 80 characters or fewer.
visibilitystringprivateWho can read the tileset: private (only your account) or public (any account with a valid access token).
recipeobjectNoneThe tileset's recipe. Every layer's source must be a datasource URI in the form mapbox://datasource/{account}/{datasource}/{branch}, and minzoom and maxzoom must be from 0 to 16.

Example request: Create a tileset​

$curl -X POST "https://api.mapbox.com/tilesets/v2/YOUR_MAPBOX_USERNAME.trees?access_token=YOUR_SECRET_MAPBOX_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Trees",
"description": "Street trees, refreshed nightly",
"visibility": "private",
"attribution": [
{ "text": "City open data", "link": "https://example.com/open-data" }
],
"recipe": {
"version": 1,
"layers": {
"trees": {
"source": "mapbox://datasource/YOUR_MAPBOX_USERNAME/trees",
"minzoom": 12,
"maxzoom": 15
}
}
}
}'

Response: Create a tileset​

If the tileset is created, the response has an HTTP 201 Created status and contains the tileset object. If a tileset with this ID already exists, the response is an HTTP 409 Conflict error. If the recipe isn't valid, the response is an HTTP 422 Unprocessable Entity error with an errors array that lists each problem.

Example response: Create a tileset​

{
"tilesetId": "penny.trees",
"owner": "penny",
"name": "Trees",
"description": "Street trees, refreshed nightly",
"attribution": [
{ "text": "City open data", "link": "https://example.com/open-data" }
],
"type": "vector",
"visibility": "private",
"created": "2026-07-15T00:00:00.000Z",
"modified": "2026-07-15T00:00:00.000Z",
"tags": {
"preview": {
"version": "aaaabbbbccccdddd",
"modified": "2026-07-15T00:00:00.000Z"
}
}
}

Retrieve a tileset​

get
https://api.mapbox.com/tilesets/v2/{account}.{id}
tilesets:read

Retrieves a tileset's properties and tags. The recipe isn't included; to get it, use the Retrieve a tileset's recipe endpoint.

A private tileset can only be retrieved by its owner. Other accounts receive an HTTP 404 Not Found error, the same as for a tileset that doesn't exist.

Required parametersTypeDescription
accountstringThe Mapbox username of the account that owns the tileset.
idstringThe ID of the tileset within the account.
access_tokenstringA valid Mapbox access token with the tilesets:read scope.

Example request: Retrieve a tileset​

$curl "https://api.mapbox.com/tilesets/v2/YOUR_MAPBOX_USERNAME.trees?access_token=YOUR_SECRET_MAPBOX_ACCESS_TOKEN"

Response: Retrieve a tileset​

If the request is successful, the response contains a tileset object with the following properties:

PropertyTypeDescription
tilesetIdstringThe tileset ID, in the form {account}.{id}.
ownerstringThe account that owns the tileset.
namestringThe name of the tileset.
descriptionstringThe description of the tileset.
attributionarray of objectsThe tileset's attributions, each with a text and an optional link.
typestringThe type of tileset. Always vector.
visibilitystringprivate or public.
createdstringWhen the tileset was created, as an ISO 8601 timestamp.
modifiedstringWhen the tileset was last changed, as an ISO 8601 timestamp. Changing the tileset's properties or recipe, deleting its recipe, and publishing it all update it.
tagsobjectThe tileset's tags, by name. Each tag has a version (the version the tag points at) and a modified timestamp (when the tag last moved). Empty or absent if the tileset has never had a recipe.
tags.previewobjectThe current preview of the recipe.
tags.latestobjectThe most recent successful publish. Absent until the tileset is published for the first time.
metadataobjectYour own metadata for the tileset, if you set any with the Update tileset metadata endpoint.

Example response: Retrieve a tileset​

In this example, tags.preview and tags.latest point at different versions, so the tileset has changes that aren't published yet.

{
"tilesetId": "penny.trees",
"owner": "penny",
"name": "Trees",
"description": "Street trees, refreshed nightly",
"attribution": [
{ "text": "City open data", "link": "https://example.com/open-data" }
],
"type": "vector",
"visibility": "private",
"created": "2026-07-15T00:00:00.000Z",
"modified": "2026-08-02T00:00:00.000Z",
"tags": {
"preview": {
"version": "aaaabbbbccccdddd",
"modified": "2026-08-02T00:00:00.000Z"
},
"latest": {
"version": "def4567890123abc",
"modified": "2026-07-15T00:00:00.000Z"
}
}
}

List tilesets​

get
https://api.mapbox.com/tilesets/v2/{account}
tilesets:list

Lists the V2 tilesets that belong to an account, most recently modified first. Results are returned in pages; see Pagination.

Required parametersTypeDescription
accountstringThe Mapbox username of the account whose tilesets to list.
access_tokenstringA valid Mapbox access token with the tilesets:list scope. The token must belong to account.
Optional parametersTypeDefaultDescription
typestringNone (all types)Only list tilesets of this type. The only type is vector.
visibilitystringNone (both)Only list public or private tilesets.
statusstringNone (both)published lists tilesets that have a latest tag. unpublished lists tilesets that don't.
sortbystringmodifiedSort by the created or modified timestamp.
orderbystringdescSort in ascending (asc) or descending (desc) order.
limitinteger100The maximum number of tilesets to return, from 1 to 500.
startstringNone (first page)The cursor for the next page of results, taken from the Link header of the previous response. See Pagination.

Example request: List tilesets​

$curl "https://api.mapbox.com/tilesets/v2/YOUR_MAPBOX_USERNAME?status=published&limit=25&access_token=YOUR_SECRET_MAPBOX_ACCESS_TOKEN"

Response: List tilesets​

If the request is successful, the response is an array of tileset objects.

Example response: List tilesets​

[
{
"tilesetId": "penny.trees",
"owner": "penny",
"name": "Trees",
"description": "Street trees, refreshed nightly",
"attribution": [
{ "text": "City open data", "link": "https://example.com/open-data" }
],
"type": "vector",
"visibility": "private",
"created": "2026-07-15T00:00:00.000Z",
"modified": "2026-08-02T00:00:00.000Z",
"tags": {
"preview": {
"version": "aaaabbbbccccdddd",
"modified": "2026-08-02T00:00:00.000Z"
},
"latest": {
"version": "def4567890123abc",
"modified": "2026-07-15T00:00:00.000Z"
}
}
}
]

Pagination​

Results are returned in pages. When more results are available, the response includes a Link header with a URL for the next page:

Link: <https://api.mapbox.com/tilesets/v2/penny?limit=25&start=eyJrIjoidHJlZXMifQ&access_token=YOUR_MAPBOX_ACCESS_TOKEN>; rel="next"

To get every result, request the rel="next" URL from each response until a response has no Link header. Treat the start value as opaque: don't build or change it. If you send a start value that isn't valid, the response is an HTTP 422 Unprocessable Entity error.

The List publish jobs for a tileset and List publish jobs for an account endpoints are paginated the same way.

Update tileset metadata​

patch
https://api.mapbox.com/tilesets/v2/{account}.{id}
tilesets:write

Updates one or more of a tileset's properties. Only the properties in the request body change. To change the recipe, use the Replace a tileset's recipe endpoint.

Required parametersTypeDescription
accountstringThe Mapbox username of the account that owns the tileset.
idstringThe ID of the tileset within the account.
access_tokenstringA valid Mapbox access token with the tilesets:write scope. The token must belong to account.

The request body is a JSON object with at least one of the following properties. Any other property, including recipe, returns an HTTP 422 Unprocessable Entity error.

Optional body propertiesTypeDescription
namestringA name for the tileset, up to 64 characters. Letters, numbers, spaces, -, _, and . are allowed.
descriptionstringA description of the tileset, up to 500 characters.
attributionarray of objectsUp to three attributions, each with a text and an optional link. The combined length of all text values must be 80 characters or fewer.
visibilitystringprivate or public.
metadataobjectYour own metadata for the tileset. Replaces any metadata you set before. You can't use keys that start with mapbox:, which are reserved.

Example request: Update tileset metadata​

$curl -X PATCH "https://api.mapbox.com/tilesets/v2/YOUR_MAPBOX_USERNAME.trees?access_token=YOUR_SECRET_MAPBOX_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Trees 2026",
"visibility": "public",
"metadata": { "source": "city-open-data", "refresh": "nightly" }
}'

Response: Update tileset metadata​

If the request is successful, the response contains the updated tileset object.

Example response: Update tileset metadata​

{
"tilesetId": "penny.trees",
"owner": "penny",
"name": "Trees 2026",
"description": "Street trees, refreshed nightly",
"attribution": [
{ "text": "City open data", "link": "https://example.com/open-data" }
],
"type": "vector",
"visibility": "public",
"metadata": { "source": "city-open-data", "refresh": "nightly" },
"created": "2026-07-15T00:00:00.000Z",
"modified": "2026-08-03T00:00:00.000Z",
"tags": {
"preview": {
"version": "aaaabbbbccccdddd",
"modified": "2026-08-02T00:00:00.000Z"
},
"latest": {
"version": "def4567890123abc",
"modified": "2026-07-15T00:00:00.000Z"
}
}
}

Delete a tileset​

delete
https://api.mapbox.com/tilesets/v2/{account}.{id}
tilesets:write

Permanently deletes a tileset. Maps that use the tileset stop receiving its tiles. The datasources the recipe references aren't affected.

Required parametersTypeDescription
accountstringThe Mapbox username of the account that owns the tileset.
idstringThe ID of the tileset within the account.
access_tokenstringA valid Mapbox access token with the tilesets:write scope. The token must belong to account.

Example request: Delete a tileset​

$curl -X DELETE "https://api.mapbox.com/tilesets/v2/YOUR_MAPBOX_USERNAME.trees?access_token=YOUR_SECRET_MAPBOX_ACCESS_TOKEN"

Response: Delete a tileset​

If the tileset is deleted, the response has an HTTP 204 No Content status and no body.

Retrieve a tileset's recipe​

get
https://api.mapbox.com/tilesets/v2/{account}.{id}/recipe
tilesets:read

Retrieves a tileset's recipe, as you wrote it, and the preview version it resolves to now. Only the tileset's owner can retrieve its recipe.

Required parametersTypeDescription
accountstringThe Mapbox username of the account that owns the tileset.
idstringThe ID of the tileset within the account.
access_tokenstringA valid Mapbox access token with the tilesets:read scope. The token must belong to account.

Example request: Retrieve a tileset's recipe​

$curl "https://api.mapbox.com/tilesets/v2/YOUR_MAPBOX_USERNAME.trees/recipe?access_token=YOUR_SECRET_MAPBOX_ACCESS_TOKEN"

Response: Retrieve a tileset's recipe​

If the request is successful, the response contains the following properties. If the tileset has no recipe, the response is an HTTP 404 Not Found error.

PropertyTypeDescription
recipeobjectThe recipe.
versionstringThe preview version the recipe resolves to. The same as the tileset's tags.preview.version.

Example response: Retrieve a tileset's recipe​

{
"recipe": {
"version": 1,
"layers": {
"trees": {
"source": "mapbox://datasource/penny/trees",
"minzoom": 12,
"maxzoom": 15
}
}
},
"version": "aaaabbbbccccdddd"
}

Replace a tileset's recipe​

put
https://api.mapbox.com/tilesets/v2/{account}.{id}/recipe
tilesets:write

Replaces a tileset's recipe. The request body is the complete new recipe, not only the parts that change.

The recipe is validated and its datasource branches are resolved. The result is a new preview version, and the tileset's preview tag moves to it. The published latest version isn't affected: to publish the change, publish the tileset.

Required parametersTypeDescription
accountstringThe Mapbox username of the account that owns the tileset.
idstringThe ID of the tileset within the account.
access_tokenstringA valid Mapbox access token with the tilesets:write scope. The token must belong to account.

The request body is a recipe. For Tilesets API v2, every layer's source must be a datasource URI in the form mapbox://datasource/{account}/{datasource}/{branch}, and each layer's minzoom and maxzoom must be from 0 to 16.

Example request: Replace a tileset's recipe​

$curl -X PUT "https://api.mapbox.com/tilesets/v2/YOUR_MAPBOX_USERNAME.trees/recipe?access_token=YOUR_SECRET_MAPBOX_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"version": 1,
"layers": {
"trees": {
"source": "mapbox://datasource/YOUR_MAPBOX_USERNAME/trees",
"minzoom": 12,
"maxzoom": 16
}
}
}'

Response: Replace a tileset's recipe​

If the request is successful, the response contains the new recipe and its preview version, in the same format as the Retrieve a tileset's recipe endpoint. If the recipe isn't valid, the response is an HTTP 422 Unprocessable Entity error with an errors array that lists each problem.

Example response: Replace a tileset's recipe​

{
"recipe": {
"version": 1,
"layers": {
"trees": {
"source": "mapbox://datasource/penny/trees",
"minzoom": 12,
"maxzoom": 16
}
}
},
"version": "bbbbccccddddeeee"
}

Delete a tileset's recipe​

delete
https://api.mapbox.com/tilesets/v2/{account}.{id}/recipe
tilesets:write

Deletes a tileset's recipe, its preview tag, and its preview versions. The tileset returns to the state of a tileset created without a recipe.

The published latest version isn't affected, so maps that use the tileset keep receiving its published tiles. You can't publish the tileset again until you add a new recipe.

Required parametersTypeDescription
accountstringThe Mapbox username of the account that owns the tileset.
idstringThe ID of the tileset within the account.
access_tokenstringA valid Mapbox access token with the tilesets:write scope. The token must belong to account.

Example request: Delete a tileset's recipe​

$curl -X DELETE "https://api.mapbox.com/tilesets/v2/YOUR_MAPBOX_USERNAME.trees/recipe?access_token=YOUR_SECRET_MAPBOX_ACCESS_TOKEN"

Response: Delete a tileset's recipe​

If the recipe is deleted, or the tileset had no recipe, the response has an HTTP 204 No Content status and no body.

Validate a recipe​

put
https://api.mapbox.com/tilesets/v2/validateRecipe
tilesets:write

Checks whether a recipe is valid for your account, without saving it or changing any tileset. Use it to check a recipe before you create a tileset or replace a tileset's recipe.

Required parametersTypeDescription
access_tokenstringA valid Mapbox access token with the tilesets:write scope.
Optional parametersTypeDefaultDescription
accept_invalid_sourcesbooleanfalseIf true, datasource URIs that the API can't read produce warnings instead of making the recipe invalid.

The request body is the recipe to validate.

Example request: Validate a recipe​

$curl -X PUT "https://api.mapbox.com/tilesets/v2/validateRecipe?access_token=YOUR_SECRET_MAPBOX_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"version": 1,
"layers": {
"trees": {
"source": "mapbox://datasource/YOUR_MAPBOX_USERNAME/trees",
"minzoom": 12,
"maxzoom": 18
}
}
}'

Response: Validate a recipe​

The response has an HTTP 200 OK status whether the recipe is valid. It contains the following properties:

PropertyTypeDescription
validbooleantrue if the recipe is valid.
errorsarray of stringsEach problem with the recipe. Only present if valid is false.

Example response: Validate a recipe​

{
"valid": false,
"errors": ["layers.trees.maxzoom must be less than or equal to 16"]
}

Run a quote on the publish​

post
https://api.mapbox.com/tilesets/v2/{account}.{id}/quote
tilesets:read

Estimates how many compute units (CU) publishing the tileset's recipe will use. A quote doesn't publish anything, change the tileset, or cost anything. The request has no body.

Use the quote's id to make sure the publish you run is the one you quoted. See Publish a tileset.

Required parametersTypeDescription
accountstringThe Mapbox username of the account that owns the tileset.
idstringThe ID of the tileset within the account.
access_tokenstringA valid Mapbox access token with the tilesets:read scope. The token must belong to account.

Example request: Run a quote on the publish​

$curl -X POST "https://api.mapbox.com/tilesets/v2/YOUR_MAPBOX_USERNAME.trees/quote?access_token=YOUR_SECRET_MAPBOX_ACCESS_TOKEN"

Response: Run a quote on the publish​

The first quote for a recipe can take a moment to compute. The response's status tells you what to do next:

HTTP statusstatusWhat it means
202 AcceptedplanningThe quote is still being computed. Wait retry_after_ms milliseconds (also sent in the Retry-After header, in seconds), then send the same request again.
200 OKreadyThe quote is ready. cu is the estimated compute units, rounded to three decimals, and id identifies the quote.
200 OKno_workThe last successful publish already covers the recipe, so publishing would do nothing. cu is 0.
PropertyTypeDescription
statusstringplanning, ready, or no_work.
cunumberThe estimated compute units for the publish. Present when status is ready or no_work.
idstringThe ID of the quote. Present when status is ready. Treat it as opaque: any change to the recipe or its data gives a new ID.
retry_after_msintegerHow long to wait before retrying, in milliseconds. Present when status is planning.
messagestringWhy there's nothing to publish. Present when status is no_work.

Example response: Run a quote on the publish​

{
"status": "ready",
"cu": 4.213,
"id": "a3f5c0dea3f5c0dea3f5c0dea3f5c0dea3f5c0dea3f5c0dea3f5c0dea3f5c0de"
}

Publish a tileset​

post
https://api.mapbox.com/tilesets/v2/{account}.{id}/publish
tilesets:write

Starts a publish job that builds tiles from the tileset's recipe. Before the job starts, the recipe is validated again and its datasource branches are resolved, so the job uses the data the branches point at now. When the job succeeds, the tileset's latest tag moves to the new version.

The request has no body. The response only confirms that the job was submitted: to follow its progress, retrieve the publish job until its stage is success or failed.

Required parametersTypeDescription
accountstringThe Mapbox username of the account that owns the tileset.
idstringThe ID of the tileset within the account.
access_tokenstringA valid Mapbox access token with the tilesets:write scope. The token must belong to account.
Optional headersDescription
If-MatchThe id of a quote, in double quotes, such as "a3f5c0de…". The tileset is only published if the quote still describes this publish. If the recipe or its data changed, or the tileset was published, since the quote, the response is an HTTP 412 Precondition Failed error and nothing is published. Request a new quote and try again.

Example request: Publish a tileset​

$curl -X POST "https://api.mapbox.com/tilesets/v2/YOUR_MAPBOX_USERNAME.trees/publish?access_token=YOUR_SECRET_MAPBOX_ACCESS_TOKEN" \
-H 'If-Match: "a3f5c0dea3f5c0dea3f5c0dea3f5c0dea3f5c0dea3f5c0dea3f5c0dea3f5c0de"'

Response: Publish a tileset​

HTTP statusWhat it means
202 AcceptedA publish job was submitted. jobId is the job's ID.
200 OKThe recipe is already published, so no job was submitted and nothing changed. jobId is null, and version is the version the latest tag already points at. To find this out without using a publish request, quote the publish first.
PropertyTypeDescription
messagestringA description of the result.
jobIdstring or nullThe ID of the publish job, or null if there was nothing to publish.
versionstringThe version the latest tag points at. Only present if there was nothing to publish.

Example response: Publish a tileset​

{
"message": "Processing penny.trees",
"jobId": "cl4fj2hkw0001s7q9d2yh7xnl"
}

Retrieve a publish job​

get
https://api.mapbox.com/tilesets/v2/{account}.{id}/jobs/{job_id}
tilesets:read

Retrieves a publish job. Use it to check whether a publish has finished. Only the tileset's owner can retrieve its jobs.

Required parametersTypeDescription
accountstringThe Mapbox username of the account that owns the tileset.
idstringThe ID of the tileset within the account.
job_idstringThe ID of the job, from the Publish a tileset response.
access_tokenstringA valid Mapbox access token with the tilesets:read scope. The token must belong to account.

Example request: Retrieve a publish job​

$curl "https://api.mapbox.com/tilesets/v2/YOUR_MAPBOX_USERNAME.trees/jobs/cl4fj2hkw0001s7q9d2yh7xnl?access_token=YOUR_SECRET_MAPBOX_ACCESS_TOKEN"

Response: Retrieve a publish job​

If the request is successful, the response contains a job object with the following properties:

PropertyTypeDescription
idstringThe ID of the job.
stagestringWhere the job is: queued (waiting to start), processing, success, failed, or superseded (replaced by a newer publish of the same tileset before it started). success, failed, and superseded are final.
tilesetIdstringThe ID of the tileset.
errorsarray of stringsErrors from the job, if any. See MTS errors.
warningsarray of stringsWarnings from the job, if any. See MTS warnings.
createdintegerWhen the job was created, in milliseconds since the Unix epoch.
created_nicestringWhen the job was created, as a human-readable string.
completedinteger or nullWhen the job finished, in milliseconds since the Unix epoch. null until the job finishes.
publishedintegerWhen the job was submitted, in milliseconds since the Unix epoch.
published_by_clientstringWhat submitted the job: api, studio, or dataworkbench.
filesizeintegerThe total size of the source data processed, in bytes.
cunumberThe compute units the job used, once processing statistics are available.
recipeobjectThe recipe the job processed. Each datasource URI is pinned to the version of the data that was used.
layer_statsobjectStatistics about each layer in the finished tileset. See the MTS v1 job reference for the fields.
tileset_precisionsobjectThe area processed at each precision tier, in square kilometers.

Example response: Retrieve a publish job​

{
"id": "cl4fj2hkw0001s7q9d2yh7xnl",
"stage": "success",
"tilesetId": "penny.trees",
"errors": [],
"warnings": [],
"created": 1785628800000,
"created_nice": "Sun Aug 02 2026 00:00:00 GMT+0000 (Coordinated Universal Time)",
"completed": 1785629400000,
"published": 1785628800000,
"published_by_client": "api",
"filesize": 1048576,
"cu": 1.25,
"recipe": {
"version": 1,
"layers": {
"trees": {
"source": "mapbox://datasource/penny/trees/812094471182364207",
"minzoom": 12,
"maxzoom": 15
}
}
}
}

List publish jobs for a tileset​

get
https://api.mapbox.com/tilesets/v2/{account}.{id}/jobs
tilesets:read

Lists a tileset's publish jobs. Results are returned in pages; see Pagination. Only the tileset's owner can list its jobs.

Required parametersTypeDescription
accountstringThe Mapbox username of the account that owns the tileset.
idstringThe ID of the tileset within the account.
access_tokenstringA valid Mapbox access token with the tilesets:read scope. The token must belong to account.
Optional parametersTypeDefaultDescription
stagestringNone (all stages)Only list jobs in this stage, such as failed.
orderbystringdescList jobs oldest first (asc) or newest first (desc).
limitinteger100The maximum number of jobs to return, from 1 to 500.
startstringNone (first page)The cursor for the next page of results, taken from the Link header of the previous response. See Pagination.

Example request: List publish jobs for a tileset​

$curl "https://api.mapbox.com/tilesets/v2/YOUR_MAPBOX_USERNAME.trees/jobs?stage=failed&access_token=YOUR_SECRET_MAPBOX_ACCESS_TOKEN"

Response: List publish jobs for a tileset​

If the request is successful, the response is an array of job objects. If the tileset has no jobs that match, the response is an HTTP 404 Not Found error, not an empty array.

Example response: List publish jobs for a tileset​

[
{
"id": "cl4fj2hkw0001s7q9d2yh7xnl",
"stage": "success",
"tilesetId": "penny.trees",
"errors": [],
"warnings": [],
"created": 1785628800000,
"created_nice": "Sun Aug 02 2026 00:00:00 GMT+0000 (Coordinated Universal Time)",
"completed": 1785629400000,
"published": 1785628800000,
"published_by_client": "api",
"filesize": 1048576,
"cu": 1.25
}
]

List publish jobs for an account​

get
https://api.mapbox.com/tilesets/v2/{account}/jobs
tilesets:read

Lists the publish jobs for all an account's Tilesets API v2 tilesets, newest first. Results are returned in pages; see Pagination. Jobs for tilesets created with the Mapbox Tiling Service v1 aren't included.

Required parametersTypeDescription
accountstringThe Mapbox username of the account whose jobs to list.
access_tokenstringA valid Mapbox access token with the tilesets:read scope. The token must belong to account.
Optional parametersTypeDefaultDescription
stagestringNone (all stages)Only list jobs in this stage, such as processing.
orderbystringdescList jobs oldest first (asc) or newest first (desc).
limitinteger100The maximum number of jobs to return, from 1 to 500.
startstringNone (first page)The cursor for the next page of results, taken from the Link header of the previous response. See Pagination.

Example request: List publish jobs for an account​

$curl "https://api.mapbox.com/tilesets/v2/YOUR_MAPBOX_USERNAME/jobs?stage=processing&access_token=YOUR_SECRET_MAPBOX_ACCESS_TOKEN"

Response: List publish jobs for an account​

If the request is successful, the response is an array of job objects, each with an account property. If the account has no jobs that match, the array is empty.

Example response: List publish jobs for an account​

[
{
"id": "cl4fj2hkw0001s7q9d2yh7xnl",
"stage": "success",
"tilesetId": "penny.trees",
"account": "penny",
"errors": [],
"created": 1785628800000,
"completed": 1785629400000,
"published_by_client": "api",
"filesize": 1048576,
"cu": 1.25
}
]

View the global publish queue​

put
https://api.mapbox.com/tilesets/v2/queue
tilesets:read

Returns how many publish jobs, across all Mapbox accounts, are waiting to start. A long queue means your publish may take longer to start.

Required parametersTypeDescription
access_tokenstringA valid Mapbox access token with the tilesets:read scope.

Example request: View the global publish queue​

$curl -X PUT "https://api.mapbox.com/tilesets/v2/queue?access_token=YOUR_SECRET_MAPBOX_ACCESS_TOKEN"

Response: View the global publish queue​

If the request is successful, the response contains a total property: the number of jobs in the queued stage.

Example response: View the global publish queue​

{
"total": 4
}

Tilesets API v2 errors​

Error responses contain a message property describing the problem. Errors about recipes also contain an errors array, with one entry for each problem.

HTTP status codeResponse body messageDescription
400VariesA query parameter has a value that isn't allowed, such as visibility=everyone.
400If-Match must be a single quote id returned by the quote endpoint, in double quotes.The If-Match header on a publish isn't a single quote ID in double quotes.
401VariesThe access token is missing or isn't valid.
403This API requires a token with {scope} scope.The access token needs the specified scope.
404Tileset not foundThe tileset doesn't exist, is private and belongs to another account, or the request is for the owner only and the token belongs to another account.
404Recipe does not exist for this tilesetThe tileset has no recipe.
409Tileset {tileset_id} already existsYou tried to create a tileset that already exists.
412The quote no longer matches this tileset. Request a new quote and publish again.The quote in If-Match no longer describes the publish. Nothing was published. Request a new quote and try again.
422Recipe is invalid.The recipe isn't valid. The errors array lists each problem.
422Tileset {tileset_id} has no recipe. Add a recipe before publishing.You tried to publish or quote a tileset that has no recipe.
422VariesThe tileset ID or a request body property isn't valid, or a start cursor isn't valid.
429Too Many RequestsYou have exceeded the rate limit, or your account has reached its limit of publish jobs running at the same time.
503VariesA quote couldn't be produced or checked right now. Nothing was published. Try again shortly.

Tilesets API v2 restrictions and limits​

Requests are rate limited per account. The endpoints in each row of the following table share one limit: for example, creating, updating, and deleting tilesets together count toward 100 requests per minute. If you exceed a limit, you receive an HTTP 429 Too Many Requests error.

Tilesets API v2 endpointRequests per minute
Retrieve a tileset, List tilesets, and the jobs and queue endpoints3,000
Retrieve a tileset's recipe3,000
Create, update, or delete a tileset100
Replace, delete, or validate a recipe100
Run a quote on the publish75
Publish a tileset2
If you require a higher rate limit, contact us.

The Tilesets API v2 also has the following limits:

LimitValue
Tileset ID{account}.{id}, where {id} is up to 32 characters: lowercase letters, numbers, -, and _.
Tileset nameUp to 64 characters.
Tileset descriptionUp to 500 characters.
AttributionUp to three entries, with up to 80 characters of text in total.
Recipe layer sourcesDatasource URIs only.
Recipe layer zoom levels0 to 16.
List page sizeUp to 500 results per page.
Was this page helpful?