On this page

    MapTiler Server using Admin API

    This article provides an overview of the Admin API. These APIs require secure authentication, provided by tokens that can be found in the Credentials section of the settings.

    Using tokens for secure authentication

    Navigate to the Credentials section of the Settings. Click on the create new credential if you have not done so yet.

    Screenshot_from_2022-08-03_15-53-14.png

    After creating a credential, you will be able to copy the token. Keep this token private - treat it the same way as a password.

    Screenshot_from_2022-08-03_15-52-44.png

    You find a link to the full documentation of Admin API, if you wish to get more information about supported requests.

    Screenshot_from_2022-08-03_15-52-03.png

    Using Admin API

    You can send your requests to the API using any API client or event curl. Make sure you set the Authorization header in the form of Token <YOUR_TOKEN>, so that we know it’s you making the requests.

    If the request requires a parameter, you may need to add Content-type header and required data.

    Examples with curl:

    
    curl -X POST -H "Authorization: Token <YOUR_TOKEN>" "<YOUR_SERVER>/api/v1/admin/<YOUR_REQUEST>"
    
    
    curl -X POST -H "Authorization: Token <YOUR_TOKEN>" -H "Content-type: application/json" -d '{"<PARAM_KEY>": <PARAM_VALUE>}' "<YOUR_SERVER>/api/v1/admin/<YOUR_REQUEST>"
    

     

    Was this helpful?

    Map server guides
    MapTiler Server using Admin API
    Use admin API