For the complete documentation index, see llms.txt. This page is also available as Markdown.

Authorization and Resource Scope

Authentication identifies the caller. Authorization checks whether that caller can perform an operation on the requested resource.

Check permission for each operation

Scopes apply per operation. The caller must also have access to the organization and target resource; a valid credential alone is not enough.

Copy the example
# Inspect the project's input contract
GET /v2/projects/{project_id}/io-schema
# Required scope: projects.read

# Start a run
POST /v2/runs
# Required scope: projects.run

# Read the run's status and result
GET /v2/runs/{run_id}
# Required scope: analytics.read

Before you begin

A valid credential, its required scopes, and access to the target organization and resource.

Key concepts

Term
Definition

Authentication

Verification of the account or credential making a request. It identifies the caller but does not grant every resource permission.

Authorization

The decision whether a caller can perform an operation on a resource. Check roles, scopes, organization context, and sharing when access is denied.

Scope

A permission category requested by an application or assigned to a key. A scope permits an operation class; resource-level restrictions can still apply.

Organization

The team-level container for members, roles, projects, connections, and settings. Select the correct organization before looking for a resource or calling an operation.

Resource ID

A stable identifier for a project, file, connection, or other resource. Use the required ID type; matching display names do not make IDs interchangeable.

Check API access

  1. Select the intended organization context.

  2. Use the correct resource ID and a credential authorized for the operation.

  3. Handle an access failure by checking scopes, membership, and resource sharing.

The caller can perform the operation within its permitted scope.

Behavior and limitations

A valid key does not grant access to every project. Starting a run and reading analytics can require different permissions. Resource identifiers are not credentials. Do not broaden key scopes to compensate for an incorrect organization or resource ID.

API Versions and Compatibility

Was this helpful?