Skip to main content
The arg.ai API uses API keys for authentication. API keys are long-lived credentials scoped to an organization. They can authenticate as your user account or as a service account. Pass the API key in the X-API-Key header:
You can create an API key at arg.ai/platform/api-keys. User-owned keys inherit your current access within the key’s organization. Service-account keys inherit the role and grants of their service account, including API key management permissions when granted. See the API Keys guide for details on creating and managing keys programmatically.

Set up your environment

Export your key and the base URL so the examples in these guides work as-is:

Error responses

Authentication errors return HTTP 401 with a JSON body:
If a valid token lacks permission for the requested resource, the API returns HTTP 403: