Qodex.ai
Qodex.ai
Introduction
0. 🆔 ArcGIS identity
🪪 OAuth 2.0 | ⭐ Recommended-📄 Authentication Grant Flow with PKCE (SHA256) | ⭐ Recommended
1. URL to get user_code4. Exchange refresh_token
🪪 OAuth 2.0 | ⭐ Recommended-📄 Authentication Grant Flow with PKCE (plain)
1. URL to get user_code4. Exchange refresh_token
🪪 OAuth 2.0 | ⭐ Recommended-📄 Authentication Grant Flow
1. URL to get user_code4. Exchange refresh_token
🪪 OAuth 2.0 | ⭐ Recommended-🌐 Implicit Grant Flow | ⚠️ Read doc
Get token | ⚠️ Read doc
🪪 OAuth 2.0 | ⭐ Recommended-🧑‍🚀 Qodex (Authorization tab)
Test request | Get user content
🪪 OAuth 2.0 | ⭐ Recommended-🗑️ Revoke OAuth2 token
Remove token
🔑 ArcGIS token | Direct | ❗ Discouraged
Get token | ❗ Discouraged
1. 🔑 API Keys
🔑 2. Create an API key
1. Create API key item type2. Register item as API key
⚙️ 2. Update API key settings-Scope API Key to ready to use service
Scope API Key to ready to use service
⚙️ 2. Update API key settings-Add referrers
Add referrers
⚙️ 2. Update API key settings-Scope API Key to data
1. Add relationship2. Update scope
⚙️ 2. Update API key settings
Get client id
2. 🖥️ App credentials
🖥️ Get access token | OAuth 2.0 client credentials
Get access token
🗑️ Revoke OAuth 2.0 token
Remove token
3. 👤 Authentication | Self
User SelfPortal Self
4. 🤦 Troubleshooting | Common mistakes
Problems creating an item
Create an item with app credentials
Create hosted layers with app credentials
Create feature service
Scope private data with wrong account
✅ 1. Add relationship - Item from online acc.🚫 2. Update scope - Item from online acc.
Service with non API support
🚫 Standard: Batch geocoding using Access token✅ Enhanced: Batch geocoding using Access token
Geometry service using access token
✅ Calculate a buffer without API key
Access Living Atlas restricted content-Premium content
✅ ArcGIS Platform w/ pay-as-you-go and OAuth
Access Living Atlas restricted content-Subscriber content
✅ Traffic layers using OAuth
Spatial analysis using API keys
✅ Spatial analysis using OAuth
Introduction
0. 🆔 ArcGIS identity
🪪 OAuth 2.0 | ⭐ Recommended-📄 Authentication Grant Flow with PKCE (SHA256) | ⭐ Recommended
1. URL to get user_code4. Exchange refresh_token
🪪 OAuth 2.0 | ⭐ Recommended-📄 Authentication Grant Flow with PKCE (plain)
1. URL to get user_code4. Exchange refresh_token
🪪 OAuth 2.0 | ⭐ Recommended-📄 Authentication Grant Flow
1. URL to get user_code4. Exchange refresh_token
🪪 OAuth 2.0 | ⭐ Recommended-🌐 Implicit Grant Flow | ⚠️ Read doc
Get token | ⚠️ Read doc
🪪 OAuth 2.0 | ⭐ Recommended-🧑‍🚀 Qodex (Authorization tab)
Test request | Get user content
🪪 OAuth 2.0 | ⭐ Recommended-🗑️ Revoke OAuth2 token
Remove token
🔑 ArcGIS token | Direct | ❗ Discouraged
Get token | ❗ Discouraged
1. 🔑 API Keys
🔑 2. Create an API key
1. Create API key item type2. Register item as API key
⚙️ 2. Update API key settings-Scope API Key to ready to use service
Scope API Key to ready to use service
⚙️ 2. Update API key settings-Add referrers
Add referrers
⚙️ 2. Update API key settings-Scope API Key to data
1. Add relationship2. Update scope
⚙️ 2. Update API key settings
Get client id
2. 🖥️ App credentials
🖥️ Get access token | OAuth 2.0 client credentials
Get access token
🗑️ Revoke OAuth 2.0 token
Remove token
3. 👤 Authentication | Self
User SelfPortal Self
4. 🤦 Troubleshooting | Common mistakes
Problems creating an item
Create an item with app credentials
Create hosted layers with app credentials
Create feature service
Scope private data with wrong account
✅ 1. Add relationship - Item from online acc.🚫 2. Update scope - Item from online acc.
Service with non API support
🚫 Standard: Batch geocoding using Access token✅ Enhanced: Batch geocoding using Access token
Geometry service using access token
✅ Calculate a buffer without API key
Access Living Atlas restricted content-Premium content
✅ ArcGIS Platform w/ pay-as-you-go and OAuth
Access Living Atlas restricted content-Subscriber content
✅ Traffic layers using OAuth
Spatial analysis using API keys
✅ Spatial analysis using OAuth
Home1. 🔑 API Keys

1. 🔑 API Keys

Number of APIs: 7

Learn which is the workflow to create API keys programmatically.

You can also check:

  • ArcGIS REST JS createApiKeyfunction.

  • APIKeyManager at the ArcGIS API for Python

  1. 🔑 2. Create an API key - 1. Create API key item type POST https://www.arcgis.com/sharing/rest/content/users/{{username}}/addItem

  2. 🔑 2. Create an API key - 2. Register item as API key POST https://www.arcgis.com/sharing/rest/oauth2/registerApp

  3. ⚙️ 2. Update API key settings-Scope API Key to ready to use service - Scope API Key to ready to use service POST https://www.arcgis.com/sharing/rest/oauth2/apps/{{client_id}}/update

  4. ⚙️ 2. Update API key settings-Add referrers - Add referrers POST https://www.arcgis.com/sharing/rest/oauth2/apps/{{client_id}}/update

  5. ⚙️ 2. Update API key settings-Scope API Key to data - 1. Add relationship POST https://www.arcgis.com/sharing/rest/content/users/{{username}}/addRelationship

  6. ⚙️ 2. Update API key settings-Scope API Key to data - 2. Update scope POST https://www.arcgis.com/sharing/rest/oauth2/apps/{{client_id}}/update

  7. ⚙️ 2. Update API key settings - Get client id POST https://www.arcgis.com/sharing/rest/content/users/{{username}}/items/{{item_id}}/registeredAppInfo

Previous
Get token | ❗ Discouraged
Next
🔑 2. Create an API key