Authentication
Authentication verifies your identity when accessing MapTiler services. All API requests require authentication to identify the user or application making the request.
For example, when you embed a MapTiler map on your website, the browser sends a request to MapTiler servers. This request must be authenticated to display the map.
How to authenticate?
MapTiler offers two authentication methods. Choose the best method for your needs:
API key
An API key is a simple authentication method for client-side use, such as web apps. If you want to use a map on your website or build a mobile application using MapTiler online maps and API services, an API key is ideal.
👉 Use an API key
Service token
A service token provides advanced, highly secure authentication for backend use. Use a service token in these scenarios:
- You use the Service API. These calls allow you to read, modify, and delete cloud resources, requiring the highest security level.
- You’re building a map application but want to avoid using an API key. Using a service token for better security is possible, but you must keep the token hidden in the backend to prevent exposure.
👉 Use a service token