v1.0
OpenAPI 3.0.2
MapTiler Service API
Client Libraries
MapTiler’s Upload API allows you to add new datasets or update existing ones from the command line. To make it easier, you can use the CLI tool to run the commands. See the complete guide: How to upload your data using API & CLI
Tip
If you’re working with JavaScript/TypeScript, we highly recommend to use this API via the Upload JS library. It has extra features and is much more comfortable to use.
MapTiler Service API
name of the file limited to 255 bytes
size in bytes
Specify output properties
curl https://service.maptiler.com/v1/datasets/ingest \
--request POST \
--header 'Content-Type: application/json' \
--data '{
"filename": "north-america.mbtiles",
"size": 723000000,
"supported_upload_types": [
"s3_multipart"
],
"output": {
"type": "raster_tileset"
}
}'
{
"id": "e3a507c3-f9dd-4786-8af3-b21f4ca2d9c8",
"document_id": null,
"state": "upload",
"filename": "north-america.mbtiles",
"size": 723000000,
"errors": null,
"progress": 0,
"upload_url": "https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsTeamDrives=true&upload_id=ABg5-UzOoBea-789qB46gXPK7gGIOoTt5rvcGfzdJSxf_iCJ98ysr0WT9asddb-CpBPWFiR_u0DnCWj3oiD9UErtTdVj3w"
}Dataset ingest
name of the file limited to 255 bytes
size in bytes
Specify output properties
curl https://service.maptiler.com/v1/datasets/123e4567-e89b-12d3-a456-426614174000/ingest \
--request POST \
--header 'Content-Type: application/json' \
--data '{
"filename": "north-america.mbtiles",
"size": 723000000,
"supported_upload_types": [
"s3_multipart"
],
"output": {
"type": "raster_tileset"
}
}'
{
"id": "e3a507c3-f9dd-4786-8af3-b21f4ca2d9c8",
"document_id": null,
"state": "upload",
"filename": "north-america.mbtiles",
"size": 723000000,
"errors": null,
"progress": 0,
"upload_url": "https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsTeamDrives=true&upload_id=ABg5-UzOoBea-789qB46gXPK7gGIOoTt5rvcGfzdJSxf_iCJ98ysr0WT9asddb-CpBPWFiR_u0DnCWj3oiD9UErtTdVj3w"
}Dataset ingest
curl https://service.maptiler.com/v1/datasets/ingest/123e4567-e89b-12d3-a456-426614174000
{
"id": "e3a507c3-f9dd-4786-8af3-b21f4ca2d9c8",
"document_id": null,
"state": "upload",
"filename": "north-america.mbtiles",
"size": 723000000,
"errors": null,
"progress": 0,
"upload_url": "https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsTeamDrives=true&upload_id=ABg5-UzOoBea-789qB46gXPK7gGIOoTt5rvcGfzdJSxf_iCJ98ysr0WT9asddb-CpBPWFiR_u0DnCWj3oiD9UErtTdVj3w"
}Dataset ingest
curl https://service.maptiler.com/v1/datasets/ingest/123e4567-e89b-12d3-a456-426614174000/cancel \
--request POST
{
"id": "e3a507c3-f9dd-4786-8af3-b21f4ca2d9c8",
"document_id": null,
"state": "upload",
"filename": "north-america.mbtiles",
"size": 723000000,
"errors": null,
"progress": 0,
"upload_url": "https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsTeamDrives=true&upload_id=ABg5-UzOoBea-789qB46gXPK7gGIOoTt5rvcGfzdJSxf_iCJ98ysr0WT9asddb-CpBPWFiR_u0DnCWj3oiD9UErtTdVj3w"
}Dataset ingest
curl https://service.maptiler.com/v1/datasets/ingest/123e4567-e89b-12d3-a456-426614174000/process \
--request POST \
--header 'Content-Type: application/json' \
--data '{
"upload_result": {
"type": "s3_multipart",
"parts": [
{
"part_id": 1,
"etag": "fad1c8150539"
},
{
"part_id": 2,
"etag": "94a6e2002464"
}
]
}
}'
{
"id": "e3a507c3-f9dd-4786-8af3-b21f4ca2d9c8",
"document_id": null,
"state": "upload",
"filename": "north-america.mbtiles",
"size": 723000000,
"errors": null,
"progress": 0,
"upload_url": "https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsTeamDrives=true&upload_id=ABg5-UzOoBea-789qB46gXPK7gGIOoTt5rvcGfzdJSxf_iCJ98ysr0WT9asddb-CpBPWFiR_u0DnCWj3oiD9UErtTdVj3w"
}Dataset ingest