Skip to main content
API keys authenticate your application with the Artu API and control what operations you can perform.

Permission Scoping

API keys use a permission pattern that scopes access by environment, resource, and operation:

Permission Components

Example Permissions

Obtaining API Keys

Get your API keys from the Artu Dashboard. When creating an API key, you’ll select:
  1. Name - A descriptive name for the key
  2. Environments - Which environments the key can access
  3. Permissions - Which resources and operations are allowed

Using API Keys

Pass your API key when initializing the SDK:
The SDK will throw an error if you attempt an operation your API key doesn’t have permission for.

Permission Errors

If your API key lacks the required permission, you’ll receive a ForbiddenError:

Best Practices

Use Separate Keys for Different Purposes

Principle of Least Privilege

Create API keys with only the permissions they need:
  • Development keys: Full test access, no live access
  • Production read-only: Read permissions only (e.g., live:clients:read) for dashboards
  • Production full: All CRUD permissions for backend services

Rotate Keys Regularly

  • Rotate API keys periodically
  • Revoke keys immediately if compromised
  • Use different keys for different services

Environment Mismatch

If you try to access an environment your key doesn’t have permission for: