Scopes | Clarifai Docs

Improve your apps' security

Scopes provide control over the set of functionality and features available when using our API. Modifying scopes allows for fine-grained control over the data that users have access to, and can help keep your app secure from unauthorized intrusions.

You can control scopes for your apps at three different levels:

Combining Scopes

A variety of use cases can be addressed by selecting different combinations of scopes.

For example, you might want to create an app that only has access to the Search endpoint, but for search to work properly, it needs to access Predict at the operation level. This lets you perform advanced visual searches like searching by an image crop, which first needs to be understood with the prediction before search is performed.

By giving the combination of predict op-level, but only search endpoint, you can create an app that can perform searches, but not model predictions (like PostModelOutputs).

Since collaborators need to create an API key to access the app they are invited to (or use a PAT), the scopes that are attached to the collaborators invited to an app will be intersected with the scopes attached to the API key or PAT.

Therefore, the permissions allowed when making requests will be the minimum set of scopes from that intersection. This ensures that the app owner remains in full control of the permissions they want their collaborators to have.

Operations and Endpoints Scopes

You have control over both the operation and endpoint level scopes.

Operation level scopes

Endpoint level scopes

Annotation: Add and Remove Annotations on Inputs

Collaborator: Add, Remove and Patch Collaborators

Collector: Add, Remove and Patch Input Collectors

Concept: Add, Remove and Patch Concept

Input: Add and Remove Inputs to an App

Model: Add, Remove and Train Custom Models

Predict: Predict on Public and Custom Models

Search: Search over Inputs an App

Task: Add, Remove and Patch Scribe labeling Tasks

Vocab: Add, Remove and Delete lists of Concepts

Workflow: Add, Remove and Delete Workflows of Models

Build your next AI app, test and tune popular LLMs models, and much more.