proto/clarifai/api/service.proto

AI computer vision platform

docs.clarifai.com ↗
Version
version not set
OpenAPI
3.0.0
Endpoints
400
Schemas
543
73
Quality
Updated
3 days ago
Ai ai computer-vision machine-learning
Use this API in your AI agent

Query structured spec data via REST or MCP. Get exactly what your agent needs.

Get API Key

Server URLs

api.clarifia.com

Endpoints

Clear filters

V2 181 endpoints

GET /v2/annotation_filters
operationId: V2_ListAnnotationFilters2

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/annotation_filters
GET /v2/annotation_filters/{annotationFilterId}
operationId: V2_GetAnnotationFilter2

Parameters

Name In Required Type Description
annotationFilterId path required string

Identify annotation filter by id.

userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/annotation_filters/{annotationFilterId}
GET /v2/annotations
operationId: V2_ListAnnotations2

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
ids query optional array

List annotations for these IDs

inputIds query optional array

List annotations for these Input IDs
Note that ‘ids’ are optional but if the are provided the number and order in
‘ids’ and ‘input_ids’ should match
If you do not specify ‘ids’ all the annotations for ‘input_ids’ are returned
If a you do not specify both ‘input_ids’ and ‘ids’ all the annotations in the app are returned

userIds query optional array

Only return the annotations that has one of these user IDs, effectively operating as an
OR among them to filter down the results.
If model_version_ids are also provided these user_ids are OR’d with them as well since
annotations are either provided by users or model versions and we want the union of any
provided user or model version annotations in the results of ListAnnotations request.
If no user_ids are provided then annotations from all users are returned.

modelVersionIds query optional array

Only return the annotations that has one of these model version IDs, effectively operating as an
OR among them to filter down the results.
If user_ids are also provided these model_versions_ids are OR’d with them as well since
annotations are either provided by users or model versions and we want the union of any
provided user or model version annotations in the results of ListAnnotations request.
If no model_version_ids are provided then annotations from all model versions are returned.

listAllAnnotations query optional boolean

Set this flag to list both trusted and not trusted annotations
by default it’s listing only trusted annotations

returnModelOutput query optional boolean

Set this flag to return the model output for model annotations in the response.

page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

taskId query optional string

Flag to filter annotations by task_id

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/annotations
GET /v2/annotations/searches/metrics
operationId: V2_ListAnnotationSearchMetrics2

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/annotations/searches/metrics
GET /v2/annotations/searches/metrics/{id}
operationId: V2_GetAnnotationSearchMetrics2

Parameters

Name In Required Type Description
id path required string

Unique custom facing id that identifies the eval to get

userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/annotations/searches/metrics/{id}
GET /v2/annotations/workers
operationId: V2_ListAnnotationWorkers2

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

additionalFields query optional array

(optional URL parameter) List of additional fields to be included in the response.
Currently supported: all, names

trustedOnly query optional boolean

(optional URL parameter) Only list workers that have created trusted annotations.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/annotations/workers
GET /v2/app
operationId: V2_GetApp2

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
additionalFields query optional array

(optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/app
GET /v2/apps
operationId: V2_ListApps2

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

additionalFields query optional array

(optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars

sortAscending query optional boolean

Sorting options:
Whether to sort in ascending order. If false, will order in descending order.

sortByName query optional boolean

Whether to order by the name

sortByModifiedAt query optional boolean

Whether to order by the modified_at time.
If none of the sort options is set to true, will sort by modified_at.

sortByCreatedAt query optional boolean

Whether to order by the created_at time.

sortByStarCount query optional boolean

Whether to order by the number of users stared the app

featuredOnly query optional boolean

Filtering options:
If true, we only return apps that are handpicked by clarifai staff

starredOnly query optional boolean

If true, we only return apps that are starred by the requesting user

templateOnly query optional boolean

If true, we only return apps that are marked as a template by the app owner.

search query optional string

Searching options:
Specify a search parameter in order to perform keyword search on the
following fields of the application:

  • id
  • name
  • description
  • notes
  • user_id (unless user_app_id.user_id is already set)

Keywords are both normalized for search (so searching for “satisfy” matches “satisfied”)
and used for partial prefix-matching (so searching for “clari” matches “clarifai”).

NOTE: Both the list of fields searched and the exact keyword matching
rules are subject to change and not guaranteed to be backwards-compatible.

query query optional string

Query various text fields (id, name, description, and notes) that can contain the words in the query string
Deprecated: use search instead.

name query optional string

Filter by the id, name and notes of the app. This supports wilcard queries like “gen*” to match “general” as an example.
Deprecated: use search instead.

id query optional string

Filter by the user-unique-id of the app. This supports wilcard queries like “gen*” to match “general” as an example.
Deprecated: use search instead.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/apps
GET /v2/bulk_operations
operationId: V2_ListBulkOperations2

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/bulk_operations
GET /v2/bulk_operations/{id}
operationId: V2_GetBulkOperation2

Parameters

Name In Required Type Description
id path required string

The bulk operation id

userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/bulk_operations/{id}
GET /v2/collectors
operationId: V2_ListCollectors2

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/collectors
GET /v2/collectors/{collectorId}
operationId: V2_GetCollector2

Parameters

Name In Required Type Description
collectorId path required string
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/collectors/{collectorId}
GET /v2/concepts
operationId: V2_ListConcepts2

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

id query optional string

Fuzzy match on concept ID

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/concepts
GET /v2/concepts/knowledge_graphs
operationId: V2_ListKnowledgeGraphs2

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/concepts/knowledge_graphs
GET /v2/concepts/status
operationId: V2_GetConceptCounts2

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/concepts/status
GET /v2/concepts/{conceptId}
operationId: V2_GetConcept2

Parameters

Name In Required Type Description
conceptId path required string

The concept’s id.

userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/concepts/{conceptId}
GET /v2/concepts/{conceptId}/languages
operationId: V2_ListConceptLanguages2

Parameters

Name In Required Type Description
conceptId path required string
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/concepts/{conceptId}/languages
GET /v2/concepts/{conceptId}/languages/{language}
operationId: V2_GetConceptLanguage2

Parameters

Name In Required Type Description
conceptId path required string
language path required string

This is the language identifier.

userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/concepts/{conceptId}/languages/{language}
GET /v2/datasets
operationId: V2_ListDatasets3

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

additionalFields query optional array
sortAscending query optional boolean

Sorting options:
Whether to sort in ascending order. If false, will order in descending order.

sortByCreatedAt query optional boolean

Whether to order by the created_at time.

sortByStarCount query optional boolean

Whether to order by the number of users stared the app

sortByModifiedAt query optional boolean

If neither sort option is set to true, will sort by modified_at.

sortById query optional boolean

Whether to order by the external id

starredOnly query optional boolean

Filtering options:

bookmark query optional boolean

Filter datasets by bookmark. If set, only return bookmarked datasets. Otherwise none bookmarked datasets only.

search query optional string

Searching options:
Specify a search parameter in order to perform keyword search on the
following fields of the dataset:

  • id
  • description
  • notes
  • user_id (unless user_app_id.user_id is already set)

Keywords are both normalized for search (so searching for “satisfy” matches “satisfied”)
and used for partial prefix-matching (so searching for “clari” matches “clarifai”).

NOTE: Both the list of fields searched and the exact keyword matching
rules are subject to change and not guaranteed to be backwards-compatible.

id query optional string

Fuzzy filter on dataset ID
Deprecated: use search instead.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/datasets
GET /v2/datasets/{datasetId}
operationId: V2_GetDataset2

Parameters

Name In Required Type Description
datasetId path required string

Identify dataset by id.

userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
additionalFields query optional array

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/datasets/{datasetId}
GET /v2/datasets/{datasetId}/inputs
operationId: V2_ListDatasetInputs2

Parameters

Name In Required Type Description
datasetId path required string

Identify dataset by id.

userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/datasets/{datasetId}/inputs
GET /v2/datasets/{datasetId}/inputs/{inputId}
operationId: V2_GetDatasetInput2

Parameters

Name In Required Type Description
datasetId path required string

Identify dataset by id.

inputId path required string

Identify dataset input by id.

userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/datasets/{datasetId}/inputs/{inputId}
GET /v2/datasets/{datasetId}/versions
operationId: V2_ListDatasetVersions2

Parameters

Name In Required Type Description
datasetId path required string

Identify dataset by id.

userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/datasets/{datasetId}/versions
GET /v2/datasets/{datasetId}/versions/{datasetVersionId}
operationId: V2_GetDatasetVersion2

Parameters

Name In Required Type Description
datasetId path required string

Identify dataset by id.

datasetVersionId path required string

Identify dataset version by id.

userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/datasets/{datasetId}/versions/{datasetVersionId}
GET /v2/datasets/{datasetId}/versions/{datasetVersionId}/metrics
operationId: V2_ListDatasetVersionMetricsGroups2

Parameters

Name In Required Type Description
datasetId path required string

Identify dataset by id.

datasetVersionId path required string

Identify dataset version by id.

userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

parentPaths query optional array

Filter by parent path. Multiple parent paths are OR-ed. Empty list results in no filter.

types query optional array

Filter by parent type. Multiple types are OR-ed. Empty list results in no filter.

  • INPUT_TYPE: Group data examples by input type.
    Examples: images, videos, text, audio.
  • CONCEPT_ID: Group data examples by concept ID.
    Examples: inputs with cat concept, inputs with dog concept.
  • CONCEPTS_COUNT: Group data examples by concepts count.
    Examples: inputs with 20 concepts, inputs with 21 concepts.
  • BOUNDING_BOXES_COUNT: Group data examples by bounding boxes count.
    Examples: inputs with 20 bounding boxes, inputs with 21 bounding boxes.
  • POLYGONS_COUNT: Group data examples by polygons count.
    Examples: inputs with 20 polygons, inputs with 21 polygons.
  • POINTS_COUNT: Group data examples by points count.
    Examples: inputs with 20 points, inputs with 21 points.
  • MASKS_COUNT: Group data examples by masks count.
    Examples: inputs with 20 masks, inputs with 21 masks.
  • PIXELS_COUNT: Group data examples by pixels count.
    In order to reduce the number of groups, we use bins.
    Examples for bin size = 400: inputs with [200000, 200400) pixels, inputs with [200400, 200800) pixels.
  • ASPECT_RATIO: Group data examples by aspect ratio.
    In order to reduce the number of groups, we use bins.
    Examples for bin size = 0.1: inputs with [0.5, 0.6) aspect ratio, inputs with [0.6, 0.7) aspect ratio.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/datasets/{datasetId}/versions/{datasetVersionId}/metrics
GET /v2/evaluations
operationId: V2_ListEvaluations3

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

sortAscending query optional boolean

If true, sort in ascending order, otherwise sort in descending order.

sortByAppId query optional boolean

Whether to order by application id

sortByRocAuc query optional boolean

Whether to order by eval metric summary.macro_avg_roc_auc

sortByF1 query optional boolean

Whether to order by eval metric summary.f1

sortByCreatedAt query optional boolean

Whether to order by when the metric was created

sortByMeanAvgPrecision query optional boolean

Whether to order by eval metric summary.mean_avg_precision_iou_50

sortByPrecision query optional boolean

Whether to order by eval metric summary.macro_avg_precision

sortByRecall query optional boolean

Whether to order by eval metric summary.macro_avg_recall

sortByModelId query optional boolean
sortByEvalDatasetId query optional boolean
sortByTrainDatasetId query optional boolean
modelTypeId query optional string

Filter on model type id

evalDatasetIds query optional array

Filter on dataset ID of the dataset version specified in the metric version

trainDatasetIds query optional array

Filter on dataset ID of the dataset version specified by the model version

conceptIds query optional array

Filter on concept IDs specified in the modele version’s output_info

showFailedMetrics query optional boolean

Whether to show failed metrics, defaults to false

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/evaluations
GET /v2/evaluations/{evaluationId}
operationId: V2_GetEvaluation2

Parameters

Name In Required Type Description
evaluationId path required string
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
fields.confusionMatrix query optional boolean
fields.cooccurrenceMatrix query optional boolean
fields.labelCounts query optional boolean
fields.binaryMetrics query optional boolean
fields.testSet query optional boolean
fields.metricsByArea query optional boolean
fields.metricsByClass query optional boolean

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/evaluations/{evaluationId}
GET /v2/inputs
operationId: V2_ListInputs2

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

status.code query optional string

Status code from internal codes.

  • ZERO: to be revised and greatly expanded
  • SUCCESS: Generic
  • MOVED: Resource moved. Respond with Http status 307 and add new Location header to response
  • TEAPOT: SUCCESS_WARNING_API_DEPRECATED = 10001;
    SUCCESS_WARNING_CLIENT_DEPRECATED = 10002;
  • CONN_ACCOUNT_ISSUES: Clarifai Connection Codes: 11xxx

expired cc, still in trial, feature not supported in your tier

  • CONN_TOKEN_INVALID: invalid auth token used. Deprecated: we should return CONN_KEY_INVALID instead now in all cases.
  • CONN_CREDENTIALS_INVALID: invalid auth credentials
  • CONN_EXCEED_HOURLY_LIMIT: throttle hourly limit exceeded
  • CONN_EXCEED_MONTHLY_LIMIT: throttle monthly limit exceeded
  • CONN_THROTTLED: throttler and billing stuff
  • CONN_EXCEEDS_LIMITS: throttler and billing stuff
  • CONN_INSUFFICIENT_SCOPES: api key has insufficient permissions
  • CONN_KEY_INVALID: api key is invalid
  • CONN_KEY_NOT_FOUND: api key not found
  • CONN_BAD_REQUEST_FORMAT: multipart form parsing, broken json, etc
  • CONN_DOES_NOT_EXIST: when path is bad
  • CONN_INVALID_REQUEST: something wrong with a header
  • CONN_METHOD_NOT_ALLOWED: when a request method is not allowed
  • CONN_NO_GDPR_CONSENT: lack GDPR consent
  • CONN_AUTH_METHOD_DISABLED: authentication method is disabled
  • MODEL_TRAINED: Model/Custom Training related 20xxx

Custom model has been already trained.

  • MODEL_TRAINING: Custom model is currently training.
  • MODEL_UNTRAINED: Custom model has not yet been trained.
  • MODEL_QUEUED_FOR_TRAINING: Custom model is currently in queue for training, waiting on assets to process first.
  • MODEL_TRAINING_FAILED: generic err msg for any type of model training err.
  • MODEL_TRAINING_NO_DATA: Custom model training had no data. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg
  • MODEL_TRAINING_NO_POSITIVES: Custom model training had no positive examples. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg
  • MODEL_TRAINING_ONE_VS_N_SINGLE_CLASS: Custom model training was ONE_VS_N but with a single class. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg
  • MODEL_TRAINING_TIMED_OUT: Training took longer than hard coded timeouts. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg
  • MODEL_TRAINING_WAITING_ERROR: Training got error waiting on asset pipeline to finish. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg
  • MODEL_TRAINING_UNKNOWN_ERROR: Training threw an unknown exception.
  • MODEL_TRAINING_MSG_REDELIVER: Training message was redelivered. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg
  • MODEL_TRAINING_INSUFFICIENT_DATA: Training got error due to insufficient labelled data. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg
  • MODEL_TRAINING_INVALID_PARAMS: FIXME(yang): deprecate this. Use the 21106 + errStatusMsg
  • MODEL_TRAINING_INVALID_DATA_TOLERANCE_EXCEEDED: Training is stopped because too much data was dropped. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg
  • MODEL_EVALUATION_TIMED_OUT: Evaluation took longer than hard coded timeouts. FIXME(yang): deprecate this. Use the 21317 + errStatusMsg
  • MODEL_EVALUATION_WAITING_ERROR: Evaluation got error waiting on asset pipeline to finish.FIXME(yang): deprecate this. Use the 21317 + errStatusMsg
  • MODEL_EVALUATION_UNKNOWN_ERROR: EVALUATION THREW AN UNKNOWN EXCEPTION.
  • MODEL_EVALUATION_MSG_REDELIVER: Eval message was redelivered. FIXME(yang): deprecate this. Use the 21317 + errStatusMsg
  • MODEL_EVALUATION_NEED_LABELS: Don’t have enough concepts labelled to perform evaluation. FIXME(yang): deprecate this. Use the 21317 + errStatusMsg
  • MODEL_EVALUATION_NEED_INPUTS: Don’t have enough inputs per concept to perform evaluation. FIXME(yang): deprecate this. Use the 21317 + errStatusMsg
  • MODEL_EVALUATION_FAILED: Generic err code for eval failure.
  • MODEL_DEPLOYMENT_FAILED: Used when inference coordinator failed to deploy spire and throws an error
  • MODEL_DEPLOYING: Used when calling the inference coordinator to deploy a spire
  • MODEL_QUEUED_FOR_DEPLOYMENT: Used when training is completed
  • MODEL_NOT_DEPLOYED: Used when model spire deployment is manually taken down or due to inactivity
  • MODEL_REFERENCE_INVALID_ARGUMENT: Used when a model reference field is not set properly
  • MODEL_EXAMPLE_INPUT_INVALID_ARGUMENT: Used when a model example input field is not set properly
  • MODEL_EXPORTED: Model Export status codes
  • WORKFLOW_NO_MATCHING_INPUT: specified model input not in workflow
  • WORKFLOW_REQUIRE_TRAINED_MODEL: specified model must be trained
  • WORKFLOW_INVALID_ARGUMENT: error in the request somewhere
  • WORKFLOW_INVALID_REQUEST: error in the request somewhere
  • CONCEPT_MODIFY_SUCCESS: Concept related 23xxx
  • ANNOTATION_SUCCESS: Annotation related 24xxx
  • METADATA_INVALID_PATCH_ARGUMENTS: Metadata related 249xx
  • TRAINER_JOB_STATE_NONE: Training service related 25xxx
  • DATA_DUMP_SUCCESS: Data Dump related 251xx
  • DATA_DUMP_NO_DATA: DEPRECATED: Not used anymore. Now for an empty data dump, DATA_DUMP_SUCCESS is returned. To detect an empty data dump, check if the inptus count is 0.
  • APP_DUPLICATION_SUCCESS: Duplicate related 252xx
  • MODULE_DOES_NOT_EXIST: Module related codes 253xx
  • BULK_OPERATION_SUCCESS: Bulk Operation related codes 254xx
  • RUNNER_DOES_NOT_EXIST: Runner related codes 256xx
  • INPUT_DOWNLOAD_SUCCESS: Input:Image related 30xxx
  • INPUT_DOWNLOAD_PENDING: when things are async, this is the default status.
  • INPUT_DOWNLOAD_FAILED: any type of error downloading and processing
  • INPUT_VIDEO_DOWNLOAD_SUCCESS: Input:Video related 31xxx – Deprecated
  • INPUT_WRITES_DISABLED_FOR_MAINTENANCE: deprecate this one. Use REQUEST_DISABLED_FOR_MAINTENANCE
  • PREDICT_INVALID_REQUEST: API formatting issues 4000x
  • DATABASE_DUPLICATE_KEY: Other related 400xx
  • EXTERNAL_CONNECTION_ERROR: could not connect to external services
  • QUEUE_CONN_ERROR: Queue related errors 41xxx
  • SQS_OVERLIMIT: SQS related errors 411xx
  • SEARCH_INTERNAL_FAILURE: Search related errors 43xxxx
  • EVALUATION_QUEUED: Workflow evaluation err code
  • STRIPE_EVENT_ERROR: Stripe 44xxx
  • CACHE_MISS: Redis/Cache 45xxx
  • SIGNUP_EVENT_ERROR: Sift Science 46xxx
  • APP_COUNT_INVALID_MESSAGE: Application counts related errors 470xx
  • MP_DOWNLOAD_ERROR: Media processor related errors 471xx – DEPRECATED
  • DATATIER_CONN_ERROR: DataTier related error 472xx
  • USER_CONSENT_FACE: User legal consent stauts related 50xxx
  • WORKER_MISSING: Workers 51xxx
  • COLLECTOR_MISSING: Collectors 52xxx
  • SSO_IDENTITY_PROVIDER_DOES_NOT_EXIST: SSO 53xxx
  • TASK_IN_PROGRESS: Tasks 54xxx
    The task was created.
  • TASK_DONE: The task is completed.
  • TASK_WONT_DO: The task is marked as abandoned.
  • TASK_FAILED: An error occurred during add-task-annotations or add-auto-annotations pipeline.
  • TASK_IDLE: When an Auto Annotation task job has finished processing its last batch and is waiting for more dataset assets.
  • TASK_CONFLICT: The task operation is in conflict with the current state of the server.
  • TASK_NOT_IMPLEMENTED: Certain task-related scenarios are not implemented.
  • TASK_MISSING: Task was not found.
  • TASK_PERMISSION_DENIED: Not allowed to perform a task-related action.
  • LABEL_ORDER_PENDING: Label Order Related Status Code 55xxx
  • LICENSE_ACTIVE: License Related Status Code 600xx
  • LICENSE_DELETED: hidden state not reflected to users
  • PASSWORD_VALIDATION_SUCCESS: Password Related Status Code
  • FEATUREFLAG_CONFIG_NOT_FOUND: Feature flags status code
  • MAINTENANCE_SUCCESS: Maintenance status code
  • DATASET_VERSION_PENDING: Datasets 64xxx
    The dataset version is pending to be processed.
  • DATASET_VERSION_IN_PROGRESS: The dataset version is currently being processed.
  • DATASET_VERSION_READY: The dataset version is ready to be used.
  • DATASET_VERSION_FAILURE: An error occurred during the dataset version processing.
  • DATASET_VERSION_UNEXPECTED_ERROR: An unexpected error occurred during the dataset version processing.
  • DATASET_VERSION_CONFLICT: An alteration to dataset version would create a conflict
  • DATASET_INPUT_SUCCESS: The dataset input was successfully added.
  • DATASET_INPUT_DUPLICATE: The dataset input is a duplicate.
    Deprecated: Unused.
  • DATASET_VERSION_EXPORT_SUCCESS: The dataset version export is completed.
  • DATASET_VERSION_EXPORT_PENDING: The dataset version is pending to be exported.
  • DATASET_VERSION_EXPORT_FAILED: An error occurred during the dataset version export.
  • DATASET_VERSION_EXPORT_IN_PROGRESS: The dataset version is currently being exported.
  • DATASET_VERSION_EXPORT_UNEXPECTED_ERROR: An unexpected error occurred during the dataset version export.
  • JOB_QUEUED: Generic Job status codes
  • AUTH_MISSING_IDP_ASSOC: auth issues

TODO: Knowledge graph related 80xxx

  • UPLOAD_IN_PROGRESS: Multipart uploading status codes
  • BILLING_INVALID_INFO: Billing related issues: 69xxx
  • INTERNAL_SERVER_ISSUE: Internal issues: 98xxx
  • CONN_UNCATEGORIZED: Uncategorized: 99xxx: move off as soon as known
  • BAD_REQUEST: Deprecated: migrate off to one of the internal issues
  • SERVER_ERROR: Deprecated: migrate off to one of the internal issues
status.description query optional string

A short description of the error.

status.details query optional string

More details of the given error.
These details may be exposed to non-technical users.
For technical details, try to use developer_notes field.

status.stackTrace query optional array

For some environment we may return a stack trace to help debug
any issues.

status.percentCompleted query optional integer

specifically for long running jobs

status.timeRemaining query optional integer

if status is pending, how much time is remaining (in seconds)

status.reqId query optional string

A request ID may be present, to help monitoring and tracking requests

status.internalDetails query optional string

Internal Annotation (do not set in production, for internal Clarifai use only).

status.redirectInfo.url query optional string

New location for the resource. Used to set response Location header.

status.redirectInfo.resourceType query optional string

Resource type

status.redirectInfo.oldResourceId query optional string

Old resource id

status.redirectInfo.newResourceId query optional string

New resource id

status.developerNotes query optional string

Notes for developer.
These notes are rather technical details for developers how to interpret the status,
e.g. why an error occurred and how to avoid getting the error.

ids query optional array

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/inputs
GET /v2/inputs/jobs/add
operationId: V2_ListInputsAddJobs2

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/inputs/jobs/add
GET /v2/inputs/jobs/add/{id}
operationId: V2_GetInputsAddJob2

Parameters

Name In Required Type Description
id path required string

id of add inputs job

userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/inputs/jobs/add/{id}
GET /v2/inputs/jobs/extraction
operationId: V2_ListInputsExtractionJobs2

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/inputs/jobs/extraction
GET /v2/inputs/jobs/extraction/{inputsExtractionJobId}
operationId: V2_GetInputsExtractionJob2

Parameters

Name In Required Type Description
inputsExtractionJobId path required string
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/inputs/jobs/extraction/{inputsExtractionJobId}
GET /v2/inputs/status
operationId: V2_GetInputCount2

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/inputs/status
GET /v2/inputs/stream
operationId: V2_StreamInputs2

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 20.

lastId query optional string
orderById query optional boolean

By default, the endpoint return inputs by the time when it is added.
If this is set to true, we will return inputs by id.

descending query optional boolean

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/inputs/stream
GET /v2/inputs/{inputId}
operationId: V2_GetInput2

Parameters

Name In Required Type Description
inputId path required string
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/inputs/{inputId}
GET /v2/inputs/{inputId}/annotations/{annotationId}
operationId: V2_GetAnnotation2

Parameters

Name In Required Type Description
inputId path required string
annotationId path required string
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/inputs/{inputId}/annotations/{annotationId}
GET /v2/inputs/{inputId}/video_manifest
operationId: V2_GetInputVideoManifest2

Parameters

Name In Required Type Description
inputId path required string
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/inputs/{inputId}/video_manifest
GET /v2/label_orders
operationId: V2_ListLabelOrders2

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/label_orders
GET /v2/label_orders/{labelOrderId}
operationId: V2_GetLabelOrder2

Parameters

Name In Required Type Description
labelOrderId path required string
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/label_orders/{labelOrderId}
GET /v2/models
operationId: V2_ListModels3

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

additionalFields query optional array

(optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, outputs, presets

sortAscending query optional boolean

Sorting options:
Whether to sort in ascending order. If false, will order in descending order.

sortByName query optional boolean

Whether to order by the name

sortByNumInputs query optional boolean

Whether to order by the number of training inputs

sortByModifiedAt query optional boolean

Whether to order by the modified_at time of the latest model version.
If none of the sort options is set to true, will sort by modified_at.

sortByCreatedAt query optional boolean

Whether to order by the created_at

sortByStarCount query optional boolean

Whether to order by count of stars

modelTypeId query optional string

Filtering options:
Filter models by the specific model_type_id. See ListModelTypes for the list of ModelType.Id’s
supported.

trainedOnly query optional boolean

If true, we only return models that have the status MODEL_TRAINED, which includes non-trainable model types.

inputFields query optional array

The list of input fields to the model.
For example, you can specify ‘image’, which will return models that make inferences on images like visual-classifier models.

outputFields query optional array

The list of output fields to the model.
For example, you can specify ‘regions[…].data.concepts’, which will return visual-detector models.

license query optional string

Filter by the license of the model version

featuredOnly query optional boolean

If true, we only return models that are handpicked by clarifai staff

starredOnly query optional boolean

If true, we only return models that are starred by the requesting user

toolkits query optional array

List of toolkit tags to filter by

useCases query optional array

List of use_case tags to filter by

languages query optional array

List of language tags to filter by

dontFetchFromMain query optional boolean

Old API behavior resulted in returning clarifai main models when calling ListModels while scoped to an app. While we transition
away from that, we can use this flag to not always fetch clarifai main models, unless that is the app we are explicitly listing for.

bookmark query optional boolean

Filter models by bookmark. If set, only return bookmarked models. Otherwise none bookmarked models only.
Note: you can not filter trained_only and bookmark at the same time.
When filter by bookmark, we will return trained and untrained models.

search query optional string

Searching options:
Specify a search parameter in order to perform keyword search on the
following fields of the model:

  • id
  • name
  • description
  • notes
  • user_id (unless user_app_id.user_id is already set)

Keywords are both normalized for search (so searching for “satisfy” matches “satisfied”)
and used for partial prefix-matching (so searching for “clari” matches “clarifai”).

NOTE: Both the list of fields searched and the exact keyword matching
rules are subject to change and not guaranteed to be backwards-compatible.

query query optional string

Query name, description and id fields, that can contain the words in the query string. Does NOT support wildcards - full words only. Supports operators “OR” and “-“ as NOT.
Deprecated: use search instead.

name query optional string

Filter by the description and id of the model. This supports wildcard queries like “gen*” to match “general” as an example.
Deprecated: use search instead.

filterByUserId query optional boolean

Extends the name filter to include the user_id of the application owner that the model belongs to.
Deprecated: use search instead of name.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/models
GET /v2/models/types
operationId: V2_ListModelTypes2

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/models/types
GET /v2/models/types/{modelTypeId}
operationId: V2_GetModelType2

Parameters

Name In Required Type Description
modelTypeId path required string

The specific ModelType.Id you want to retrieve.

userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/models/types/{modelTypeId}
GET /v2/models/{modelId}
operationId: V2_GetModel2

Parameters

Name In Required Type Description
modelId path required string
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
versionId query optional string

This is included so that we can re-use this request for multiple
rpcs with and without the version_id.

language query optional string
trainedBefore query optional boolean
additionalFields query optional array

(optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, outputs, presets

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/models/{modelId}
GET /v2/models/{modelId}/inputs
operationId: V2_ListModelInputs2

Parameters

Name In Required Type Description
modelId path required string
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
versionId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/models/{modelId}/inputs
GET /v2/models/{modelId}/output_info
operationId: V2_GetModelOutputInfo2

Parameters

Name In Required Type Description
modelId path required string
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
versionId query optional string

This is included so that we can re-use this request for multiple
rpcs with and without the version_id.

language query optional string
trainedBefore query optional boolean
additionalFields query optional array

(optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, outputs, presets

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/models/{modelId}/output_info
GET /v2/models/{modelId}/references
operationId: V2_ListModelReferences2

Parameters

Name In Required Type Description
modelId path required string
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

Optional, defaults to 1.

perPage query optional integer

Optional, defaults to 128 references per page.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/models/{modelId}/references
GET /v2/models/{modelId}/versions
operationId: V2_ListModelVersions2

Parameters

Name In Required Type Description
modelId path required string
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

conceptIds query optional array

Filtering options:
To list only the model versions that have these concept ids present in them.

trainedOnly query optional boolean

To list only the model versions that have been trained.

sortAscending query optional boolean

Sorting options:
Whether to sort in ascending order. If false, will order in descending order.

sortByStatusCode query optional boolean

Whether to order by the status code

sortByNumInputs query optional boolean

Whether to order by the number of training inputs

sortByDescription query optional boolean

Whether to sort by the description

sortByCreatedAt query optional boolean

Whether to order by the created_at time
If neither sort option is set to true, will sort by created_at.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/models/{modelId}/versions
GET /v2/models/{modelId}/versions/{modelVersionId}/evaluations
operationId: V2_ListModelVersionEvaluations2

Parameters

Name In Required Type Description
modelId path required string
modelVersionId path required string
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/models/{modelId}/versions/{modelVersionId}/evaluations
GET /v2/models/{modelId}/versions/{modelVersionId}/evaluations/{evaluationId}
operationId: V2_GetModelVersionEvaluation2

Parameters

Name In Required Type Description
modelId path required string
modelVersionId path required string
evaluationId path required string
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
fields.confusionMatrix query optional boolean
fields.cooccurrenceMatrix query optional boolean
fields.labelCounts query optional boolean
fields.binaryMetrics query optional boolean
fields.testSet query optional boolean
fields.metricsByArea query optional boolean
fields.metricsByClass query optional boolean

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/models/{modelId}/versions/{modelVersionId}/evaluations/{evaluationId}
GET /v2/models/{modelId}/versions/{modelVersionId}/input_examples
operationId: V2_ListModelVersionInputExamples2

Parameters

Name In Required Type Description
modelId path required string

id of model the example belongs to

modelVersionId path required string

specific version the example belongs to

userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

Optional, defaults to 1.

perPage query optional integer

Optional, defaults to 128 references per page.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/models/{modelId}/versions/{modelVersionId}/input_examples
GET /v2/models/{modelId}/versions/{modelVersionId}/input_examples/{exampleId}
operationId: V2_GetModelVersionInputExample2

Parameters

Name In Required Type Description
modelId path required string

id of model the example belongs to

modelVersionId path required string

specific version the example belongs to

exampleId path required string

Id of example to fetch

userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/models/{modelId}/versions/{modelVersionId}/input_examples/{exampleId}
GET /v2/models/{modelId}/versions/{versionId}
operationId: V2_GetModelVersion2

Parameters

Name In Required Type Description
modelId path required string
versionId path required string
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/models/{modelId}/versions/{versionId}
GET /v2/models/{modelId}/versions/{versionId}/exports
operationId: V2_GetModelVersionExport2

Parameters

Name In Required Type Description
modelId path required string
versionId path required string
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/models/{modelId}/versions/{versionId}/exports
GET /v2/models/{modelId}/versions/{versionId}/inputs
operationId: V2_ListModelInputs4

Parameters

Name In Required Type Description
modelId path required string
versionId path required string
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/models/{modelId}/versions/{versionId}/inputs
GET /v2/models/{modelId}/versions/{versionId}/metrics
operationId: V2_GetModelVersionMetrics2

Parameters

Name In Required Type Description
modelId path required string
versionId path required string
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
fields.confusionMatrix query optional boolean
fields.cooccurrenceMatrix query optional boolean
fields.labelCounts query optional boolean
fields.binaryMetrics query optional boolean
fields.testSet query optional boolean
fields.metricsByArea query optional boolean
fields.metricsByClass query optional boolean

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/models/{modelId}/versions/{versionId}/metrics
GET /v2/models/{modelId}/versions/{versionId}/output_info
operationId: V2_GetModelOutputInfo4

Parameters

Name In Required Type Description
modelId path required string
versionId path required string

This is included so that we can re-use this request for multiple
rpcs with and without the version_id.

userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
language query optional string
trainedBefore query optional boolean
additionalFields query optional array

(optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, outputs, presets

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/models/{modelId}/versions/{versionId}/output_info
GET /v2/modules
operationId: V2_ListModules3

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

additionalFields query optional array
sortAscending query optional boolean

Sorting options:
Whether to sort in ascending order. If false, will order in descending order.

sortByCreatedAt query optional boolean

Whether to order by the created_at time.

sortByStarCount query optional boolean

Whether to order by the number of users stared the app

sortByModifiedAt query optional boolean

If neither sort option is set to true, will sort by modified_at.

sortById query optional boolean

Whether to order by the external id

starredOnly query optional boolean

Filtering options:

bookmark query optional boolean

Filter modules by bookmark. If set, only return bookmarked modules. Otherwise none bookmarked modules only.

search query optional string

Searching options:
Specify a search parameter in order to perform keyword search on the
following fields of the module:

  • id
  • description
  • user_id (unless user_app_id.user_id is already set)

Keywords are both normalized for search (so searching for “satisfy” matches “satisfied”)
and used for partial prefix-matching (so searching for “clari” matches “clarifai”).

NOTE: Both the list of fields searched and the exact keyword matching
rules are subject to change and not guaranteed to be backwards-compatible.

name query optional string

Filter by the id and description of the module. This supports wildcard queries like “gen*” to match “general” as an example.
Deprecated: use search instead.

filterByUserId query optional boolean

Filter by the application owner whose this module belongs to
Deprecated: use search instead of name.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/modules
GET /v2/my_scopes
operationId: V2_MyScopes3

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/my_scopes
GET /v2/myscopes
operationId: V2_MyScopes2

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/myscopes
GET /v2/myscopesroot
operationId: V2_MyScopesRoot

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/myscopesroot
GET /v2/open_source_licenses
operationId: V2_ListOpenSourceLicenses

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/open_source_licenses
GET /v2/resource_counts
operationId: V2_GetResourceCounts2

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/resource_counts
GET /v2/searches
operationId: V2_ListSearches2

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/searches
GET /v2/searches/{id}
operationId: V2_GetSearch2

Parameters

Name In Required Type Description
id path required string
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/searches/{id}
GET /v2/status_codes
operationId: V2_ListStatusCodes

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/status_codes
GET /v2/status_codes/{statusCodeId}
operationId: V2_GetStatusCode

Parameters

Name In Required Type Description
statusCodeId path required string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/status_codes/{statusCodeId}
GET /v2/tasks
operationId: V2_ListTasks2

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

workerUserIds query optional array

Get tasks that have ANY user from this list assigned as worker.

reviewUserIds query optional array

Get tasks that have ANY user from this list assigned as reviewer.

labelOrderIds query optional array

Get tasks that are associated to ANY label order from this list.

includingLabelOrderTasks query optional boolean

Get label order tasks as well
It is automatically set to true if label_order_ids is set.

additionalFields query optional array

(optional URL parameter) List of additional fields to be included in the response.
Currently supported additional fields:

  • all
  • worker.users
  • review.users
  • metrics.work.inputs_count_estimated
  • metrics.work.inputs_percent_estimated
ids query optional array

(optional) task IDs to filter on

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/tasks
GET /v2/tasks/{taskId}
operationId: V2_GetTask2

Parameters

Name In Required Type Description
taskId path required string
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
additionalFields query optional array

(optional URL parameter) List of additional fields to be included in the response.
Currently supported additional fields:

  • all
  • worker.users
  • review.users
  • metrics.work.inputs_count_estimated
  • metrics.work.inputs_percent_estimated

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/tasks/{taskId}
GET /v2/tasks/{taskId}/annotations/count
operationId: V2_GetTaskAnnotationCount2

Parameters

Name In Required Type Description
taskId path required string

task_id for which count per user per status is needed

userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
userIds query optional array

for given task_id, user_ids to filter on (optional)

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/tasks/{taskId}/annotations/count
GET /v2/tasks/{taskId}/assignments
operationId: V2_ListNextTaskAssignments2

Parameters

Name In Required Type Description
taskId path required string
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/tasks/{taskId}/assignments
GET /v2/tasks/{taskId}/inputs/count
operationId: V2_GetTaskInputCount2

Parameters

Name In Required Type Description
taskId path required string

task_id for which count per user per status is needed

userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
userIds query optional array

for given task_id, user_ids to filter on (optional)

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/tasks/{taskId}/inputs/count
GET /v2/tasks/{taskId}/inputs/samples
operationId: V2_GetInputSamples2

Parameters

Name In Required Type Description
taskId path required string
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
userIds query optional array

URL param. If zero ids provided, returns for all task labelers

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/tasks/{taskId}/inputs/samples
GET /v2/trending_metrics/views/{viewType}
operationId: V2_ListTrendingMetricsViews2

Parameters

Name In Required Type Description
viewType path required string

For now view types ‘apps’, ‘workflows’, and ‘models’ are supported.

userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/trending_metrics/views/{viewType}
GET /v2/uploads
operationId: V2_ListUploads2

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/uploads
GET /v2/uploads/{uploadId}
operationId: V2_GetUpload2

Parameters

Name In Required Type Description
uploadId path required string

Upload ID

userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/uploads/{uploadId}
GET /v2/users/{userAppId.userId}
operationId: V2_GetUser

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
additionalFields query optional array

(optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}
GET /v2/users/{userAppId.userId}/apps
operationId: V2_ListApps

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

additionalFields query optional array

(optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars

sortAscending query optional boolean

Sorting options:
Whether to sort in ascending order. If false, will order in descending order.

sortByName query optional boolean

Whether to order by the name

sortByModifiedAt query optional boolean

Whether to order by the modified_at time.
If none of the sort options is set to true, will sort by modified_at.

sortByCreatedAt query optional boolean

Whether to order by the created_at time.

sortByStarCount query optional boolean

Whether to order by the number of users stared the app

featuredOnly query optional boolean

Filtering options:
If true, we only return apps that are handpicked by clarifai staff

starredOnly query optional boolean

If true, we only return apps that are starred by the requesting user

templateOnly query optional boolean

If true, we only return apps that are marked as a template by the app owner.

search query optional string

Searching options:
Specify a search parameter in order to perform keyword search on the
following fields of the application:

  • id
  • name
  • description
  • notes
  • user_id (unless user_app_id.user_id is already set)

Keywords are both normalized for search (so searching for “satisfy” matches “satisfied”)
and used for partial prefix-matching (so searching for “clari” matches “clarifai”).

NOTE: Both the list of fields searched and the exact keyword matching
rules are subject to change and not guaranteed to be backwards-compatible.

query query optional string

Query various text fields (id, name, description, and notes) that can contain the words in the query string
Deprecated: use search instead.

name query optional string

Filter by the id, name and notes of the app. This supports wilcard queries like “gen*” to match “general” as an example.
Deprecated: use search instead.

id query optional string

Filter by the user-unique-id of the app. This supports wilcard queries like “gen*” to match “general” as an example.
Deprecated: use search instead.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}
operationId: V2_GetApp

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
additionalFields query optional array

(optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/annotation_filters
operationId: V2_ListAnnotationFilters

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/annotation_filters
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/annotation_filters/{annotationFilterId}
operationId: V2_GetAnnotationFilter

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
annotationFilterId path required string

Identify annotation filter by id.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/annotation_filters/{annotationFilterId}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/annotations
operationId: V2_ListAnnotations

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
ids query optional array

List annotations for these IDs

inputIds query optional array

List annotations for these Input IDs
Note that ‘ids’ are optional but if the are provided the number and order in
‘ids’ and ‘input_ids’ should match
If you do not specify ‘ids’ all the annotations for ‘input_ids’ are returned
If a you do not specify both ‘input_ids’ and ‘ids’ all the annotations in the app are returned

userIds query optional array

Only return the annotations that has one of these user IDs, effectively operating as an
OR among them to filter down the results.
If model_version_ids are also provided these user_ids are OR’d with them as well since
annotations are either provided by users or model versions and we want the union of any
provided user or model version annotations in the results of ListAnnotations request.
If no user_ids are provided then annotations from all users are returned.

modelVersionIds query optional array

Only return the annotations that has one of these model version IDs, effectively operating as an
OR among them to filter down the results.
If user_ids are also provided these model_versions_ids are OR’d with them as well since
annotations are either provided by users or model versions and we want the union of any
provided user or model version annotations in the results of ListAnnotations request.
If no model_version_ids are provided then annotations from all model versions are returned.

listAllAnnotations query optional boolean

Set this flag to list both trusted and not trusted annotations
by default it’s listing only trusted annotations

returnModelOutput query optional boolean

Set this flag to return the model output for model annotations in the response.

page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

taskId query optional string

Flag to filter annotations by task_id

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/annotations
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/annotations/searches/metrics
operationId: V2_ListAnnotationSearchMetrics

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/annotations/searches/metrics
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/annotations/searches/metrics/{id}
operationId: V2_GetAnnotationSearchMetrics

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
id path required string

Unique custom facing id that identifies the eval to get

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/annotations/searches/metrics/{id}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/annotations/workers
operationId: V2_ListAnnotationWorkers

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

additionalFields query optional array

(optional URL parameter) List of additional fields to be included in the response.
Currently supported: all, names

trustedOnly query optional boolean

(optional URL parameter) Only list workers that have created trusted annotations.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/annotations/workers
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/bulk_operations
operationId: V2_ListBulkOperations

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/bulk_operations
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/bulk_operations/{id}
operationId: V2_GetBulkOperation

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
id path required string

The bulk operation id

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/bulk_operations/{id}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/collaborators
operationId: V2_ListCollaborators

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
listAllCollaborators query optional boolean

Set this flag to list both deleted and not deleted collaborators
by default it’s listing only not deleted collaborators

page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/collaborators
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/collectors
operationId: V2_ListCollectors

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/collectors
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/collectors/{collectorId}
operationId: V2_GetCollector

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
collectorId path required string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/collectors/{collectorId}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/concepts
operationId: V2_ListConcepts

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

id query optional string

Fuzzy match on concept ID

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/concepts
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/concepts/knowledge_graphs
operationId: V2_ListKnowledgeGraphs

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/concepts/knowledge_graphs
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/concepts/relations
operationId: V2_ListConceptRelations2

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
conceptId query optional string

The subject concept id in your app to get all the relationships for.
Leave as an empty string (GET /concepts/relations) to list ALL the relations in the app.

When listing all the relations it will only return one direction of the relationship
with the predicate acting on the subject and not the inverse like is done when providing a
concept_id so that we can return a reliable page size always.

When providing a concept_id, if a hyponym is present in the DB such as:
‘honey’ (subject), ‘hyponym’ (predicate for “is a kind of”), ‘food’ (object)
then you can list the concept relations for ‘honey’ and get hyponym predicate with ‘food’
object.
But you can also list the concept relations for ‘food’ and it will return the same hyponym
relationship with ‘honey’ as object and ‘hypernym’ as predicate.
Synonyms by nature are symmetrical relationships so either side can be the concept_id (subject)
when listing the relations.

predicate query optional string

If predicate is provided then only list relations with that predicate.

Note that if no subject is set in concept_id and predicate is set to
‘hypernym’, then it will return any stored hyponyms as hypernyms with
just the subject and object swapped since they are reversed relations.

Valid predicates are:

  • ‘hypernym’
  • ‘hyponym’
  • ‘synonym’
knowledgeGraphId query optional string

If knowledge_graph_id is provided then just list relations from that knowledge graph.
If not provided then list relations from all knowledge graphs including the global one for this
app one (ie. knowledge_graph “”) and any specific ones in the app.

page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/concepts/relations
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/concepts/status
operationId: V2_GetConceptCounts

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/concepts/status
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/concepts/{conceptId}
operationId: V2_GetConcept

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
conceptId path required string

The concept’s id.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/concepts/{conceptId}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/concepts/{conceptId}/languages
operationId: V2_ListConceptLanguages

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
conceptId path required string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/concepts/{conceptId}/languages
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/concepts/{conceptId}/languages/{language}
operationId: V2_GetConceptLanguage

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
conceptId path required string
language path required string

This is the language identifier.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/concepts/{conceptId}/languages/{language}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/concepts/{conceptId}/relations
operationId: V2_ListConceptRelations

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
conceptId path required string

The subject concept id in your app to get all the relationships for.
Leave as an empty string (GET /concepts/relations) to list ALL the relations in the app.

When listing all the relations it will only return one direction of the relationship
with the predicate acting on the subject and not the inverse like is done when providing a
concept_id so that we can return a reliable page size always.

When providing a concept_id, if a hyponym is present in the DB such as:
‘honey’ (subject), ‘hyponym’ (predicate for “is a kind of”), ‘food’ (object)
then you can list the concept relations for ‘honey’ and get hyponym predicate with ‘food’
object.
But you can also list the concept relations for ‘food’ and it will return the same hyponym
relationship with ‘honey’ as object and ‘hypernym’ as predicate.
Synonyms by nature are symmetrical relationships so either side can be the concept_id (subject)
when listing the relations.

predicate query optional string

If predicate is provided then only list relations with that predicate.

Note that if no subject is set in concept_id and predicate is set to
‘hypernym’, then it will return any stored hyponyms as hypernyms with
just the subject and object swapped since they are reversed relations.

Valid predicates are:

  • ‘hypernym’
  • ‘hyponym’
  • ‘synonym’
knowledgeGraphId query optional string

If knowledge_graph_id is provided then just list relations from that knowledge graph.
If not provided then list relations from all knowledge graphs including the global one for this
app one (ie. knowledge_graph “”) and any specific ones in the app.

page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/concepts/{conceptId}/relations
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/datasets
operationId: V2_ListDatasets

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

additionalFields query optional array
sortAscending query optional boolean

Sorting options:
Whether to sort in ascending order. If false, will order in descending order.

sortByCreatedAt query optional boolean

Whether to order by the created_at time.

sortByStarCount query optional boolean

Whether to order by the number of users stared the app

sortByModifiedAt query optional boolean

If neither sort option is set to true, will sort by modified_at.

sortById query optional boolean

Whether to order by the external id

starredOnly query optional boolean

Filtering options:

bookmark query optional boolean

Filter datasets by bookmark. If set, only return bookmarked datasets. Otherwise none bookmarked datasets only.

search query optional string

Searching options:
Specify a search parameter in order to perform keyword search on the
following fields of the dataset:

  • id
  • description
  • notes
  • user_id (unless user_app_id.user_id is already set)

Keywords are both normalized for search (so searching for “satisfy” matches “satisfied”)
and used for partial prefix-matching (so searching for “clari” matches “clarifai”).

NOTE: Both the list of fields searched and the exact keyword matching
rules are subject to change and not guaranteed to be backwards-compatible.

id query optional string

Fuzzy filter on dataset ID
Deprecated: use search instead.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/datasets
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/datasets/{datasetId}
operationId: V2_GetDataset

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
datasetId path required string

Identify dataset by id.

additionalFields query optional array

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/datasets/{datasetId}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/datasets/{datasetId}/inputs
operationId: V2_ListDatasetInputs

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
datasetId path required string

Identify dataset by id.

page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/datasets/{datasetId}/inputs
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/datasets/{datasetId}/inputs/{inputId}
operationId: V2_GetDatasetInput

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
datasetId path required string

Identify dataset by id.

inputId path required string

Identify dataset input by id.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/datasets/{datasetId}/inputs/{inputId}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/datasets/{datasetId}/versions
operationId: V2_ListDatasetVersions

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
datasetId path required string

Identify dataset by id.

page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/datasets/{datasetId}/versions
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/datasets/{datasetId}/versions/{datasetVersionId}
operationId: V2_GetDatasetVersion

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
datasetId path required string

Identify dataset by id.

datasetVersionId path required string

Identify dataset version by id.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/datasets/{datasetId}/versions/{datasetVersionId}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/datasets/{datasetId}/versions/{datasetVersionId}/metrics
operationId: V2_ListDatasetVersionMetricsGroups

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
datasetId path required string

Identify dataset by id.

datasetVersionId path required string

Identify dataset version by id.

page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

parentPaths query optional array

Filter by parent path. Multiple parent paths are OR-ed. Empty list results in no filter.

types query optional array

Filter by parent type. Multiple types are OR-ed. Empty list results in no filter.

  • INPUT_TYPE: Group data examples by input type.
    Examples: images, videos, text, audio.
  • CONCEPT_ID: Group data examples by concept ID.
    Examples: inputs with cat concept, inputs with dog concept.
  • CONCEPTS_COUNT: Group data examples by concepts count.
    Examples: inputs with 20 concepts, inputs with 21 concepts.
  • BOUNDING_BOXES_COUNT: Group data examples by bounding boxes count.
    Examples: inputs with 20 bounding boxes, inputs with 21 bounding boxes.
  • POLYGONS_COUNT: Group data examples by polygons count.
    Examples: inputs with 20 polygons, inputs with 21 polygons.
  • POINTS_COUNT: Group data examples by points count.
    Examples: inputs with 20 points, inputs with 21 points.
  • MASKS_COUNT: Group data examples by masks count.
    Examples: inputs with 20 masks, inputs with 21 masks.
  • PIXELS_COUNT: Group data examples by pixels count.
    In order to reduce the number of groups, we use bins.
    Examples for bin size = 400: inputs with [200000, 200400) pixels, inputs with [200400, 200800) pixels.
  • ASPECT_RATIO: Group data examples by aspect ratio.
    In order to reduce the number of groups, we use bins.
    Examples for bin size = 0.1: inputs with [0.5, 0.6) aspect ratio, inputs with [0.6, 0.7) aspect ratio.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/datasets/{datasetId}/versions/{datasetVersionId}/metrics
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/evaluations
operationId: V2_ListEvaluations

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

sortAscending query optional boolean

If true, sort in ascending order, otherwise sort in descending order.

sortByAppId query optional boolean

Whether to order by application id

sortByRocAuc query optional boolean

Whether to order by eval metric summary.macro_avg_roc_auc

sortByF1 query optional boolean

Whether to order by eval metric summary.f1

sortByCreatedAt query optional boolean

Whether to order by when the metric was created

sortByMeanAvgPrecision query optional boolean

Whether to order by eval metric summary.mean_avg_precision_iou_50

sortByPrecision query optional boolean

Whether to order by eval metric summary.macro_avg_precision

sortByRecall query optional boolean

Whether to order by eval metric summary.macro_avg_recall

sortByModelId query optional boolean
sortByEvalDatasetId query optional boolean
sortByTrainDatasetId query optional boolean
modelTypeId query optional string

Filter on model type id

evalDatasetIds query optional array

Filter on dataset ID of the dataset version specified in the metric version

trainDatasetIds query optional array

Filter on dataset ID of the dataset version specified by the model version

conceptIds query optional array

Filter on concept IDs specified in the modele version’s output_info

showFailedMetrics query optional boolean

Whether to show failed metrics, defaults to false

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/evaluations
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/evaluations/{evaluationId}
operationId: V2_GetEvaluation

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
evaluationId path required string
fields.confusionMatrix query optional boolean
fields.cooccurrenceMatrix query optional boolean
fields.labelCounts query optional boolean
fields.binaryMetrics query optional boolean
fields.testSet query optional boolean
fields.metricsByArea query optional boolean
fields.metricsByClass query optional boolean

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/evaluations/{evaluationId}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/inputs
operationId: V2_ListInputs

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

status.code query optional string

Status code from internal codes.

  • ZERO: to be revised and greatly expanded
  • SUCCESS: Generic
  • MOVED: Resource moved. Respond with Http status 307 and add new Location header to response
  • TEAPOT: SUCCESS_WARNING_API_DEPRECATED = 10001;
    SUCCESS_WARNING_CLIENT_DEPRECATED = 10002;
  • CONN_ACCOUNT_ISSUES: Clarifai Connection Codes: 11xxx

expired cc, still in trial, feature not supported in your tier

  • CONN_TOKEN_INVALID: invalid auth token used. Deprecated: we should return CONN_KEY_INVALID instead now in all cases.
  • CONN_CREDENTIALS_INVALID: invalid auth credentials
  • CONN_EXCEED_HOURLY_LIMIT: throttle hourly limit exceeded
  • CONN_EXCEED_MONTHLY_LIMIT: throttle monthly limit exceeded
  • CONN_THROTTLED: throttler and billing stuff
  • CONN_EXCEEDS_LIMITS: throttler and billing stuff
  • CONN_INSUFFICIENT_SCOPES: api key has insufficient permissions
  • CONN_KEY_INVALID: api key is invalid
  • CONN_KEY_NOT_FOUND: api key not found
  • CONN_BAD_REQUEST_FORMAT: multipart form parsing, broken json, etc
  • CONN_DOES_NOT_EXIST: when path is bad
  • CONN_INVALID_REQUEST: something wrong with a header
  • CONN_METHOD_NOT_ALLOWED: when a request method is not allowed
  • CONN_NO_GDPR_CONSENT: lack GDPR consent
  • CONN_AUTH_METHOD_DISABLED: authentication method is disabled
  • MODEL_TRAINED: Model/Custom Training related 20xxx

Custom model has been already trained.

  • MODEL_TRAINING: Custom model is currently training.
  • MODEL_UNTRAINED: Custom model has not yet been trained.
  • MODEL_QUEUED_FOR_TRAINING: Custom model is currently in queue for training, waiting on assets to process first.
  • MODEL_TRAINING_FAILED: generic err msg for any type of model training err.
  • MODEL_TRAINING_NO_DATA: Custom model training had no data. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg
  • MODEL_TRAINING_NO_POSITIVES: Custom model training had no positive examples. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg
  • MODEL_TRAINING_ONE_VS_N_SINGLE_CLASS: Custom model training was ONE_VS_N but with a single class. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg
  • MODEL_TRAINING_TIMED_OUT: Training took longer than hard coded timeouts. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg
  • MODEL_TRAINING_WAITING_ERROR: Training got error waiting on asset pipeline to finish. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg
  • MODEL_TRAINING_UNKNOWN_ERROR: Training threw an unknown exception.
  • MODEL_TRAINING_MSG_REDELIVER: Training message was redelivered. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg
  • MODEL_TRAINING_INSUFFICIENT_DATA: Training got error due to insufficient labelled data. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg
  • MODEL_TRAINING_INVALID_PARAMS: FIXME(yang): deprecate this. Use the 21106 + errStatusMsg
  • MODEL_TRAINING_INVALID_DATA_TOLERANCE_EXCEEDED: Training is stopped because too much data was dropped. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg
  • MODEL_EVALUATION_TIMED_OUT: Evaluation took longer than hard coded timeouts. FIXME(yang): deprecate this. Use the 21317 + errStatusMsg
  • MODEL_EVALUATION_WAITING_ERROR: Evaluation got error waiting on asset pipeline to finish.FIXME(yang): deprecate this. Use the 21317 + errStatusMsg
  • MODEL_EVALUATION_UNKNOWN_ERROR: EVALUATION THREW AN UNKNOWN EXCEPTION.
  • MODEL_EVALUATION_MSG_REDELIVER: Eval message was redelivered. FIXME(yang): deprecate this. Use the 21317 + errStatusMsg
  • MODEL_EVALUATION_NEED_LABELS: Don’t have enough concepts labelled to perform evaluation. FIXME(yang): deprecate this. Use the 21317 + errStatusMsg
  • MODEL_EVALUATION_NEED_INPUTS: Don’t have enough inputs per concept to perform evaluation. FIXME(yang): deprecate this. Use the 21317 + errStatusMsg
  • MODEL_EVALUATION_FAILED: Generic err code for eval failure.
  • MODEL_DEPLOYMENT_FAILED: Used when inference coordinator failed to deploy spire and throws an error
  • MODEL_DEPLOYING: Used when calling the inference coordinator to deploy a spire
  • MODEL_QUEUED_FOR_DEPLOYMENT: Used when training is completed
  • MODEL_NOT_DEPLOYED: Used when model spire deployment is manually taken down or due to inactivity
  • MODEL_REFERENCE_INVALID_ARGUMENT: Used when a model reference field is not set properly
  • MODEL_EXAMPLE_INPUT_INVALID_ARGUMENT: Used when a model example input field is not set properly
  • MODEL_EXPORTED: Model Export status codes
  • WORKFLOW_NO_MATCHING_INPUT: specified model input not in workflow
  • WORKFLOW_REQUIRE_TRAINED_MODEL: specified model must be trained
  • WORKFLOW_INVALID_ARGUMENT: error in the request somewhere
  • WORKFLOW_INVALID_REQUEST: error in the request somewhere
  • CONCEPT_MODIFY_SUCCESS: Concept related 23xxx
  • ANNOTATION_SUCCESS: Annotation related 24xxx
  • METADATA_INVALID_PATCH_ARGUMENTS: Metadata related 249xx
  • TRAINER_JOB_STATE_NONE: Training service related 25xxx
  • DATA_DUMP_SUCCESS: Data Dump related 251xx
  • DATA_DUMP_NO_DATA: DEPRECATED: Not used anymore. Now for an empty data dump, DATA_DUMP_SUCCESS is returned. To detect an empty data dump, check if the inptus count is 0.
  • APP_DUPLICATION_SUCCESS: Duplicate related 252xx
  • MODULE_DOES_NOT_EXIST: Module related codes 253xx
  • BULK_OPERATION_SUCCESS: Bulk Operation related codes 254xx
  • RUNNER_DOES_NOT_EXIST: Runner related codes 256xx
  • INPUT_DOWNLOAD_SUCCESS: Input:Image related 30xxx
  • INPUT_DOWNLOAD_PENDING: when things are async, this is the default status.
  • INPUT_DOWNLOAD_FAILED: any type of error downloading and processing
  • INPUT_VIDEO_DOWNLOAD_SUCCESS: Input:Video related 31xxx – Deprecated
  • INPUT_WRITES_DISABLED_FOR_MAINTENANCE: deprecate this one. Use REQUEST_DISABLED_FOR_MAINTENANCE
  • PREDICT_INVALID_REQUEST: API formatting issues 4000x
  • DATABASE_DUPLICATE_KEY: Other related 400xx
  • EXTERNAL_CONNECTION_ERROR: could not connect to external services
  • QUEUE_CONN_ERROR: Queue related errors 41xxx
  • SQS_OVERLIMIT: SQS related errors 411xx
  • SEARCH_INTERNAL_FAILURE: Search related errors 43xxxx
  • EVALUATION_QUEUED: Workflow evaluation err code
  • STRIPE_EVENT_ERROR: Stripe 44xxx
  • CACHE_MISS: Redis/Cache 45xxx
  • SIGNUP_EVENT_ERROR: Sift Science 46xxx
  • APP_COUNT_INVALID_MESSAGE: Application counts related errors 470xx
  • MP_DOWNLOAD_ERROR: Media processor related errors 471xx – DEPRECATED
  • DATATIER_CONN_ERROR: DataTier related error 472xx
  • USER_CONSENT_FACE: User legal consent stauts related 50xxx
  • WORKER_MISSING: Workers 51xxx
  • COLLECTOR_MISSING: Collectors 52xxx
  • SSO_IDENTITY_PROVIDER_DOES_NOT_EXIST: SSO 53xxx
  • TASK_IN_PROGRESS: Tasks 54xxx
    The task was created.
  • TASK_DONE: The task is completed.
  • TASK_WONT_DO: The task is marked as abandoned.
  • TASK_FAILED: An error occurred during add-task-annotations or add-auto-annotations pipeline.
  • TASK_IDLE: When an Auto Annotation task job has finished processing its last batch and is waiting for more dataset assets.
  • TASK_CONFLICT: The task operation is in conflict with the current state of the server.
  • TASK_NOT_IMPLEMENTED: Certain task-related scenarios are not implemented.
  • TASK_MISSING: Task was not found.
  • TASK_PERMISSION_DENIED: Not allowed to perform a task-related action.
  • LABEL_ORDER_PENDING: Label Order Related Status Code 55xxx
  • LICENSE_ACTIVE: License Related Status Code 600xx
  • LICENSE_DELETED: hidden state not reflected to users
  • PASSWORD_VALIDATION_SUCCESS: Password Related Status Code
  • FEATUREFLAG_CONFIG_NOT_FOUND: Feature flags status code
  • MAINTENANCE_SUCCESS: Maintenance status code
  • DATASET_VERSION_PENDING: Datasets 64xxx
    The dataset version is pending to be processed.
  • DATASET_VERSION_IN_PROGRESS: The dataset version is currently being processed.
  • DATASET_VERSION_READY: The dataset version is ready to be used.
  • DATASET_VERSION_FAILURE: An error occurred during the dataset version processing.
  • DATASET_VERSION_UNEXPECTED_ERROR: An unexpected error occurred during the dataset version processing.
  • DATASET_VERSION_CONFLICT: An alteration to dataset version would create a conflict
  • DATASET_INPUT_SUCCESS: The dataset input was successfully added.
  • DATASET_INPUT_DUPLICATE: The dataset input is a duplicate.
    Deprecated: Unused.
  • DATASET_VERSION_EXPORT_SUCCESS: The dataset version export is completed.
  • DATASET_VERSION_EXPORT_PENDING: The dataset version is pending to be exported.
  • DATASET_VERSION_EXPORT_FAILED: An error occurred during the dataset version export.
  • DATASET_VERSION_EXPORT_IN_PROGRESS: The dataset version is currently being exported.
  • DATASET_VERSION_EXPORT_UNEXPECTED_ERROR: An unexpected error occurred during the dataset version export.
  • JOB_QUEUED: Generic Job status codes
  • AUTH_MISSING_IDP_ASSOC: auth issues

TODO: Knowledge graph related 80xxx

  • UPLOAD_IN_PROGRESS: Multipart uploading status codes
  • BILLING_INVALID_INFO: Billing related issues: 69xxx
  • INTERNAL_SERVER_ISSUE: Internal issues: 98xxx
  • CONN_UNCATEGORIZED: Uncategorized: 99xxx: move off as soon as known
  • BAD_REQUEST: Deprecated: migrate off to one of the internal issues
  • SERVER_ERROR: Deprecated: migrate off to one of the internal issues
status.description query optional string

A short description of the error.

status.details query optional string

More details of the given error.
These details may be exposed to non-technical users.
For technical details, try to use developer_notes field.

status.stackTrace query optional array

For some environment we may return a stack trace to help debug
any issues.

status.percentCompleted query optional integer

specifically for long running jobs

status.timeRemaining query optional integer

if status is pending, how much time is remaining (in seconds)

status.reqId query optional string

A request ID may be present, to help monitoring and tracking requests

status.internalDetails query optional string

Internal Annotation (do not set in production, for internal Clarifai use only).

status.redirectInfo.url query optional string

New location for the resource. Used to set response Location header.

status.redirectInfo.resourceType query optional string

Resource type

status.redirectInfo.oldResourceId query optional string

Old resource id

status.redirectInfo.newResourceId query optional string

New resource id

status.developerNotes query optional string

Notes for developer.
These notes are rather technical details for developers how to interpret the status,
e.g. why an error occurred and how to avoid getting the error.

ids query optional array

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/inputs
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/inputs/jobs/add
operationId: V2_ListInputsAddJobs

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/inputs/jobs/add
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/inputs/jobs/add/{id}
operationId: V2_GetInputsAddJob

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
id path required string

id of add inputs job

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/inputs/jobs/add/{id}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/inputs/jobs/extraction
operationId: V2_ListInputsExtractionJobs

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/inputs/jobs/extraction
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/inputs/jobs/extraction/{inputsExtractionJobId}
operationId: V2_GetInputsExtractionJob

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
inputsExtractionJobId path required string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/inputs/jobs/extraction/{inputsExtractionJobId}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/inputs/status
operationId: V2_GetInputCount

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/inputs/status
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/inputs/stream
operationId: V2_StreamInputs

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 20.

lastId query optional string
orderById query optional boolean

By default, the endpoint return inputs by the time when it is added.
If this is set to true, we will return inputs by id.

descending query optional boolean

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/inputs/stream
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/inputs/{inputId}
operationId: V2_GetInput

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
inputId path required string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/inputs/{inputId}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/inputs/{inputId}/annotations/{annotationId}
operationId: V2_GetAnnotation

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
inputId path required string
annotationId path required string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/inputs/{inputId}/annotations/{annotationId}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/inputs/{inputId}/video_manifest
operationId: V2_GetInputVideoManifest

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
inputId path required string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/inputs/{inputId}/video_manifest
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/installed_module_versions
operationId: V2_ListInstalledModuleVersions

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/installed_module_versions
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/installed_module_versions/{installedModuleVersionId}
operationId: V2_GetInstalledModuleVersion

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
installedModuleVersionId path required string

the ID to get of the install module version.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/installed_module_versions/{installedModuleVersionId}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/keys
operationId: V2_ListAppKeys

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/keys
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/label_orders
operationId: V2_ListLabelOrders

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/label_orders
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/label_orders/{labelOrderId}
operationId: V2_GetLabelOrder

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
labelOrderId path required string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/label_orders/{labelOrderId}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models
operationId: V2_ListModels

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

additionalFields query optional array

(optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, outputs, presets

sortAscending query optional boolean

Sorting options:
Whether to sort in ascending order. If false, will order in descending order.

sortByName query optional boolean

Whether to order by the name

sortByNumInputs query optional boolean

Whether to order by the number of training inputs

sortByModifiedAt query optional boolean

Whether to order by the modified_at time of the latest model version.
If none of the sort options is set to true, will sort by modified_at.

sortByCreatedAt query optional boolean

Whether to order by the created_at

sortByStarCount query optional boolean

Whether to order by count of stars

modelTypeId query optional string

Filtering options:
Filter models by the specific model_type_id. See ListModelTypes for the list of ModelType.Id’s
supported.

trainedOnly query optional boolean

If true, we only return models that have the status MODEL_TRAINED, which includes non-trainable model types.

inputFields query optional array

The list of input fields to the model.
For example, you can specify ‘image’, which will return models that make inferences on images like visual-classifier models.

outputFields query optional array

The list of output fields to the model.
For example, you can specify ‘regions[…].data.concepts’, which will return visual-detector models.

license query optional string

Filter by the license of the model version

featuredOnly query optional boolean

If true, we only return models that are handpicked by clarifai staff

starredOnly query optional boolean

If true, we only return models that are starred by the requesting user

toolkits query optional array

List of toolkit tags to filter by

useCases query optional array

List of use_case tags to filter by

languages query optional array

List of language tags to filter by

dontFetchFromMain query optional boolean

Old API behavior resulted in returning clarifai main models when calling ListModels while scoped to an app. While we transition
away from that, we can use this flag to not always fetch clarifai main models, unless that is the app we are explicitly listing for.

bookmark query optional boolean

Filter models by bookmark. If set, only return bookmarked models. Otherwise none bookmarked models only.
Note: you can not filter trained_only and bookmark at the same time.
When filter by bookmark, we will return trained and untrained models.

search query optional string

Searching options:
Specify a search parameter in order to perform keyword search on the
following fields of the model:

  • id
  • name
  • description
  • notes
  • user_id (unless user_app_id.user_id is already set)

Keywords are both normalized for search (so searching for “satisfy” matches “satisfied”)
and used for partial prefix-matching (so searching for “clari” matches “clarifai”).

NOTE: Both the list of fields searched and the exact keyword matching
rules are subject to change and not guaranteed to be backwards-compatible.

query query optional string

Query name, description and id fields, that can contain the words in the query string. Does NOT support wildcards - full words only. Supports operators “OR” and “-“ as NOT.
Deprecated: use search instead.

name query optional string

Filter by the description and id of the model. This supports wildcard queries like “gen*” to match “general” as an example.
Deprecated: use search instead.

filterByUserId query optional boolean

Extends the name filter to include the user_id of the application owner that the model belongs to.
Deprecated: use search instead of name.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/types
operationId: V2_ListModelTypes

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/types
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/types/{modelTypeId}
operationId: V2_GetModelType

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
modelTypeId path required string

The specific ModelType.Id you want to retrieve.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/types/{modelTypeId}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}
operationId: V2_GetModel

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
modelId path required string
versionId query optional string

This is included so that we can re-use this request for multiple
rpcs with and without the version_id.

language query optional string
trainedBefore query optional boolean
additionalFields query optional array

(optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, outputs, presets

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/concepts
operationId: V2_ListModelConcepts

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
modelId path required string

Model id

versionId query optional string

Model version Id. Optional, if not provided latest model version is used.

page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

search query optional string

Searching options:
Specify a search parameter in order to perform keyword search on the
following fields of the concept:

  • id
  • name

Keywords are used for partial prefix-matching (so searching for “larif” matches “clarifai”).

NOTE: Both the list of fields searched and the exact keyword matching
rules are subject to change and not guaranteed to be backwards-compatible.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/concepts
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/inputs
operationId: V2_ListModelInputs

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
modelId path required string
versionId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/inputs
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/output_info
operationId: V2_GetModelOutputInfo

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
modelId path required string
versionId query optional string

This is included so that we can re-use this request for multiple
rpcs with and without the version_id.

language query optional string
trainedBefore query optional boolean
additionalFields query optional array

(optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, outputs, presets

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/output_info
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/references
operationId: V2_ListModelReferences

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
modelId path required string
page query optional integer

Optional, defaults to 1.

perPage query optional integer

Optional, defaults to 128 references per page.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/references
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/versions
operationId: V2_ListModelVersions

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
modelId path required string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

conceptIds query optional array

Filtering options:
To list only the model versions that have these concept ids present in them.

trainedOnly query optional boolean

To list only the model versions that have been trained.

sortAscending query optional boolean

Sorting options:
Whether to sort in ascending order. If false, will order in descending order.

sortByStatusCode query optional boolean

Whether to order by the status code

sortByNumInputs query optional boolean

Whether to order by the number of training inputs

sortByDescription query optional boolean

Whether to sort by the description

sortByCreatedAt query optional boolean

Whether to order by the created_at time
If neither sort option is set to true, will sort by created_at.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/versions
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/versions/{modelVersionId}/evaluations
operationId: V2_ListModelVersionEvaluations

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
modelId path required string
modelVersionId path required string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/versions/{modelVersionId}/evaluations
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/versions/{modelVersionId}/evaluations/{evaluationId}
operationId: V2_GetModelVersionEvaluation

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
modelId path required string
modelVersionId path required string
evaluationId path required string
fields.confusionMatrix query optional boolean
fields.cooccurrenceMatrix query optional boolean
fields.labelCounts query optional boolean
fields.binaryMetrics query optional boolean
fields.testSet query optional boolean
fields.metricsByArea query optional boolean
fields.metricsByClass query optional boolean

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/versions/{modelVersionId}/evaluations/{evaluationId}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/versions/{modelVersionId}/input_examples
operationId: V2_ListModelVersionInputExamples

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
modelId path required string

id of model the example belongs to

modelVersionId path required string

specific version the example belongs to

page query optional integer

Optional, defaults to 1.

perPage query optional integer

Optional, defaults to 128 references per page.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/versions/{modelVersionId}/input_examples
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/versions/{modelVersionId}/input_examples/{exampleId}
operationId: V2_GetModelVersionInputExample

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
modelId path required string

id of model the example belongs to

modelVersionId path required string

specific version the example belongs to

exampleId path required string

Id of example to fetch

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/versions/{modelVersionId}/input_examples/{exampleId}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/versions/{versionId}
operationId: V2_GetModelVersion

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
modelId path required string
versionId path required string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/versions/{versionId}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/versions/{versionId}/concepts
operationId: V2_ListModelConcepts2

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
modelId path required string

Model id

versionId path required string

Model version Id. Optional, if not provided latest model version is used.

page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

search query optional string

Searching options:
Specify a search parameter in order to perform keyword search on the
following fields of the concept:

  • id
  • name

Keywords are used for partial prefix-matching (so searching for “larif” matches “clarifai”).

NOTE: Both the list of fields searched and the exact keyword matching
rules are subject to change and not guaranteed to be backwards-compatible.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/versions/{versionId}/concepts
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/versions/{versionId}/exports
operationId: V2_GetModelVersionExport

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
modelId path required string
versionId path required string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/versions/{versionId}/exports
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/versions/{versionId}/inputs
operationId: V2_ListModelInputs3

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
modelId path required string
versionId path required string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/versions/{versionId}/inputs
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/versions/{versionId}/metrics
operationId: V2_GetModelVersionMetrics

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
modelId path required string
versionId path required string
fields.confusionMatrix query optional boolean
fields.cooccurrenceMatrix query optional boolean
fields.labelCounts query optional boolean
fields.binaryMetrics query optional boolean
fields.testSet query optional boolean
fields.metricsByArea query optional boolean
fields.metricsByClass query optional boolean

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/versions/{versionId}/metrics
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/versions/{versionId}/output_info
operationId: V2_GetModelOutputInfo3

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
modelId path required string
versionId path required string

This is included so that we can re-use this request for multiple
rpcs with and without the version_id.

language query optional string
trainedBefore query optional boolean
additionalFields query optional array

(optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, outputs, presets

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/models/{modelId}/versions/{versionId}/output_info
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/modules
operationId: V2_ListModules

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

additionalFields query optional array
sortAscending query optional boolean

Sorting options:
Whether to sort in ascending order. If false, will order in descending order.

sortByCreatedAt query optional boolean

Whether to order by the created_at time.

sortByStarCount query optional boolean

Whether to order by the number of users stared the app

sortByModifiedAt query optional boolean

If neither sort option is set to true, will sort by modified_at.

sortById query optional boolean

Whether to order by the external id

starredOnly query optional boolean

Filtering options:

bookmark query optional boolean

Filter modules by bookmark. If set, only return bookmarked modules. Otherwise none bookmarked modules only.

search query optional string

Searching options:
Specify a search parameter in order to perform keyword search on the
following fields of the module:

  • id
  • description
  • user_id (unless user_app_id.user_id is already set)

Keywords are both normalized for search (so searching for “satisfy” matches “satisfied”)
and used for partial prefix-matching (so searching for “clari” matches “clarifai”).

NOTE: Both the list of fields searched and the exact keyword matching
rules are subject to change and not guaranteed to be backwards-compatible.

name query optional string

Filter by the id and description of the module. This supports wildcard queries like “gen*” to match “general” as an example.
Deprecated: use search instead.

filterByUserId query optional boolean

Filter by the application owner whose this module belongs to
Deprecated: use search instead of name.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/modules
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/modules/{moduleId}
operationId: V2_GetModule

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
moduleId path required string
additionalFields query optional array

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/modules/{moduleId}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/modules/{moduleId}/versions
operationId: V2_ListModuleVersions

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
moduleId path required string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/modules/{moduleId}/versions
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/modules/{moduleId}/versions/{moduleVersionId}
operationId: V2_GetModuleVersion

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
moduleId path required string
moduleVersionId path required string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/modules/{moduleId}/versions/{moduleVersionId}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/modules/{moduleId}/versions/{moduleVersionId}/usage_count
operationId: V2_GetModuleVersionUsageCount

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
moduleId path required string
moduleVersionId path required string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/modules/{moduleId}/versions/{moduleVersionId}/usage_count
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/myscopes
operationId: V2_MyScopes

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/myscopes
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/resource_counts
operationId: V2_GetResourceCounts

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/resource_counts
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/searches
operationId: V2_ListSearches

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/searches
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/searches/{id}
operationId: V2_GetSearch

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
id path required string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/searches/{id}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/tasks
operationId: V2_ListTasks

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

workerUserIds query optional array

Get tasks that have ANY user from this list assigned as worker.

reviewUserIds query optional array

Get tasks that have ANY user from this list assigned as reviewer.

labelOrderIds query optional array

Get tasks that are associated to ANY label order from this list.

includingLabelOrderTasks query optional boolean

Get label order tasks as well
It is automatically set to true if label_order_ids is set.

additionalFields query optional array

(optional URL parameter) List of additional fields to be included in the response.
Currently supported additional fields:

  • all
  • worker.users
  • review.users
  • metrics.work.inputs_count_estimated
  • metrics.work.inputs_percent_estimated
ids query optional array

(optional) task IDs to filter on

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/tasks
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/tasks/{taskId}
operationId: V2_GetTask

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
taskId path required string
additionalFields query optional array

(optional URL parameter) List of additional fields to be included in the response.
Currently supported additional fields:

  • all
  • worker.users
  • review.users
  • metrics.work.inputs_count_estimated
  • metrics.work.inputs_percent_estimated

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/tasks/{taskId}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/tasks/{taskId}/annotations/count
operationId: V2_GetTaskAnnotationCount

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
taskId path required string

task_id for which count per user per status is needed

userIds query optional array

for given task_id, user_ids to filter on (optional)

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/tasks/{taskId}/annotations/count
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/tasks/{taskId}/assignments
operationId: V2_ListNextTaskAssignments

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
taskId path required string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/tasks/{taskId}/assignments
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/tasks/{taskId}/inputs/count
operationId: V2_GetTaskInputCount

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
taskId path required string

task_id for which count per user per status is needed

userIds query optional array

for given task_id, user_ids to filter on (optional)

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/tasks/{taskId}/inputs/count
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/tasks/{taskId}/inputs/samples
operationId: V2_GetInputSamples

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
taskId path required string
userIds query optional array

URL param. If zero ids provided, returns for all task labelers

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/tasks/{taskId}/inputs/samples
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/trending_metrics/views/{viewType}
operationId: V2_ListTrendingMetricsViews

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
viewType path required string

For now view types ‘apps’, ‘workflows’, and ‘models’ are supported.

page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/trending_metrics/views/{viewType}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/uploads
operationId: V2_ListUploads

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/uploads
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/uploads/{uploadId}
operationId: V2_GetUpload

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
uploadId path required string

Upload ID

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/uploads/{uploadId}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/workflows
operationId: V2_ListWorkflows

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

additionalFields query optional array

(optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars

sortAscending query optional boolean

Sorting options:
Whether to sort in ascending order. If false, will order in descending order.

sortById query optional boolean

Whether to order by the name

sortByModifiedAt query optional boolean

Whether to order by the modified_at time.
If none of the sort options is set to true, will sort by modified_at.

sortByCreatedAt query optional boolean

Whether to order by the created_at time.

sortByStarCount query optional boolean

Whether to order by the number of users stared the workflow

featuredOnly query optional boolean

Filtering options:
If true, we only return workflows that are handpicked by clarifai staff

starredOnly query optional boolean

If true, we only return workflows that are starred by the requesting user

bookmark query optional boolean

Filter workflows by bookmark. If set, only return bookmarked workflows. Otherwise none bookmarked workflows only.

search query optional string

Searching options:
Specify a search parameter in order to perform keyword search on the
following fields of the workflow:

  • id
  • description
  • notes
  • user_id (unless user_app_id.user_id is already set)

Keywords are both normalized for search (so searching for “satisfy” matches “satisfied”)
and used for partial prefix-matching (so searching for “clari” matches “clarifai”).

NOTE: Both the list of fields searched and the exact keyword matching
rules are subject to change and not guaranteed to be backwards-compatible.

query query optional string

Query various text fields (id, description and notes) that can contain the words in the query string.
Deprecated: use search instead.

id query optional string

Filter by the id of the workflow. This supports wilcard queries like “gen*” to match “general” as an example.
Deprecated: use search instead.

searchTerm query optional string

Full text and prefix matching on id, owner id, description and notes. Searchable fields may be added
Deprecated: use search instead.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/workflows
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/workflows/{workflowId}
operationId: V2_GetWorkflow

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
workflowId path required string

Workflow ID to retrieve
If no ID is specified we return default workflow of the application
If an ID is specified by default we first looks into Clarifai workflows for a Workflow ID

favorClarifaiWorkflows query optional boolean

Use this flag to look into clarifai published workflows first for a Workflow ID

additionalFields query optional array

(optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars

excludeClarifaiWorkflows query optional boolean

if true will not expand search to clarifai workflows

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/workflows/{workflowId}
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/workflows/{workflowId}/versions
operationId: V2_ListWorkflowVersions

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
workflowId path required string

List versions for the workflow identified by this id

page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/workflows/{workflowId}/versions
GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/workflows/{workflowId}/versions/{workflowVersionId}
operationId: V2_GetWorkflowVersion

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId path required string
workflowId path required string

The id of the workflow that has the requested version.

workflowVersionId path required string

Get the identified by this id

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/apps/{userAppId.appId}/workflows/{workflowId}/versions/{workflowVersionId}
GET /v2/users/{userAppId.userId}/collaborations
operationId: V2_ListCollaborations

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

templateOnly query optional boolean

Filtering options:
If true, we only return collaborations on apps that are marked as a template by the app owner.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/collaborations
GET /v2/users/{userAppId.userId}/datasets
operationId: V2_ListDatasets2

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

additionalFields query optional array
sortAscending query optional boolean

Sorting options:
Whether to sort in ascending order. If false, will order in descending order.

sortByCreatedAt query optional boolean

Whether to order by the created_at time.

sortByStarCount query optional boolean

Whether to order by the number of users stared the app

sortByModifiedAt query optional boolean

If neither sort option is set to true, will sort by modified_at.

sortById query optional boolean

Whether to order by the external id

starredOnly query optional boolean

Filtering options:

bookmark query optional boolean

Filter datasets by bookmark. If set, only return bookmarked datasets. Otherwise none bookmarked datasets only.

search query optional string

Searching options:
Specify a search parameter in order to perform keyword search on the
following fields of the dataset:

  • id
  • description
  • notes
  • user_id (unless user_app_id.user_id is already set)

Keywords are both normalized for search (so searching for “satisfy” matches “satisfied”)
and used for partial prefix-matching (so searching for “clari” matches “clarifai”).

NOTE: Both the list of fields searched and the exact keyword matching
rules are subject to change and not guaranteed to be backwards-compatible.

id query optional string

Fuzzy filter on dataset ID
Deprecated: use search instead.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/datasets
GET /v2/users/{userAppId.userId}/duplications
operationId: V2_ListAppDuplications

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/duplications
GET /v2/users/{userAppId.userId}/duplications/{appDuplicationId}
operationId: V2_GetAppDuplication

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

appDuplicationId path required string
userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/duplications/{appDuplicationId}
GET /v2/users/{userAppId.userId}/evaluations
operationId: V2_ListEvaluations2

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

sortAscending query optional boolean

If true, sort in ascending order, otherwise sort in descending order.

sortByAppId query optional boolean

Whether to order by application id

sortByRocAuc query optional boolean

Whether to order by eval metric summary.macro_avg_roc_auc

sortByF1 query optional boolean

Whether to order by eval metric summary.f1

sortByCreatedAt query optional boolean

Whether to order by when the metric was created

sortByMeanAvgPrecision query optional boolean

Whether to order by eval metric summary.mean_avg_precision_iou_50

sortByPrecision query optional boolean

Whether to order by eval metric summary.macro_avg_precision

sortByRecall query optional boolean

Whether to order by eval metric summary.macro_avg_recall

sortByModelId query optional boolean
sortByEvalDatasetId query optional boolean
sortByTrainDatasetId query optional boolean
modelTypeId query optional string

Filter on model type id

evalDatasetIds query optional array

Filter on dataset ID of the dataset version specified in the metric version

trainDatasetIds query optional array

Filter on dataset ID of the dataset version specified by the model version

conceptIds query optional array

Filter on concept IDs specified in the modele version’s output_info

showFailedMetrics query optional boolean

Whether to show failed metrics, defaults to false

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/evaluations
GET /v2/users/{userAppId.userId}/keys
operationId: V2_ListKeys

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

notExpired query optional boolean
scopes query optional array
endpoints query optional array

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/keys
GET /v2/users/{userAppId.userId}/keys/{keyId}
operationId: V2_GetKey

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

keyId path required string
userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/keys/{keyId}
GET /v2/users/{userAppId.userId}/models
operationId: V2_ListModels2

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

additionalFields query optional array

(optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars, outputs, presets

sortAscending query optional boolean

Sorting options:
Whether to sort in ascending order. If false, will order in descending order.

sortByName query optional boolean

Whether to order by the name

sortByNumInputs query optional boolean

Whether to order by the number of training inputs

sortByModifiedAt query optional boolean

Whether to order by the modified_at time of the latest model version.
If none of the sort options is set to true, will sort by modified_at.

sortByCreatedAt query optional boolean

Whether to order by the created_at

sortByStarCount query optional boolean

Whether to order by count of stars

modelTypeId query optional string

Filtering options:
Filter models by the specific model_type_id. See ListModelTypes for the list of ModelType.Id’s
supported.

trainedOnly query optional boolean

If true, we only return models that have the status MODEL_TRAINED, which includes non-trainable model types.

inputFields query optional array

The list of input fields to the model.
For example, you can specify ‘image’, which will return models that make inferences on images like visual-classifier models.

outputFields query optional array

The list of output fields to the model.
For example, you can specify ‘regions[…].data.concepts’, which will return visual-detector models.

license query optional string

Filter by the license of the model version

featuredOnly query optional boolean

If true, we only return models that are handpicked by clarifai staff

starredOnly query optional boolean

If true, we only return models that are starred by the requesting user

toolkits query optional array

List of toolkit tags to filter by

useCases query optional array

List of use_case tags to filter by

languages query optional array

List of language tags to filter by

dontFetchFromMain query optional boolean

Old API behavior resulted in returning clarifai main models when calling ListModels while scoped to an app. While we transition
away from that, we can use this flag to not always fetch clarifai main models, unless that is the app we are explicitly listing for.

bookmark query optional boolean

Filter models by bookmark. If set, only return bookmarked models. Otherwise none bookmarked models only.
Note: you can not filter trained_only and bookmark at the same time.
When filter by bookmark, we will return trained and untrained models.

search query optional string

Searching options:
Specify a search parameter in order to perform keyword search on the
following fields of the model:

  • id
  • name
  • description
  • notes
  • user_id (unless user_app_id.user_id is already set)

Keywords are both normalized for search (so searching for “satisfy” matches “satisfied”)
and used for partial prefix-matching (so searching for “clari” matches “clarifai”).

NOTE: Both the list of fields searched and the exact keyword matching
rules are subject to change and not guaranteed to be backwards-compatible.

query query optional string

Query name, description and id fields, that can contain the words in the query string. Does NOT support wildcards - full words only. Supports operators “OR” and “-“ as NOT.
Deprecated: use search instead.

name query optional string

Filter by the description and id of the model. This supports wildcard queries like “gen*” to match “general” as an example.
Deprecated: use search instead.

filterByUserId query optional boolean

Extends the name filter to include the user_id of the application owner that the model belongs to.
Deprecated: use search instead of name.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/models
GET /v2/users/{userAppId.userId}/modules
operationId: V2_ListModules2

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

additionalFields query optional array
sortAscending query optional boolean

Sorting options:
Whether to sort in ascending order. If false, will order in descending order.

sortByCreatedAt query optional boolean

Whether to order by the created_at time.

sortByStarCount query optional boolean

Whether to order by the number of users stared the app

sortByModifiedAt query optional boolean

If neither sort option is set to true, will sort by modified_at.

sortById query optional boolean

Whether to order by the external id

starredOnly query optional boolean

Filtering options:

bookmark query optional boolean

Filter modules by bookmark. If set, only return bookmarked modules. Otherwise none bookmarked modules only.

search query optional string

Searching options:
Specify a search parameter in order to perform keyword search on the
following fields of the module:

  • id
  • description
  • user_id (unless user_app_id.user_id is already set)

Keywords are both normalized for search (so searching for “satisfy” matches “satisfied”)
and used for partial prefix-matching (so searching for “clari” matches “clarifai”).

NOTE: Both the list of fields searched and the exact keyword matching
rules are subject to change and not guaranteed to be backwards-compatible.

name query optional string

Filter by the id and description of the module. This supports wildcard queries like “gen*” to match “general” as an example.
Deprecated: use search instead.

filterByUserId query optional boolean

Filter by the application owner whose this module belongs to
Deprecated: use search instead of name.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/modules
GET /v2/users/{userAppId.userId}/myscopes
operationId: V2_MyScopesUser

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/myscopes
GET /v2/users/{userAppId.userId}/runners
operationId: V2_ListRunners

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/runners
GET /v2/users/{userAppId.userId}/runners/{runnerId}
operationId: V2_GetRunner

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

runnerId path required string
userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/runners/{runnerId}
GET /v2/users/{userAppId.userId}/runners/{runnerId}/items
operationId: V2_ListRunnerItems

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

runnerId path required string
userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/runners/{runnerId}/items
GET /v2/users/{userAppId.userId}/scopes
operationId: V2_ListScopes

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

keyType query optional string

If “personal_access_token” include scopes and endpoints available to personal access tokens.
If “api_key” include scopes and endpoints available to app-specific keys. (default)

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/scopes
GET /v2/users/{userAppId.userId}/workflows
operationId: V2_ListWorkflows2

Parameters

Name In Required Type Description
userAppId.userId path required string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

additionalFields query optional array

(optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars

sortAscending query optional boolean

Sorting options:
Whether to sort in ascending order. If false, will order in descending order.

sortById query optional boolean

Whether to order by the name

sortByModifiedAt query optional boolean

Whether to order by the modified_at time.
If none of the sort options is set to true, will sort by modified_at.

sortByCreatedAt query optional boolean

Whether to order by the created_at time.

sortByStarCount query optional boolean

Whether to order by the number of users stared the workflow

featuredOnly query optional boolean

Filtering options:
If true, we only return workflows that are handpicked by clarifai staff

starredOnly query optional boolean

If true, we only return workflows that are starred by the requesting user

bookmark query optional boolean

Filter workflows by bookmark. If set, only return bookmarked workflows. Otherwise none bookmarked workflows only.

search query optional string

Searching options:
Specify a search parameter in order to perform keyword search on the
following fields of the workflow:

  • id
  • description
  • notes
  • user_id (unless user_app_id.user_id is already set)

Keywords are both normalized for search (so searching for “satisfy” matches “satisfied”)
and used for partial prefix-matching (so searching for “clari” matches “clarifai”).

NOTE: Both the list of fields searched and the exact keyword matching
rules are subject to change and not guaranteed to be backwards-compatible.

query query optional string

Query various text fields (id, description and notes) that can contain the words in the query string.
Deprecated: use search instead.

id query optional string

Filter by the id of the workflow. This supports wilcard queries like “gen*” to match “general” as an example.
Deprecated: use search instead.

searchTerm query optional string

Full text and prefix matching on id, owner id, description and notes. Searchable fields may be added
Deprecated: use search instead.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/users/{userAppId.userId}/workflows
GET /v2/workflows
operationId: V2_ListWorkflows3

Parameters

Name In Required Type Description
userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

additionalFields query optional array

(optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars

sortAscending query optional boolean

Sorting options:
Whether to sort in ascending order. If false, will order in descending order.

sortById query optional boolean

Whether to order by the name

sortByModifiedAt query optional boolean

Whether to order by the modified_at time.
If none of the sort options is set to true, will sort by modified_at.

sortByCreatedAt query optional boolean

Whether to order by the created_at time.

sortByStarCount query optional boolean

Whether to order by the number of users stared the workflow

featuredOnly query optional boolean

Filtering options:
If true, we only return workflows that are handpicked by clarifai staff

starredOnly query optional boolean

If true, we only return workflows that are starred by the requesting user

bookmark query optional boolean

Filter workflows by bookmark. If set, only return bookmarked workflows. Otherwise none bookmarked workflows only.

search query optional string

Searching options:
Specify a search parameter in order to perform keyword search on the
following fields of the workflow:

  • id
  • description
  • notes
  • user_id (unless user_app_id.user_id is already set)

Keywords are both normalized for search (so searching for “satisfy” matches “satisfied”)
and used for partial prefix-matching (so searching for “clari” matches “clarifai”).

NOTE: Both the list of fields searched and the exact keyword matching
rules are subject to change and not guaranteed to be backwards-compatible.

query query optional string

Query various text fields (id, description and notes) that can contain the words in the query string.
Deprecated: use search instead.

id query optional string

Filter by the id of the workflow. This supports wilcard queries like “gen*” to match “general” as an example.
Deprecated: use search instead.

searchTerm query optional string

Full text and prefix matching on id, owner id, description and notes. Searchable fields may be added
Deprecated: use search instead.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/workflows
GET /v2/workflows/{workflowId}
operationId: V2_GetWorkflow2

Parameters

Name In Required Type Description
workflowId path required string

Workflow ID to retrieve
If no ID is specified we return default workflow of the application
If an ID is specified by default we first looks into Clarifai workflows for a Workflow ID

userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
favorClarifaiWorkflows query optional boolean

Use this flag to look into clarifai published workflows first for a Workflow ID

additionalFields query optional array

(optional URL parameter) List of additional fields to be included in the response. Currently supported: all, stars

excludeClarifaiWorkflows query optional boolean

if true will not expand search to clarifai workflows

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/workflows/{workflowId}
GET /v2/workflows/{workflowId}/versions
operationId: V2_ListWorkflowVersions2

Parameters

Name In Required Type Description
workflowId path required string

List versions for the workflow identified by this id

userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string
page query optional integer

(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.

perPage query optional integer

(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/workflows/{workflowId}/versions
GET /v2/workflows/{workflowId}/versions/{workflowVersionId}
operationId: V2_GetWorkflowVersion2

Parameters

Name In Required Type Description
workflowId path required string

The id of the workflow that has the requested version.

workflowVersionId path required string

Get the identified by this id

userAppId.userId query optional string

Note user_id ‘me’ is reserved - it is the alias for the id of authorized user

userAppId.appId query optional string

Responses

default

An unexpected error response.

200

A successful response.

GET /v2/workflows/{workflowId}/versions/{workflowVersionId}

Schemas

string BookmarkOriginBookmarkType
{
  "enum": [
    "unknown",
    "model",
    "workflow",
    "dataset",
    "module"
  ],
  "type": "string",
  "default": "unknown"
}
string CloudRegionCloud
{
  "enum": [
    "UNKOWN_CLOUD",
    "SELF_HOSTED",
    "AWS",
    "GCP",
    "AZURE",
    "LAMBDA"
  ],
  "type": "string",
  "default": "UNKOWN_CLOUD",
  "description": " - SELF_HOSTED: Run on a user's own infrastructure. This has restrictions on who can access resources\nthat are being run by SELF_HOSTED runners. Only those who are part of the user/org where they\nexist can leverage them."
}
string DeploymentSchedulingChoice
{
  "enum": [
    "UNKNOWN_SCHEDULING_CHOICE",
    "FAIL",
    "RANDOM",
    "PRICE",
    "PERFORMANCE",
    "NETWORK",
    "UTILIZATION",
    "PREFER_SPOT",
    "PREFER_ONDEMAND"
  ],
  "type": "string",
  "default": "UNKNOWN_SCHEDULING_CHOICE",
  "description": "In some scenarios it may not be obvous how we should schedule a resource to underlying nodes\nwithin the nodepool(s) above. The SchedulerChoice allows us to specify how to decide which\nnodepool to use when there are multiple nodepools and how to decide which type of node\nwithin a nodepool if there are multiple types.\nIf here are multiple nondepools then a decision on which to use comes into play\nif it is not specified in the prediction request.\nEven with a single nodepool a choice may come up such as when a resource that needs scheduling\nhas not specified the accelerator types it supports and the nodepool has multiple types.\n\n - FAIL: fail if there is any ambiguity.\n - RANDOM: randomly pick amongst the nodepools/nodes to assign.\n - PRICE: choose the compute that is cheaper\n - PERFORMANCE: schedule to the fastest known iption.\n - NETWORK: optimize based on network latency.\n - UTILIZATION: send to the least used nodepool based on it's capacity.\n - PREFER_SPOT: choose spot instances over on-demand\n - PREFER_ONDEMAND: choose on-demand instances over spot."
}
object MatrixUint64
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uint64"
      },
      "description": "Matrix data stored as an array.\nIn order to access matrix element at row i & column j, use data[i*n_cols+j]."
    },
    "nCols": {
      "type": "string",
      "title": "Number of columns",
      "format": "uint64"
    }
  },
  "description": "Store matrix of uint64s values.\nIt is recommended to store the matrix as a 1D array\nbecause it produces less bytes during serialization than a 2D array.\nThe matrix does store the number of columns, but it does not store the number of rows.\nThe number of rows can automatically be calculated as length(data)/n_cols."
}
string ModelTypeFieldModelTypeFieldType
{
  "enum": [
    "INVALID_MODEL_TYPE_FIELD_TYPE",
    "BOOLEAN",
    "STRING",
    "NUMBER",
    "ARRAY_OF_CONCEPTS",
    "ARRAY_OF_CONCEPTS_WITH_THRESHOLD",
    "RANGE",
    "ENUM",
    "COLLABORATORS",
    "JSON",
    "ARRAY_OF_NUMBERS",
    "WORKFLOW_EMBED_MODELS",
    "ARRAY_OF_STRINGS",
    "RECURSIVE_ENUM",
    "PYTHON_CODE",
    "DATASET_ID",
    "DATASET_VERSION_ID",
    "ARRAY_OF_MODEL_CONCEPTS",
    "DATASET",
    "DATASET_VERSION",
    "ENCRYPTED_STRING",
    "CHECKPOINT_MODEL"
  ],
  "type": "string",
  "default": "INVALID_MODEL_TYPE_FIELD_TYPE",
  "description": "These are various types of fields that we have UIs for.\n\n - ARRAY_OF_CONCEPTS: For auto-completing to concepts in the app. This goes into an data.concepts field.\n - ARRAY_OF_CONCEPTS_WITH_THRESHOLD: For auto-completing to concepts in the app. This goes into an data.concepts field.\n - RANGE: A range for a float value.\n - ENUM: If ENUM is used then the \"enum_options\" field should also be filled in with the respective ID and description\nfor the different ENUM options.\n - COLLABORATORS: For listing collaborators of the app. The field is a string of the collaborator's user_id.\n - JSON: For arbitrary json object: \"{...}\"\n - ARRAY_OF_NUMBERS: Such as [1.0, 2.0, 3.5]\n - WORKFLOW_EMBED_MODELS: For selecting the embed_model_version_id for context based models.\n - ARRAY_OF_STRINGS: Such as ['a', 'b', 'cantaloupe']\n - RECURSIVE_ENUM: If RECURSIVE_ENUM is used then the \"enum_options\" field should also be filled in with the respective ID and\ndescription for the different RECURSIVE_ENUM options, as well as model_type_fields for each enum choice.\n - PYTHON_CODE: For blocks of code that need to be specified by the user for setup or execution during workflow runs.\n - DATASET_ID: For selecting a dataset id in model parameters. String in API request.\n - DATASET_VERSION_ID: For selecting a dataset version id. String.\n - ARRAY_OF_MODEL_CONCEPTS: For auto-completing to concepts in the model.\n - DATASET: For selecting a dataset\n - DATASET_VERSION: For selecting a dataset version\n - ENCRYPTED_STRING: To pass a string downstream, that is encrypted in the DB and API.\n - CHECKPOINT_MODEL: For selecting a model version of the same model type to resume training from."
}
object ModuleVersionModuleNav
{
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "description": "This is the left side title for this module and for browser tab title of the module.\nWe have this in the version so that users can change those settings\nwhen releasing a new version of their module."
    },
    "moduleSubNavs": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ModuleVersionModuleSubNav"
      },
      "description": "A list of subnav elements to put under the module title."
    }
  }
}
object ModuleVersionModuleSubNav
{
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "description": "This is the display title for a navbar element to link to a specific page.\nThe name for this subnav element to show in the sidebar."
    },
    "queryKey": {
      "type": "string",
      "title": "The query param name"
    },
    "queryValue": {
      "type": "string",
      "title": "The query param value"
    }
  }
}
string NodepoolCapacityType
{
  "enum": [
    "UKNOWN_CAPACITY_TYPE",
    "ONDEMAND_TYPE",
    "SPOT_TYPE"
  ],
  "type": "string",
  "default": "UKNOWN_CAPACITY_TYPE",
  "description": "Type of nodes that are ok for instances in this pool.\nIf both spot and on-demand are provided then the runner will be able to run on either\nwith a preference for spot until they are not available."
}
string SearchMetric
{
  "enum": [
    "METRIC_NOT_SET",
    "EUCLIDEAN_DISTANCE",
    "COSINE_DISTANCE"
  ],
  "type": "string",
  "default": "METRIC_NOT_SET",
  "description": "Metric used for search. Can be EUCLIDEAN_DISTANCE (default) or COSINE_DISTANCE.\nCurrently only brute force search supports non-eudlicean metrics."
}
string SplitIntoDatasetsDatasetSplitMethod
{
  "enum": [
    "NOT_SET",
    "RANDOM_PERCENTAGE_SPLIT"
  ],
  "type": "string",
  "title": "- RANDOM_PERCENTAGE_SPLIT: We will randomly split inputs into the datasets",
  "default": "NOT_SET"
}
string TaskInputSourceTaskInputSourceType
{
  "enum": [
    "INPUT_SOURCE_TYPE_NOT_SET",
    "ALL_INPUTS",
    "SAVED_SEARCH",
    "DATASET"
  ],
  "type": "string",
  "default": "INPUT_SOURCE_TYPE_NOT_SET",
  "description": " - ALL_INPUTS: Use all inputs in the app.\n - SAVED_SEARCH: Use the inputs from a saved search.\n - DATASET: Inputs from a dataset."
}
string TaskReviewTaskReviewStrategy
{
  "enum": [
    "TASK_REVIEW_STRATEGY_NOT_SET",
    "NONE",
    "MANUAL",
    "CONSENSUS"
  ],
  "type": "string",
  "default": "TASK_REVIEW_STRATEGY_NOT_SET",
  "description": " - NONE: No review is needed.\n - MANUAL: Manual review strategy.\n - CONSENSUS: Consensus review strategy."
}
string TaskTaskType
{
  "enum": [
    "TYPE_NOT_SET",
    "CONCEPTS_CLASSIFICATION",
    "BOUNDING_BOX_DETECTION",
    "POLYGON_DETECTION"
  ],
  "type": "string",
  "default": "TYPE_NOT_SET",
  "description": " - CONCEPTS_CLASSIFICATION: Concepts classification tasks annotate concepts for the overall image, frame of video or section of text.\n - BOUNDING_BOX_DETECTION: Bounding box detection tasks annotate rectangular bounding box regions around each concept in an image, frame of video or section of text.\n - POLYGON_DETECTION: Polygon detection tasks annotate free-form regions around concepts in an image, frame of video or section of text."
}
string TaskWorkerPartitionedStrategyInfoTaskWorkerPartitionedStrategy
{
  "enum": [
    "PARTITIONED_WORKER_STRATEGY_NOT_SET",
    "EVENLY",
    "WEIGHTED"
  ],
  "type": "string",
  "default": "PARTITIONED_WORKER_STRATEGY_NOT_SET",
  "description": " - EVENLY: Each worker will label (approximately) the same number of inputs.\n - WEIGHTED: Each worker will have an assigned weight.\nSee weights field for more details."
}
string TaskWorkerTaskWorkerStrategy
{
  "enum": [
    "WORKER_STRATEGY_NOT_SET",
    "PARTITIONED",
    "FULL"
  ],
  "type": "string",
  "default": "WORKER_STRATEGY_NOT_SET",
  "description": " - PARTITIONED: The inputs will be partitioned in several partitions.\nEach worker will label one or more input partitions.\n - FULL: Each worker will label all inputs from input source."
}
object V2CancelBulkOperationsRequest
{
  "type": "object",
  "title": "Cancel a list of bulk operation ids",
  "properties": {
    "ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "title": "List of bulk operation ids to be cancelled"
    },
    "userAppId": {
      "type": "object",
      "description": "Common message to identify the app in a url endpoint."
    }
  }
}
object V2CancelInputsAddJob2Request
{
  "type": "object",
  "properties": {
    "userAppId": {
      "$ref": "#/components/schemas/apiUserAppIDSet"
    }
  }
}
object V2CancelInputsAddJobRequest
{
  "type": "object",
  "properties": {
    "userAppId": {
      "type": "object",
      "description": "Common message to identify the app in a url endpoint."
    }
  }
}
object V2CancelInputsExtractionJobsRequest
{
  "type": "object",
  "title": "Cancel a list of extraction job ids",
  "properties": {
    "ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "title": "List of extraction job ids to be cancelled"
    },
    "userAppId": {
      "type": "object",
      "description": "Common message to identify the app in a url endpoint."
    }
  }
}
object V2DeleteAnnotationFiltersRequest
{
  "type": "object",
  "properties": {
    "userAppId": {
      "type": "object",
      "description": "Common message to identify the app in a url endpoint."
    },
    "annotationFilterIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Specify which filters to delete."
    }
  },
  "description": "Request to delete several annotation filters by list of ids."
}
object V2DeleteAnnotations3Request
{
  "type": "object",
  "properties": {
    "ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "title": "Delete annotations with IDs"
    },
    "inputIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "title": "Delete annotations for these Input IDs\nNote that 'ids' are optional but if the are provided the number and order in\n'ids' and 'input_ids' should match\nIf you do not specifiy 'ids' all the annotations for 'input_ids' are deleted\nHowever you need to specify at least one value for 'input_ids'\ni.e. this API does not support deleting all annotations"
    },
    "userAppId": {
      "type": "object",
      "description": "Common message to identify the app in a url endpoint."
    }
  },
  "description": "Request to delete several things by the list of ids."
}
object V2DeleteBulkOperationsRequest
{
  "type": "object",
  "properties": {
    "ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "title": "List of bulk operation ids to be deleted"
    },
    "userAppId": {
      "type": "object",
      "description": "Common message to identify the app in a url endpoint."
    }
  },
  "description": "Request to delete the terminated bulk operations by ID\nOnly operations in terminated state can be deleted."
}
object V2DeleteCollaboratorsRequest
{
  "type": "object",
  "title": "DeleteCollaboratorsRequest",
  "properties": {
    "userAppId": {
      "type": "object",
      "description": "Common message to identify the app in a url endpoint."
    },
    "userEmails": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "collaboratorIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}
object V2DeleteCollectorsRequest
{
  "type": "object",
  "properties": {
    "ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "deleteAll": {
      "type": "boolean"
    },
    "userAppId": {
      "type": "object",
      "description": "Common message to identify the app in a url endpoint."
    }
  },
  "description": "Request to delete several things by the list of ids."
}
object V2DeleteConceptRelationsRequest
{
  "type": "object",
  "title": "DELETE concept relations",
  "properties": {
    "ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The concept relationship ids to delete."
    },
    "userAppId": {
      "type": "object",
      "title": "The user_id and app_id information.",
      "description": "The user_id and app_id information."
    }
  }
}
object V2DeleteDatasetInputs2Request
{
  "type": "object",
  "properties": {
    "inputIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Specify which inputs to delete from dataset."
    },
    "userAppId": {
      "$ref": "#/components/schemas/apiUserAppIDSet"
    }
  },
  "description": "Request to delete several dataset inputs by list of ids."
}
object V2DeleteDatasetInputsRequest
{
  "type": "object",
  "properties": {
    "inputIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Specify which inputs to delete from dataset."
    },
    "userAppId": {
      "type": "object",
      "description": "Common message to identify the app in a url endpoint."
    }
  },
  "description": "Request to delete several dataset inputs by list of ids."
}
object V2DeleteDatasetVersions2Request
{
  "type": "object",
  "properties": {
    "userAppId": {
      "$ref": "#/components/schemas/apiUserAppIDSet"
    },
    "datasetVersionIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "description": "Request to delete several dataset versions by list of ids."
}
object V2DeleteDatasetVersionsRequest
{
  "type": "object",
  "properties": {
    "userAppId": {
      "type": "object",
      "description": "Common message to identify the app in a url endpoint."
    },
    "datasetVersionIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "description": "Request to delete several dataset versions by list of ids."
}
object V2DeleteDatasetsRequest
{
  "type": "object",
  "properties": {
    "userAppId": {
      "type": "object",
      "description": "Common message to identify the app in a url endpoint."
    },
    "datasetIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "description": "Request to delete several datasets by list of ids."
}
object V2DeleteInputsRequest
{
  "type": "object",
  "properties": {
    "ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "userAppId": {
      "type": "object",
      "description": "Common message to identify the app in a url endpoint."
    }
  },
  "description": "Request to delete several things by the list of ids."
}
object V2DeleteInstalledModuleVersionsRequest
{
  "type": "object",
  "properties": {
    "ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "userAppId": {
      "type": "object",
      "description": "Common message to identify the app in a url endpoint."
    }
  },
  "description": "Request to delete several installed module versions by the list of ids."
}
object V2DeleteLabelOrdersRequest
{
  "type": "object",
  "properties": {
    "ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "userAppId": {
      "type": "object",
      "description": "Common message to identify the app in a url endpoint."
    }
  },
  "description": "Request to delete a list of label orders."
}
object V2DeleteModuleVersionsRequest
{
  "type": "object",
  "properties": {
    "ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "userAppId": {
      "type": "object",
      "description": "Common message to identify the app in a url endpoint."
    }
  },
  "description": "Request to delete several module versions by the list of ids."
}
object V2DeleteRunnersRequest
{
  "type": "object",
  "properties": {
    "ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "userAppId": {
      "type": "object",
      "properties": {
        "appId": {
          "type": "string"
        }
      },
      "description": "Common message to identify the app in a url endpoint."
    }
  },
  "description": "Request to delete several things by the list of ids."
}
object V2DeleteTasksRequest
{
  "type": "object",
  "properties": {
    "ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "userAppId": {
      "type": "object",
      "description": "Common message to identify the app in a url endpoint."
    }
  },
  "description": "Request to delete a list of tasks."
}
object V2DeleteUploadsRequest
{
  "type": "object",
  "title": "Stops or deletes multipart upload",
  "properties": {
    "ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "userAppId": {
      "type": "object",
      "description": "Common message to identify the app in a url endpoint."
    }
  }
}
object V2DeleteWorkflowVersions2Request
{
  "type": "object",
  "title": "DeleteWorkflowVersionsRequest",
  "properties": {
    "userAppId": {
      "$ref": "#/components/schemas/apiUserAppIDSet"
    },
    "workflowVersionIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "title": "Delete the versions identified by these ids"
    }
  }
}
object V2DeleteWorkflowVersionsRequest
{
  "type": "object",
  "title": "DeleteWorkflowVersionsRequest",
  "properties": {
    "userAppId": {
      "type": "object",
      "description": "Common message to identify the app in a url endpoint."
    },
    "workflowVersionIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "title": "Delete the versions identified by these ids"
    }
  }
}
object V2GenerateModelOutputs2Response
{
  "type": "object",
  "title": "Stream result of apiMultiOutputResponse",
  "properties": {
    "error": {
      "$ref": "#/components/schemas/googlerpcStatus"
    },
    "result": {
      "$ref": "#/components/schemas/apiMultiOutputResponse"
    }
  }
}
object V2GenerateModelOutputsResponse
{
  "type": "object",
  "title": "Stream result of apiMultiOutputResponse",
  "properties": {
    "error": {
      "$ref": "#/components/schemas/googlerpcStatus"
    },
    "result": {
      "$ref": "#/components/schemas/apiMultiOutputResponse"
    }
  }
}
object V2PatchAnnotationFiltersRequest
{
  "type": "object",
  "properties": {
    "action": {
      "type": "string",
      "title": "The action to perform on the patched objects\nFor now, only 'overwrite' action is supported"
    },
    "userAppId": {
      "type": "object",
      "description": "Common message to identify the app in a url endpoint."
    },
    "annotationFilters": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/apiAnnotationFilter"
      },
      "description": "List of annotation filters that are requested to be updated."
    }
  },
  "description": "Request to patch several annotation filters."
}
object V2PatchAnnotationsRequest
{
  "type": "object",
  "title": "PatchAnnotationsRequest",
  "properties": {
    "action": {
      "type": "string",
      "title": "The action to perform on the patched objects\nFor now actions 'merge', 'overwrite', and 'remove' are supported"
    },
    "userAppId": {
      "type": "object",
      "description": "Common message to identify the app in a url endpoint."
    },
    "annotations": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/clarifaiapiAnnotation"
      }
    },
    "deleteIfEmptyData": {
      "type": "boolean",
      "description": "If the request is a \"remove\" action and the annotation is left with empty data,\nthen setting delete_if_empty_data to true will delete the annotation,\nif possible (for example, will not delete an input-level annotation)."
    }
  }
}
object V2PatchAnnotationsSearchesRequest
{
  "type": "object",
  "properties": {
    "action": {
      "type": "string",
      "title": "The action to perform on the patched Search objects\nFor now only action 'overwrite' is supported"
    },
    "searches": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/apiSearch"
      },
      "title": "The searches to be patched"
    },
    "userAppId": {
      "type": "object",
      "title": "The user_id and app_id to query from.",
      "description": "The user_id and app_id to query from."
    }
  }
}
object V2PatchAnnotationsStatusRequest
{
  "type": "object",
  "title": "PatchAnnotationsStatusRequest",
  "properties": {
    "action": {
      "type": "string",
      "title": "'overwrite' is supported"
    },
    "userIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "title": "Filter by user IDs"
    },
    "userAppId": {
      "type": "object",
      "description": "Common message to identify the app in a url endpoint."
    },
    "statusCode": {
      "$ref": "#/components/schemas/statusStatusCode"
    },
    "statusCodes": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/statusStatusCode"
      },
      "title": "Filter by Status codes"
    }
  }
}
object V2PatchAppRequest
{
  "type": "object",
  "title": "PatchAppRequest",
  "properties": {
    "app": {
      "$ref": "#/components/schemas/apiApp"
    },
    "action": {
      "type": "string",
      "description": "The action to perform on the patched App object except App.Metadata\nSupported values: 'overwrite' and 'remove'.\n\nNote that 'remove' can only be used to remove the app image by setting\n'image.url' in the request to the current value returned for the app."
    },
    "reindex": {
      "type": "boolean",
      "description": "If set, the app will be automatically reindexed upon change of its base workflow."
    },
    "userAppId": {
      "type": "object",
      "description": "Common message to identify the app in a url endpoint."
    },
    "metadataAction": {
      "$ref": "#/components/schemas/apiPatchAction"
    }
  }
}
object V2PatchAppsIdsRequest
{
  "type": "object",
  "title": "PatchAppsIdsRequest",
  "properties": {
    "ids": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/apiIdUpdateSource"
      },
      "title": "Array containing 1 entry"
    },
    "action": {
      "type": "string",
      "title": "The action to perform on the patched objects\nOnly 'overwrite' is supported"
    },
    "userAppId": {
      "type": "object",
      "properties": {
        "appId": {
          "type": "string"
        }
      },
      "description": "Common message to identify the app in a url endpoint."
    }
  }
}
object V2PatchAppsRequest
{
  "type": "object",
  "title": "PatchAppsRequest",
  "properties": {
    "apps": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/apiApp"
      }
    },
    "action": {
      "type": "string",
      "description": "The action to perform on the patched App objects except App.Metadata\nSupported values: 'overwrite' and 'remove'.\n\nNote that 'remove' can only be used to remove the app image by setting\n'image.url' in the request to the current value returned for that app."
    },
    "reindex": {
      "type": "boolean",
      "description": "If set, the app will be automatically reindexed upon change of its base workflow."
    },
    "userAppId": {
      "type": "object",
      "properties": {
        "appId": {
          "type": "string"
        }
      },
      "description": "Common message to identify the app in a url endpoint."
    },
    "metadataAction": {
      "$ref": "#/components/schemas/apiPatchAction"
    }
  }
}
object V2PatchCollaboratorsRequest
{
  "type": "object",
  "title": "PatchCollaboratorsRequest",
  "properties": {
    "action": {
      "type": "string",
      "title": "The action to perform on the patched objects\nFor now only action 'overwrite' is supported"
    },
    "userAppId": {
      "type": "object",
      "description": "Common message to identify the app in a url endpoint."
    },
    "collaborators": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/apiCollaborator"
      }
    }
  }
}
object V2PatchCollectorsRequest
{
  "type": "object",
  "title": "PatchCollectorsRequest",
  "properties": {
    "action": {
      "type": "string",
      "title": "The action to perform on the patched objects\nOnly 'overwrite' is supported"
    },
    "userAppId": {
      "type": "object",
      "description": "Common message to identify the app in a url endpoint."
    },
    "collectors": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/apiCollector"
      }
    }
  }
}

Versions

Version Endpoints Schemas Ingested Status
version not set 400 543 2026-05-11 current
version not set 400 543 2026-04-16