Managing maps using the Admin API
This article provides an overview of the Admin API for uploading and management of tilesets. Both these APIs require secure authentication, provided by tokens which can be found in the credentials section of your account.
What does the Admin API do?
If you want to add new tilesets, update them, change their metadata, or delete them, you can now do so without opening a browser. The new API can be accessed at https://service.maptiler.com/v1
. The API specification for it is located on the MapTiler API documentation Page.
All of the requests to the API have to be authorized using the secure token that can be obtained from your account web page. More information on authentication and tokens can be found on the MapTiler Cloud authentication documentation page.
Using tokens for secure authentication
Navigate to the Credentials section of your Account and click on the create new credentials if you have not done so yet.
After creating the credentials, you will be able to copy the token:
Using the API
You can send your requests to the API using any API client or even curl. Make sure you set the Authorization
header in the form of Token {YOUR_TOKEN}
, so we know it’s you making the requests.
To make your life easier we highly recommend you use the CLI utility to upload the tilesets. There is a very good guide on how to install and use it in the MapTiler Documentation.
Limitations
The standard storage limits from price plans apply to the API.
Related guides
- Automatically created API key
- Check if MapLibre GL JS is supported
- Coordinates API
- Dataset upload - formats and limits
- Difference between 256x256, 512x512, and HiDPI/Retina rasterized tiles
- Disputed borders on your maps
- Exported Tiles Multiplier
- Generalization in maps
- How are the tile requests cached in web browser?
- How MapTiler map tiles are Generated and Delivered