ApiKeyResource

interface ApiKeyResource

An interface for getting and setting the API key of an object. This interface gets and sets the API key generated from your portal.

Since

200.1.0

Inheritors

Properties

Link copied to clipboard
abstract var apiKey: ApiKey?

The API key allows your app to access ArcGIS location services and private portal items. An API key is a unique long-lived access token that is used to authenticate and monitor requests to ArcGIS location services and private portal items. You can create and manage an API key using your portal when you sign in with an ArcGIS Location Platform account or an ArcGIS Online account with administrator access or a custom role that has the Generate API keys privilege. To learn how to create and manage API keys, go to the Create an API Key tutorial. You must ensure that your API key has the correct privileges to access secure resources.