Create and manage an API key
An API key is used to access ready-to-use services, web maps, and web scenes hosted on the ArcGIS Platform.
Create a new API key
An API key is created for you when you sign up for an ArcGIS Developer account. If you already have an ArcGIS account, you can sign in to view this API key and create more API keys.
From the developer dashboard, click Manage.
Click + New API Key.
- Assign a title and description and then click Create API key to save.
The API keys tab on your dashboard now shows the new API key, including its assigned services.
Set your API key
Your API key is scoped by default to include the ready-to-use services demonstrated in the tutorials. These tutorials provide scenarios to help you when building your own applications, including setting the API key.
- From your developer dashboard select and copy an API key.
- In your code, replace the string
YOUR-API-KEY
/ACCESS-TOKEN
with the API key from your dashboard.
Manage your API key
You can edit the ready-to-use services configured to your API key, and, if you have an ArcGIS Developer account, configure its private content, items and referrer header(s), as well as monitor its usage and update its name, description, and other settings.
To configure an API key, select it from the list of API keys on the ArcGIS developer dashboard—API keys tile and then click Edit API Key.
Services
API keys can be given permission to access different services. To configure your API key's service permissions from the ArcGIS developer dashboard—API keys tile:
Select an API key from the list of keys and then click Edit API Key.
On the Location services tile, click Configure services.
Click to check the service(s) you wish to add to or remove from this API key on the Configure services pop-up.
Services available to add might depend upon your payment tier. Click Configure # service(s) to save your changes.
To remove a service, click Ø next to the service on the Location services tile or repeat the previous steps, deselecting the service you wish to remove. You will be asked to confirm before removing a service.
Content and items
Only ArcGIS Developer accounts can use API keys to read private content. To add your private map or layer items to your API key on the ArcGIS developer dashboard—API keys tile:
Select an API key from the list of keys and then click Edit API Key.
On the Content and items tile, click + Add items.
Search for a map or layer from the search menu. You can limit this search field by type (hosted feature layer, tile layer, web map, GeoJSON, or CSV) or search for all item types.
You must have previously created content to locate and add using a Content and items search. When you have located and selected map and layer item(s) to attach to your API key, click Add X Item(s) to save them and close the pop-up.
Referrers
To configure the HTTP referer
header(s) you wish to attach to your API key from the ArcGIS developer dashboard—API keys tile:
Select an API key from the list of keys and then click Edit API Key.
On the Referrers tile, click + Add Referrer.
Enter the Referrer header address (e.x.
https://*.your-app.com
) to use with this API key.Click Add Referrer Header to save it and close this pop-up.
To remove a referrer, click Ø next to the referrer. You will be asked to confirm your deletion.
To edit a referrer, click the pencil icon. Click Edit Referrer Header to save your changes.
Monitor usage
There are several ways to review and monitor API key usage:
- Review overall usage from your ArcGIS Developer dashboard Usage panel.
- On the API keys tab, select View usage for an API key from your API key list.
- Select an individual API key and then click its Usage tab.
Settings
To update an API key's name, tags, description, disable its protections, or to delete it from the system:
- Click the Settings tab.
- Assign a title, tags, and a description, and then click Save settings.
- Toggle the protection icon to enable or disable deletion. This setting prevents the API key from being deleted by other users or by yourself unless you return to this screen.
- Click Delete API Key to remove this API key. This invalidates it permanently from any application(s) attempting to use this key for authentication.
You cannot delete your default API key.
Tutorials

Display a map
Create and display a map with the basemap layer service.

Add a feature layer
Access and display point, line, and polygon features from a feature service

Find a route and directions
Find a route and directions with the Routing service