Datasaur GraphQL API Reference

Datasaur GraphQL API Reference

API Endpoints
# Production:
https://app.datasaur.ai/graphql
Headers
Authorization: Bearer <YOUR_TOKEN_HERE>

Queries

attemptTeamAction

Response

Returns a Boolean!

Arguments
Name Description
action - TeamActionNames!
teamId - ID!

Example

Query
query AttemptTeamAction(
  $action: TeamActionNames!,
  $teamId: ID!
) {
  attemptTeamAction(
    action: $action,
    teamId: $teamId
  )
}
Variables
{
  "action": "MANAGE_EXTERNAL_PROVIDER",
  "teamId": "4"
}
Response
{"data": {"attemptTeamAction": false}}

checkExternalObjectStorageConnection

Response

Returns a Boolean!

Arguments
Name Description
input - CreateExternalObjectStorageInput!

Example

Query
query CheckExternalObjectStorageConnection($input: CreateExternalObjectStorageInput!) {
  checkExternalObjectStorageConnection(input: $input)
}
Variables
{"input": CreateExternalObjectStorageInput}
Response
{"data": {"checkExternalObjectStorageConnection": false}}

checkForMaliciousSite

Response

Returns a Boolean!

Arguments
Name Description
url - String!

Example

Query
query CheckForMaliciousSite($url: String!) {
  checkForMaliciousSite(url: $url)
}
Variables
{"url": "abc123"}
Response
{"data": {"checkForMaliciousSite": false}}

checkLlmVectorStoreSourceRules

Breaking changes may be introduced anytime in the future without prior notice.
Arguments
Name Description
llmVectorStoreId - ID!
input - LlmVectorStoreSourceCreateInput!

Example

Query
query CheckLlmVectorStoreSourceRules(
  $llmVectorStoreId: ID!,
  $input: LlmVectorStoreSourceCreateInput!
) {
  checkLlmVectorStoreSourceRules(
    llmVectorStoreId: $llmVectorStoreId,
    input: $input
  ) {
    valid
    invalidRules {
      includePatterns
      excludePatterns
    }
  }
}
Variables
{
  "llmVectorStoreId": 4,
  "input": LlmVectorStoreSourceCreateInput
}
Response
{
  "data": {
    "checkLlmVectorStoreSourceRules": {
      "valid": false,
      "invalidRules": LlmVectorStoreSourceInvalidRules
    }
  }
}

checkS3BucketForbidden

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns a Boolean

Arguments
Name Description
teamId - ID!
bucketName - String!

Example

Query
query CheckS3BucketForbidden(
  $teamId: ID!,
  $bucketName: String!
) {
  checkS3BucketForbidden(
    teamId: $teamId,
    bucketName: $bucketName
  )
}
Variables
{"teamId": 4, "bucketName": "abc123"}
Response
{"data": {"checkS3BucketForbidden": true}}

countProjectsByExternalObjectStorageId

Response

Returns an Int!

Arguments
Name Description
input - String!

Example

Query
query CountProjectsByExternalObjectStorageId($input: String!) {
  countProjectsByExternalObjectStorageId(input: $input)
}
Variables
{"input": "xyz789"}
Response
{"data": {"countProjectsByExternalObjectStorageId": 123}}

dictionaryLookup

Response

Returns a DictionaryResult!

Arguments
Name Description
word - String!
lang - String

Example

Query
query DictionaryLookup(
  $word: String!,
  $lang: String
) {
  dictionaryLookup(
    word: $word,
    lang: $lang
  ) {
    word
    lang
    entries {
      lexicalCategory
      definitions {
        ...DefinitionEntryFragment
      }
    }
  }
}
Variables
{
  "word": "abc123",
  "lang": "abc123"
}
Response
{
  "data": {
    "dictionaryLookup": {
      "word": "abc123",
      "lang": "abc123",
      "entries": [DictionaryResultEntry]
    }
  }
}

dictionaryLookupBatch

Response

Returns [DictionaryResult!]!

Arguments
Name Description
words - [String!]!
lang - String!

Example

Query
query DictionaryLookupBatch(
  $words: [String!]!,
  $lang: String!
) {
  dictionaryLookupBatch(
    words: $words,
    lang: $lang
  ) {
    word
    lang
    entries {
      lexicalCategory
      definitions {
        ...DefinitionEntryFragment
      }
    }
  }
}
Variables
{
  "words": ["abc123"],
  "lang": "xyz789"
}
Response
{
  "data": {
    "dictionaryLookupBatch": [
      {
        "word": "xyz789",
        "lang": "xyz789",
        "entries": [DictionaryResultEntry]
      }
    ]
  }
}

executeExportFileTransformer

Description

Simulates what an export file transformer will do to a document in a project, or to a project sample One of documentId or projectSampleId is required

Arguments
Name Description
fileTransformerId - ID!
documentId - ID
projectSampleId - ID

Example

Query
query ExecuteExportFileTransformer(
  $fileTransformerId: ID!,
  $documentId: ID,
  $projectSampleId: ID
) {
  executeExportFileTransformer(
    fileTransformerId: $fileTransformerId,
    documentId: $documentId,
    projectSampleId: $projectSampleId
  )
}
Variables
{
  "fileTransformerId": 4,
  "documentId": "4",
  "projectSampleId": 4
}
Response
{
  "data": {
    "executeExportFileTransformer": ExportFileTransformerExecuteResult
  }
}

executeImportFileTransformer

Description

Simulates what an import file transformer will do to an input

Arguments
Name Description
fileTransformerId - ID!
content - String!

Example

Query
query ExecuteImportFileTransformer(
  $fileTransformerId: ID!,
  $content: String!
) {
  executeImportFileTransformer(
    fileTransformerId: $fileTransformerId,
    content: $content
  )
}
Variables
{
  "fileTransformerId": "4",
  "content": "abc123"
}
Response
{
  "data": {
    "executeImportFileTransformer": ImportFileTransformerExecuteResult
  }
}

exportActivities

Response

Returns an ExportRequestResult!

Arguments
Name Description
input - ExportActivitiesInput!

Example

Query
query ExportActivities($input: ExportActivitiesInput!) {
  exportActivities(input: $input) {
    exportId
    fileUrl
    fileUrlExpiredAt
    key
    queued
    redirect
  }
}
Variables
{"input": ExportActivitiesInput}
Response
{
  "data": {
    "exportActivities": {
      "exportId": 4,
      "fileUrl": "xyz789",
      "fileUrlExpiredAt": "abc123",
      "key": "abc123",
      "queued": false,
      "redirect": "xyz789"
    }
  }
}

exportChart

Response

Returns an ExportRequestResult!

Arguments
Name Description
id - ID!
input - AnalyticsDashboardQueryInput!
method - ExportChartMethod

Example

Query
query ExportChart(
  $id: ID!,
  $input: AnalyticsDashboardQueryInput!,
  $method: ExportChartMethod
) {
  exportChart(
    id: $id,
    input: $input,
    method: $method
  ) {
    exportId
    fileUrl
    fileUrlExpiredAt
    key
    queued
    redirect
  }
}
Variables
{
  "id": 4,
  "input": AnalyticsDashboardQueryInput,
  "method": "EMAIL"
}
Response
{
  "data": {
    "exportChart": {
      "exportId": "4",
      "fileUrl": "abc123",
      "fileUrlExpiredAt": "abc123",
      "key": "abc123",
      "queued": false,
      "redirect": "xyz789"
    }
  }
}

exportCustomReport

Description

Exports custom report.

Response

Returns an ExportRequestResult!

Arguments
Name Description
teamId - ID!
input - CustomReportBuilderInput!

Example

Query
query ExportCustomReport(
  $teamId: ID!,
  $input: CustomReportBuilderInput!
) {
  exportCustomReport(
    teamId: $teamId,
    input: $input
  ) {
    exportId
    fileUrl
    fileUrlExpiredAt
    key
    queued
    redirect
  }
}
Variables
{"teamId": 4, "input": CustomReportBuilderInput}
Response
{
  "data": {
    "exportCustomReport": {
      "exportId": 4,
      "fileUrl": "xyz789",
      "fileUrlExpiredAt": "xyz789",
      "key": "abc123",
      "queued": false,
      "redirect": "abc123"
    }
  }
}

exportLlmApplicationDeploymentLog

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns an ExportRequestResult!

Arguments
Name Description
input - ExportLlmApplicationDeploymentLogInput!

Example

Query
query ExportLlmApplicationDeploymentLog($input: ExportLlmApplicationDeploymentLogInput!) {
  exportLlmApplicationDeploymentLog(input: $input) {
    exportId
    fileUrl
    fileUrlExpiredAt
    key
    queued
    redirect
  }
}
Variables
{"input": ExportLlmApplicationDeploymentLogInput}
Response
{
  "data": {
    "exportLlmApplicationDeploymentLog": {
      "exportId": 4,
      "fileUrl": "xyz789",
      "fileUrlExpiredAt": "xyz789",
      "key": "xyz789",
      "queued": false,
      "redirect": "xyz789"
    }
  }
}

exportLlmEvaluationAutomated

Breaking changes may be introduced anytime in the future without prior notice.
Description

Exports automated LLM evaluation.

Response

Returns an ExportRequestResult!

Arguments
Name Description
input - ExportLlmEvaluationAutomatedInput!

Example

Query
query ExportLlmEvaluationAutomated($input: ExportLlmEvaluationAutomatedInput!) {
  exportLlmEvaluationAutomated(input: $input) {
    exportId
    fileUrl
    fileUrlExpiredAt
    key
    queued
    redirect
  }
}
Variables
{"input": ExportLlmEvaluationAutomatedInput}
Response
{
  "data": {
    "exportLlmEvaluationAutomated": {
      "exportId": "4",
      "fileUrl": "abc123",
      "fileUrlExpiredAt": "xyz789",
      "key": "xyz789",
      "queued": false,
      "redirect": "xyz789"
    }
  }
}

exportLlmEvaluationManual

Breaking changes may be introduced anytime in the future without prior notice.
Description

Exports the LLM manual evaluation.

Response

Returns an ExportRequestResult!

Arguments
Name Description
input - ExportLlmEvaluationManualInput!

Example

Query
query ExportLlmEvaluationManual($input: ExportLlmEvaluationManualInput!) {
  exportLlmEvaluationManual(input: $input) {
    exportId
    fileUrl
    fileUrlExpiredAt
    key
    queued
    redirect
  }
}
Variables
{"input": ExportLlmEvaluationManualInput}
Response
{
  "data": {
    "exportLlmEvaluationManual": {
      "exportId": 4,
      "fileUrl": "xyz789",
      "fileUrlExpiredAt": "xyz789",
      "key": "xyz789",
      "queued": true,
      "redirect": "xyz789"
    }
  }
}

exportTeamIAA

Please use exportTeamIAAV2 instead.
Description

Exports team IAA.

Response

Returns an ExportRequestResult!

Arguments
Name Description
teamId - ID!
labelSetSignatures - [String!]
method - IAAMethodName
projectIds - [ID!]

Example

Query
query ExportTeamIAA(
  $teamId: ID!,
  $labelSetSignatures: [String!],
  $method: IAAMethodName,
  $projectIds: [ID!]
) {
  exportTeamIAA(
    teamId: $teamId,
    labelSetSignatures: $labelSetSignatures,
    method: $method,
    projectIds: $projectIds
  ) {
    exportId
    fileUrl
    fileUrlExpiredAt
    key
    queued
    redirect
  }
}
Variables
{
  "teamId": 4,
  "labelSetSignatures": ["xyz789"],
  "method": "COHENS_KAPPA",
  "projectIds": [4]
}
Response
{
  "data": {
    "exportTeamIAA": {
      "exportId": 4,
      "fileUrl": "abc123",
      "fileUrlExpiredAt": "xyz789",
      "key": "xyz789",
      "queued": true,
      "redirect": "xyz789"
    }
  }
}

exportTeamIAAV2

Description

Exports team IAA.

Response

Returns an ExportRequestResult!

Arguments
Name Description
input - IAAInput!

Example

Query
query ExportTeamIAAV2($input: IAAInput!) {
  exportTeamIAAV2(input: $input) {
    exportId
    fileUrl
    fileUrlExpiredAt
    key
    queued
    redirect
  }
}
Variables
{"input": IAAInput}
Response
{
  "data": {
    "exportTeamIAAV2": {
      "exportId": "4",
      "fileUrl": "abc123",
      "fileUrlExpiredAt": "abc123",
      "key": "abc123",
      "queued": true,
      "redirect": "xyz789"
    }
  }
}

exportTeamOverview

Description

Exports team overview.

Response

Returns an ExportRequestResult!

Arguments
Name Description
input - ExportTeamOverviewInput!

Example

Query
query ExportTeamOverview($input: ExportTeamOverviewInput!) {
  exportTeamOverview(input: $input) {
    exportId
    fileUrl
    fileUrlExpiredAt
    key
    queued
    redirect
  }
}
Variables
{"input": ExportTeamOverviewInput}
Response
{
  "data": {
    "exportTeamOverview": {
      "exportId": "4",
      "fileUrl": "abc123",
      "fileUrlExpiredAt": "xyz789",
      "key": "xyz789",
      "queued": true,
      "redirect": "xyz789"
    }
  }
}

exportTestProjectResult

Description

Exports test project result.

Response

Returns an ExportRequestResult!

Arguments
Name Description
input - ExportTestProjectResultInput!

Example

Query
query ExportTestProjectResult($input: ExportTestProjectResultInput!) {
  exportTestProjectResult(input: $input) {
    exportId
    fileUrl
    fileUrlExpiredAt
    key
    queued
    redirect
  }
}
Variables
{"input": ExportTestProjectResultInput}
Response
{
  "data": {
    "exportTestProjectResult": {
      "exportId": 4,
      "fileUrl": "xyz789",
      "fileUrlExpiredAt": "xyz789",
      "key": "abc123",
      "queued": true,
      "redirect": "abc123"
    }
  }
}

exportTextProject

Description

Exports all files in a project.

Response

Returns an ExportRequestResult!

Arguments
Name Description
input - ExportTextProjectInput!

Example

Query
query ExportTextProject($input: ExportTextProjectInput!) {
  exportTextProject(input: $input) {
    exportId
    fileUrl
    fileUrlExpiredAt
    key
    queued
    redirect
  }
}
Variables
{"input": ExportTextProjectInput}
Response
{
  "data": {
    "exportTextProject": {
      "exportId": "4",
      "fileUrl": "xyz789",
      "fileUrlExpiredAt": "xyz789",
      "key": "xyz789",
      "queued": true,
      "redirect": "xyz789"
    }
  }
}

exportTextProjectDocument

Description

Exports a single document / file.

Response

Returns an ExportRequestResult!

Arguments
Name Description
input - ExportTextProjectDocumentInput!

Example

Query
query ExportTextProjectDocument($input: ExportTextProjectDocumentInput!) {
  exportTextProjectDocument(input: $input) {
    exportId
    fileUrl
    fileUrlExpiredAt
    key
    queued
    redirect
  }
}
Variables
{"input": ExportTextProjectDocumentInput}
Response
{
  "data": {
    "exportTextProjectDocument": {
      "exportId": "4",
      "fileUrl": "xyz789",
      "fileUrlExpiredAt": "abc123",
      "key": "abc123",
      "queued": true,
      "redirect": "abc123"
    }
  }
}

generateFileUrls

Response

Returns [FileUrlInfo!]!

Arguments
Name Description
input - GenerateFileUrlsInput!

Example

Query
query GenerateFileUrls($input: GenerateFileUrlsInput!) {
  generateFileUrls(input: $input) {
    uploadUrl
    downloadUrl
    fileName
  }
}
Variables
{"input": GenerateFileUrlsInput}
Response
{
  "data": {
    "generateFileUrls": [
      {
        "uploadUrl": "xyz789",
        "downloadUrl": "abc123",
        "fileName": "xyz789"
      }
    ]
  }
}

getActivities

Response

Returns a GetActivitiesResponse!

Arguments
Name Description
input - GetActivitiesInput!

Example

Query
query GetActivities($input: GetActivitiesInput!) {
  getActivities(input: $input) {
    totalCount
    pageInfo {
      prevCursor
      nextCursor
    }
    nodes {
      event
      visibility
      teamId
      userId
      userDisplayName
      createdAt
      projectId
      projectName
      documentId
      documentType
      documentName
      labelAddressHashCode
      labelType
      bulkId
      additionalData {
        ...ActivityAdditionalDataFragment
      }
    }
  }
}
Variables
{"input": GetActivitiesInput}
Response
{
  "data": {
    "getActivities": {
      "totalCount": 123,
      "pageInfo": PageInfo,
      "nodes": [ActivityEvent]
    }
  }
}

getActivitiesSuggestion

Arguments
Name Description
input - GetActivitiesSuggestionInput!

Example

Query
query GetActivitiesSuggestion($input: GetActivitiesSuggestionInput!) {
  getActivitiesSuggestion(input: $input) {
    suggestions {
      displayName
      id
      groupId
    }
  }
}
Variables
{"input": GetActivitiesSuggestionInput}
Response
{
  "data": {
    "getActivitiesSuggestion": {
      "suggestions": [ActivitySuggestion]
    }
  }
}

getAllExtensions

Response

Returns [ExtensionGroup!]!

Example

Query
query GetAllExtensions {
  getAllExtensions {
    kind
    extensions {
      id
      title
      url
      elementType
      elementKind
      documentType
    }
  }
}
Response
{
  "data": {
    "getAllExtensions": [
      {
        "kind": "DOCUMENT_BASED",
        "extensions": [Extension]
      }
    ]
  }
}

getAllTeams

Response

Returns [Team!]!

Example

Query
query GetAllTeams {
  getAllTeams {
    id
    logoURL
    members {
      id
      user {
        ...UserFragment
      }
      userId
      role {
        ...TeamRoleFragment
      }
      invitationEmail
      invitationStatus
      invitationKey
      isDeleted
      joinedDate
      performance {
        ...TeamMemberPerformanceFragment
      }
      labelingAgent {
        ...LabelingAgentFragment
      }
      labelingAgentId
    }
    membersScalar
    name
    setting {
      activitySettings {
        ...TeamActivitySettingsFragment
      }
      additionalSetting {
        ...AdditionalTeamSettingFragment
      }
      allowedAdminExportMethods
      allowedLabelerExportMethods
      allowedOCRProviders
      allowedASRProviders
      allowedReviewerExportMethods
      commentNotificationType
      customAPICreationLimit
      defaultCustomTextExtractionAPIId
      defaultExternalObjectStorageId
      enabledCustomObjectStorage
      enableActions
      enableAddDocumentsToProject
      enableDemo
      enableDataProgramming
      enableLabelingFunctionMultipleLabel
      enableDatasaurAssistRowBased
      enableDatasaurDinamicTokenBased
      enableDatasaurPredictiveRowBased
      enableLabelingAgentSpanBased
      enableWipeData
      enableExportTeamOverview
      enableSelfAssignment
      enableTransferOwnership
      enableLabelErrorDetectionRowBased
      allowedExtraAutoLabelProviders
      enableLLMProject
      enableRegexSentenceSeparator
      enableTeamRoleSupervisor
      endExtensionTrialAt
      allowInvalidPaymentMethod
      enableExternalKnowledgeBase
      enableForceAnonymization
      enableReviewIndicator
      enableValidationScript
      enableSpanLabelingWithRowQuestions
      llmFreeTrialDailyLimitsConfig {
        ...LlmFreeTrialDailyLimitsConfigFragment
      }
      enableScriptGeneratedQuestion
      rowModification {
        ...RowModificationSettingFragment
      }
      enableDeployedApplicationLogging
      enableRealTimeAssistedLabelingSpanBased
      enableLabelsAndAnswersExportFormat
      enableGoogleDriveExternalObjectStorage
      enableMLAssistedOptimizationByDefault
    }
    owner {
      id
      samlId
      amazonCustomerId
      username
      name
      email
      package
      profilePicture
      allowedActions
      displayName
      teamPackage
      emailVerified
      totpAuthEnabled
      companyName
      createdAt
      signUpParams {
        ...SignUpParamsFragment
      }
    }
    isExpired
    expiredAt
  }
}
Response
{
  "data": {
    "getAllTeams": [
      {
        "id": 4,
        "logoURL": "abc123",
        "members": [TeamMember],
        "membersScalar": TeamMembersScalar,
        "name": "abc123",
        "setting": TeamSetting,
        "owner": User,
        "isExpired": false,
        "expiredAt": "2007-12-03T10:15:30Z"
      }
    ]
  }
}

getAllowedIPs

Response

Returns [String!]!

Example

Query
query GetAllowedIPs {
  getAllowedIPs
}
Response
{"data": {"getAllowedIPs": ["abc123"]}}

getAnalyticsLastUpdatedAt

This Query will be removed in the future, please use getChartsLastUpdatedAt.
Response

Returns a String!

Example

Query
query GetAnalyticsLastUpdatedAt {
  getAnalyticsLastUpdatedAt
}
Response
{
  "data": {
    "getAnalyticsLastUpdatedAt": "abc123"
  }
}

getAnalyticsPerformance

Response

Returns a GetAnalyticsPerformanceResult!

Arguments
Name Description
input - GetAnalyticsPerformanceInput!

Example

Query
query GetAnalyticsPerformance($input: GetAnalyticsPerformanceInput!) {
  getAnalyticsPerformance(input: $input) {
    documentStatus {
      documentId
      status
    }
    numberOfMissedLabels
    numberOfAnsweredLines
    activeDurationInMillis
    projectStatisticsPerLabelType {
      kind
      labelEntityType
      applied
      conflicted
      accepted
      rejected
    }
  }
}
Variables
{"input": GetAnalyticsPerformanceInput}
Response
{
  "data": {
    "getAnalyticsPerformance": {
      "documentStatus": [DocumentStatus],
      "numberOfMissedLabels": 123,
      "numberOfAnsweredLines": 123,
      "activeDurationInMillis": 987,
      "projectStatisticsPerLabelType": [
        ProjectStatisticPerLabelType
      ]
    }
  }
}

getAppSettingValue

Response

Returns a String!

Arguments
Name Description
key - String!

Example

Query
query GetAppSettingValue($key: String!) {
  getAppSettingValue(key: $key)
}
Variables
{"key": "abc123"}
Response
{"data": {"getAppSettingValue": "xyz789"}}

getAutoLabel

Arguments
Name Description
input - AutoLabelTokenBasedInput

Example

Query
query GetAutoLabel($input: AutoLabelTokenBasedInput) {
  getAutoLabel(input: $input) {
    label
    deleted
    layer
    start {
      sentenceId
      tokenId
      charId
    }
    end {
      sentenceId
      tokenId
      charId
    }
    confidenceScore
    error {
      status
      message
    }
    providerRawResponse {
      provider
      completionChoices {
        ...ExtendedChatCompletionChoiceFragment
      }
    }
  }
}
Variables
{"input": AutoLabelTokenBasedInput}
Response
{
  "data": {
    "getAutoLabel": [
      {
        "label": "abc123",
        "deleted": true,
        "layer": 123,
        "start": TextCursor,
        "end": TextCursor,
        "confidenceScore": 123.45,
        "error": AutoLabelError,
        "providerRawResponse": LLMLabsResponse
      }
    ]
  }
}

getAutoLabelBBoxBased

Response

Returns [AutoLabelBBoxBasedOutput!]!

Arguments
Name Description
input - AutoLabelBBoxBasedInput

Example

Query
query GetAutoLabelBBoxBased($input: AutoLabelBBoxBasedInput) {
  getAutoLabelBBoxBased(input: $input) {
    id
    documentId
    bboxLabelClassId
    caption
    shapes {
      pageIndex
      points {
        ...BBoxPointFragment
      }
    }
    confidenceScore
    error {
      status
      message
    }
    providerRawResponse {
      provider
      completionChoices {
        ...ExtendedChatCompletionChoiceFragment
      }
    }
  }
}
Variables
{"input": AutoLabelBBoxBasedInput}
Response
{
  "data": {
    "getAutoLabelBBoxBased": [
      {
        "id": 4,
        "documentId": 4,
        "bboxLabelClassId": 4,
        "caption": "xyz789",
        "shapes": [BBoxShape],
        "confidenceScore": 123.45,
        "error": AutoLabelError,
        "providerRawResponse": LLMLabsResponse
      }
    ]
  }
}

getAutoLabelDocBased

Response

Returns an AutoLabelDocBasedOutput!

Arguments
Name Description
input - AutoLabelDocBasedInput

Example

Query
query GetAutoLabelDocBased($input: AutoLabelDocBasedInput) {
  getAutoLabelDocBased(input: $input) {
    documentId
    answers
    providerRawResponse {
      provider
      completionChoices {
        ...ExtendedChatCompletionChoiceFragment
      }
    }
  }
}
Variables
{"input": AutoLabelDocBasedInput}
Response
{
  "data": {
    "getAutoLabelDocBased": {
      "documentId": 4,
      "answers": AnswerScalar,
      "providerRawResponse": LLMLabsResponse
    }
  }
}

getAutoLabelModels

Response

Returns [AutoLabelModel!]!

Arguments
Name Description
input - AutoLabelModelsInput!

Example

Query
query GetAutoLabelModels($input: AutoLabelModelsInput!) {
  getAutoLabelModels(input: $input) {
    name
    provider
    privacy
  }
}
Variables
{"input": AutoLabelModelsInput}
Response
{
  "data": {
    "getAutoLabelModels": [
      {
        "name": "abc123",
        "provider": "CUSTOM",
        "privacy": "PUBLIC"
      }
    ]
  }
}

getAutoLabelRowBased

Response

Returns [AutoLabelRowBasedOutput!]!

Arguments
Name Description
input - AutoLabelRowBasedInput

Example

Query
query GetAutoLabelRowBased($input: AutoLabelRowBasedInput) {
  getAutoLabelRowBased(input: $input) {
    id
    label
    error {
      status
      message
    }
    providerRawResponse {
      provider
      completionChoices {
        ...ExtendedChatCompletionChoiceFragment
      }
    }
  }
}
Variables
{"input": AutoLabelRowBasedInput}
Response
{
  "data": {
    "getAutoLabelRowBased": [
      {
        "id": 123,
        "label": "abc123",
        "error": AutoLabelError,
        "providerRawResponse": LLMLabsResponse
      }
    ]
  }
}

getAvailableLlmVectorStoreFilePropertiesExtractors

Example

Query
query GetAvailableLlmVectorStoreFilePropertiesExtractors {
  getAvailableLlmVectorStoreFilePropertiesExtractors {
    type
    configurationSchema
  }
}
Response
{
  "data": {
    "getAvailableLlmVectorStoreFilePropertiesExtractors": [
      {
        "type": "xyz789",
        "configurationSchema": LlmVectorStoreFilePropertiesExtractorConfigurationSchema
      }
    ]
  }
}

getAwsMarketplaceNlpFreeTrialExpiration

Arguments
Name Description
teamId - ID!

Example

Query
query GetAwsMarketplaceNlpFreeTrialExpiration($teamId: ID!) {
  getAwsMarketplaceNlpFreeTrialExpiration(teamId: $teamId) {
    expiredAt
    isExpired
  }
}
Variables
{"teamId": "4"}
Response
{
  "data": {
    "getAwsMarketplaceNlpFreeTrialExpiration": {
      "expiredAt": "xyz789",
      "isExpired": false
    }
  }
}

getBBoxLabelConflictContributorIds

Response

Returns [ConflictContributorIds!]!

Arguments
Name Description
documentId - ID!
labelHashCodes - [String!]

Example

Query
query GetBBoxLabelConflictContributorIds(
  $documentId: ID!,
  $labelHashCodes: [String!]
) {
  getBBoxLabelConflictContributorIds(
    documentId: $documentId,
    labelHashCodes: $labelHashCodes
  ) {
    labelHashCode
    contributorIds
    contributorInfos {
      id
      labelPhase
      acceptedByUserId
      rejectedByUserId
      userId
      teamMemberId
    }
  }
}
Variables
{
  "documentId": "4",
  "labelHashCodes": ["abc123"]
}
Response
{
  "data": {
    "getBBoxLabelConflictContributorIds": [
      {
        "labelHashCode": "abc123",
        "contributorIds": [123],
        "contributorInfos": [ContributorInfo]
      }
    ]
  }
}

getBBoxLabelSetsByProject

Response

Returns [BBoxLabelSet!]!

Arguments
Name Description
projectId - ID!

Example

Query
query GetBBoxLabelSetsByProject($projectId: ID!) {
  getBBoxLabelSetsByProject(projectId: $projectId) {
    id
    name
    classes {
      id
      name
      color
      captionAllowed
      captionRequired
      questions {
        ...QuestionFragment
      }
    }
    autoLabelProvider
  }
}
Variables
{"projectId": "4"}
Response
{
  "data": {
    "getBBoxLabelSetsByProject": [
      {
        "id": "4",
        "name": "xyz789",
        "classes": [BBoxLabelClass],
        "autoLabelProvider": "TESSERACT"
      }
    ]
  }
}

getBBoxLabelsByDocument

Response

Returns [BBoxLabel!]!

Arguments
Name Description
documentId - ID!

Example

Query
query GetBBoxLabelsByDocument($documentId: ID!) {
  getBBoxLabelsByDocument(documentId: $documentId) {
    id
    documentId
    bboxLabelClassId
    deleted
    caption
    shapes {
      pageIndex
      points {
        ...BBoxPointFragment
      }
    }
    answers
    labeledBy
    labeledByUserId
  }
}
Variables
{"documentId": 4}
Response
{
  "data": {
    "getBBoxLabelsByDocument": [
      {
        "id": 4,
        "documentId": 4,
        "bboxLabelClassId": 4,
        "deleted": false,
        "caption": "xyz789",
        "shapes": [BBoxShape],
        "answers": AnswerScalar,
        "labeledBy": "PRELABELED",
        "labeledByUserId": 4
      }
    ]
  }
}

getBBoxLabelsPaginated

Response

Returns a GetBBoxLabelsPaginatedResponse!

Arguments
Name Description
documentId - ID!
input - GetBBoxLabelsPaginatedInput!

Example

Query
query GetBBoxLabelsPaginated(
  $documentId: ID!,
  $input: GetBBoxLabelsPaginatedInput!
) {
  getBBoxLabelsPaginated(
    documentId: $documentId,
    input: $input
  ) {
    totalCount
    pageInfo {
      prevCursor
      nextCursor
    }
    nodes {
      id
      documentId
      bboxLabelClassId
      deleted
      caption
      shapes {
        ...BBoxShapeFragment
      }
      answers
      labeledBy
      labeledByUserId
    }
  }
}
Variables
{
  "documentId": "4",
  "input": GetBBoxLabelsPaginatedInput
}
Response
{
  "data": {
    "getBBoxLabelsPaginated": {
      "totalCount": 987,
      "pageInfo": PageInfo,
      "nodes": [BBoxLabel]
    }
  }
}

getBoundingBoxConflictList

Arguments
Name Description
documentId - ID!

Example

Query
query GetBoundingBoxConflictList($documentId: ID!) {
  getBoundingBoxConflictList(documentId: $documentId) {
    upToDate
    items {
      id
      documentId
      coordinates {
        ...CoordinateFragment
      }
      pageIndex
      layer
      position {
        ...TextRangeFragment
      }
      resolved
      hashCode
      labelerIds
      text
    }
  }
}
Variables
{"documentId": "4"}
Response
{
  "data": {
    "getBoundingBoxConflictList": {
      "upToDate": true,
      "items": [ConflictBoundingBoxLabel]
    }
  }
}

getBoundingBoxLabels

Response

Returns [BoundingBoxLabel!]!

Arguments
Name Description
documentId - ID!
startCellLine - Int
endCellLine - Int

Example

Query
query GetBoundingBoxLabels(
  $documentId: ID!,
  $startCellLine: Int,
  $endCellLine: Int
) {
  getBoundingBoxLabels(
    documentId: $documentId,
    startCellLine: $startCellLine,
    endCellLine: $endCellLine
  ) {
    id
    documentId
    coordinates {
      x
      y
    }
    counter
    pageIndex
    layer
    position {
      start {
        ...TextCursorFragment
      }
      end {
        ...TextCursorFragment
      }
    }
    hashCode
    type
    labeledBy
  }
}
Variables
{"documentId": 4, "startCellLine": 987, "endCellLine": 123}
Response
{
  "data": {
    "getBoundingBoxLabels": [
      {
        "id": "4",
        "documentId": 4,
        "coordinates": [Coordinate],
        "counter": 123,
        "pageIndex": 987,
        "layer": 123,
        "position": TextRange,
        "hashCode": "abc123",
        "type": "ARROW",
        "labeledBy": "PRELABELED"
      }
    ]
  }
}

getBoundingBoxPages

Response

Returns [BoundingBoxPage!]!

Arguments
Name Description
documentId - ID!

Example

Query
query GetBoundingBoxPages($documentId: ID!) {
  getBoundingBoxPages(documentId: $documentId) {
    pageIndex
    pageHeight
    pageWidth
  }
}
Variables
{"documentId": 4}
Response
{
  "data": {
    "getBoundingBoxPages": [
      {"pageIndex": 123, "pageHeight": 987, "pageWidth": 123}
    ]
  }
}

getBuiltInProjectTemplates

Description

Fetches built-in project templates. Returns the new ProjectTemplateV2 structure. If you are looking for custom templates created in team workspaces, use getProjectTemplatesV2 instead.

Response

Returns [ProjectTemplateV2!]!

Example

Query
query GetBuiltInProjectTemplates {
  getBuiltInProjectTemplates {
    id
    name
    logoURL
    projectTemplateProjectSettingId
    projectTemplateTextDocumentSettingId
    projectTemplateProjectSetting {
      autoMarkDocumentAsComplete
      enableEditLabelSet
      enableEditSentence
      enableLabelerProjectCompletionNotificationThreshold
      enableReviewerEditSentence
      enablePrelabeledDraft
      hideLabelerNamesDuringReview
      hideLabelsFromInactiveLabelSetDuringReview
      hideOriginalSentencesDuringReview
      hideRejectedLabelsDuringReview
      shouldConfirmUnusedLabelSetItems
      labelerProjectCompletionNotificationThreshold
      selfAssignmentLimit {
        ...SelfAssignmentLimitFragment
      }
    }
    projectTemplateTextDocumentSetting {
      customScriptId
      fileTransformerId
      customTextExtractionAPIId
      sentenceSeparator
      mediaDisplayStrategy
      enableTabularMarkdownParsing
      firstRowAsHeader
      displayedRows
      kind
      kinds
      allTokensMustBeLabeled
      allowArcDrawing
      allowCharacterBasedLabeling
      allowMultiLabels
      textLabelMaxTokenLength
      ocrMethod
      transcriptMethod
      ocrProvider
      autoScrollWhenLabeling
      tokenizer
      editSentenceTokenizer
      viewer
      viewerConfig {
        ...TextDocumentViewerConfigFragment
      }
      hideBoundingBoxIfNoSpanOrArrowLabel
      enableAnonymization
      anonymizationEntityTypes
      anonymizationMaskingMethod
      anonymizationRegExps {
        ...RegularExpressionFragment
      }
    }
    labelSetTemplates {
      id
      name
      owner {
        ...UserFragment
      }
      type
      items {
        ...LabelSetTemplateItemFragment
      }
      count
      createdAt
      updatedAt
      leafOnlyOption
    }
    questionSets {
      name
      id
      creator {
        ...UserFragment
      }
      items {
        ...QuestionSetItemFragment
      }
      kinds
      createdAt
      updatedAt
    }
    createdAt
    updatedAt
    purpose
    creatorId
    type
    description
    imagePreviewURL
    videoURL
  }
}
Response
{
  "data": {
    "getBuiltInProjectTemplates": [
      {
        "id": 4,
        "name": "xyz789",
        "logoURL": "xyz789",
        "projectTemplateProjectSettingId": 4,
        "projectTemplateTextDocumentSettingId": 4,
        "projectTemplateProjectSetting": ProjectTemplateProjectSetting,
        "projectTemplateTextDocumentSetting": ProjectTemplateTextDocumentSetting,
        "labelSetTemplates": [LabelSetTemplate],
        "questionSets": [QuestionSet],
        "createdAt": "xyz789",
        "updatedAt": "xyz789",
        "purpose": "LABELING",
        "creatorId": "4",
        "type": "CUSTOM",
        "description": "xyz789",
        "imagePreviewURL": "abc123",
        "videoURL": "xyz789"
      }
    ]
  }
}

getCabinet

Description

Returns the specified project's cabinet. Contains list of documents. To get a project's ID, see getProjects.

Response

Returns a Cabinet!

Arguments
Name Description
projectId - ID!
role - Role!
visit - Boolean

Example

Query
query GetCabinet(
  $projectId: ID!,
  $role: Role!,
  $visit: Boolean
) {
  getCabinet(
    projectId: $projectId,
    role: $role,
    visit: $visit
  ) {
    id
    documents
    role
    status
    lastOpenedDocumentId
    statistic {
      id
      numberOfTokens
      numberOfLines
    }
    owner {
      id
      samlId
      amazonCustomerId
      username
      name
      email
      package
      profilePicture
      allowedActions
      displayName
      teamPackage
      emailVerified
      totpAuthEnabled
      companyName
      createdAt
      signUpParams {
        ...SignUpParamsFragment
      }
    }
    createdAt
  }
}
Variables
{
  "projectId": "4",
  "role": "REVIEWER",
  "visit": true
}
Response
{
  "data": {
    "getCabinet": {
      "id": "4",
      "documents": [TextDocumentScalar],
      "role": "REVIEWER",
      "status": "IN_PROGRESS",
      "lastOpenedDocumentId": 4,
      "statistic": CabinetStatistic,
      "owner": User,
      "createdAt": "2007-12-03T10:15:30Z"
    }
  }
}

getCabinetDocumentCompletionStates

Response

Returns [DocumentCompletionState!]!

Arguments
Name Description
cabinetId - ID!

Example

Query
query GetCabinetDocumentCompletionStates($cabinetId: ID!) {
  getCabinetDocumentCompletionStates(cabinetId: $cabinetId) {
    id
    isCompleted
    completedByUserId
    status
    statusUpdatedByUserId
  }
}
Variables
{"cabinetId": "4"}
Response
{
  "data": {
    "getCabinetDocumentCompletionStates": [
      {
        "id": "4",
        "isCompleted": false,
        "completedByUserId": 4,
        "status": "NOT_STARTED",
        "statusUpdatedByUserId": "4"
      }
    ]
  }
}

getCabinetEditSentenceConflicts

Response

Returns [EditSentenceConflict!]!

Arguments
Name Description
cabinetId - ID!

Example

Query
query GetCabinetEditSentenceConflicts($cabinetId: ID!) {
  getCabinetEditSentenceConflicts(cabinetId: $cabinetId) {
    documentId
    fileName
    lines
  }
}
Variables
{"cabinetId": 4}
Response
{
  "data": {
    "getCabinetEditSentenceConflicts": [
      {
        "documentId": "abc123",
        "fileName": "xyz789",
        "lines": [987]
      }
    ]
  }
}

getCabinetLabelSetsById

Response

Returns [LabelSet!]!

Arguments
Name Description
cabinetId - ID!

Example

Query
query GetCabinetLabelSetsById($cabinetId: ID!) {
  getCabinetLabelSetsById(cabinetId: $cabinetId) {
    id
    name
    index
    signature
    tagItems {
      id
      parentId
      tagName
      desc
      color
      type
      arrowRules {
        ...LabelClassArrowRuleFragment
      }
    }
    lastUsedBy {
      projectId
      name
    }
    arrowLabelRequired
    leafOnlyOption
  }
}
Variables
{"cabinetId": 4}
Response
{
  "data": {
    "getCabinetLabelSetsById": [
      {
        "id": 4,
        "name": "abc123",
        "index": 123,
        "signature": "abc123",
        "tagItems": [TagItem],
        "lastUsedBy": LastUsedProject,
        "arrowLabelRequired": false,
        "leafOnlyOption": false
      }
    ]
  }
}

getCellMetadataKeys

Response

Returns [String!]!

Arguments
Name Description
documentId - ID!
signature - String

Example

Query
query GetCellMetadataKeys(
  $documentId: ID!,
  $signature: String
) {
  getCellMetadataKeys(
    documentId: $documentId,
    signature: $signature
  )
}
Variables
{
  "documentId": "4",
  "signature": "xyz789"
}
Response
{
  "data": {
    "getCellMetadataKeys": ["abc123"]
  }
}

getCellPositionsByMetadata

Description

Returns a paginated list of Cell positions along with its origin document ID.

Arguments
Name Description
projectId - ID!
input - GetCellPositionsByMetadataPaginatedInput!

Example

Query
query GetCellPositionsByMetadata(
  $projectId: ID!,
  $input: GetCellPositionsByMetadataPaginatedInput!
) {
  getCellPositionsByMetadata(
    projectId: $projectId,
    input: $input
  ) {
    totalCount
    pageInfo {
      prevCursor
      nextCursor
    }
    nodes {
      originDocumentId
      line
      index
    }
  }
}
Variables
{
  "projectId": 4,
  "input": GetCellPositionsByMetadataPaginatedInput
}
Response
{
  "data": {
    "getCellPositionsByMetadata": {
      "totalCount": 987,
      "pageInfo": PageInfo,
      "nodes": [CellPositionWithOriginDocumentId]
    }
  }
}

getCells

Response

Returns a GetCellsPaginatedResponse!

Arguments
Name Description
documentId - ID!
input - GetCellsPaginatedInput!
signature - String

Example

Query
query GetCells(
  $documentId: ID!,
  $input: GetCellsPaginatedInput!,
  $signature: String
) {
  getCells(
    documentId: $documentId,
    input: $input,
    signature: $signature
  ) {
    totalCount
    pageInfo {
      prevCursor
      nextCursor
    }
    nodes
  }
}
Variables
{
  "documentId": "4",
  "input": GetCellsPaginatedInput,
  "signature": "abc123"
}
Response
{
  "data": {
    "getCells": {
      "totalCount": 123,
      "pageInfo": PageInfo,
      "nodes": [CellScalar]
    }
  }
}

getChartData

Response

Returns [ChartDataRow!]!

Arguments
Name Description
id - ID!
input - AnalyticsDashboardQueryInput!

Example

Query
query GetChartData(
  $id: ID!,
  $input: AnalyticsDashboardQueryInput!
) {
  getChartData(
    id: $id,
    input: $input
  ) {
    key
    values {
      key
      value
    }
    keyPayloadType
    keyPayload
  }
}
Variables
{"id": 4, "input": AnalyticsDashboardQueryInput}
Response
{
  "data": {
    "getChartData": [
      {
        "key": "xyz789",
        "values": [ChartDataRowValue],
        "keyPayloadType": "USER",
        "keyPayload": KeyPayload
      }
    ]
  }
}

getCharts

Response

Returns [Chart!]!

Arguments
Name Description
teamId - ID!
level - ChartLevel!
set - ChartSet!

Example

Query
query GetCharts(
  $teamId: ID!,
  $level: ChartLevel!,
  $set: ChartSet!
) {
  getCharts(
    teamId: $teamId,
    level: $level,
    set: $set
  ) {
    id
    name
    description
    type
    level
    set
    dataTableHeaders
    visualizationParams {
      visualization
      vAxisTitle
      hAxisTitle
      pieHoleText
      chartArea {
        ...ChartAreaFragment
      }
      legend {
        ...LegendFragment
      }
      colorGradient {
        ...ColorGradientFragment
      }
      isStacked
      itemsPerPage
      colors
      abbreviateKey
      showTable
      unit
    }
  }
}
Variables
{"teamId": 4, "level": "TEAM", "set": "OLD"}
Response
{
  "data": {
    "getCharts": [
      {
        "id": "4",
        "name": "abc123",
        "description": "abc123",
        "type": "GROUPED",
        "level": "TEAM",
        "set": ["OLD"],
        "dataTableHeaders": ["abc123"],
        "visualizationParams": VisualizationParams
      }
    ]
  }
}

getChartsLastUpdatedAt

Response

Returns a String

Arguments
Name Description
level - ChartLevel!
set - ChartSet!
input - AnalyticsDashboardQueryInput!

Example

Query
query GetChartsLastUpdatedAt(
  $level: ChartLevel!,
  $set: ChartSet!,
  $input: AnalyticsDashboardQueryInput!
) {
  getChartsLastUpdatedAt(
    level: $level,
    set: $set,
    input: $input
  )
}
Variables
{
  "level": "TEAM",
  "set": "OLD",
  "input": AnalyticsDashboardQueryInput
}
Response
{
  "data": {
    "getChartsLastUpdatedAt": "abc123"
  }
}

getComments

Response

Returns a GetCommentsResponse!

Arguments
Name Description
input - GetCommentsInput!

Example

Query
query GetComments($input: GetCommentsInput!) {
  getComments(input: $input) {
    totalCount
    pageInfo {
      prevCursor
      nextCursor
    }
    nodes {
      id
      parentId
      documentId
      originDocumentId
      userId
      user {
        ...UserFragment
      }
      message
      resolved
      resolvedAt
      resolvedBy {
        ...UserFragment
      }
      repliesCount
      createdAt
      updatedAt
      lastEditedAt
      hashCode
      commentedContent {
        ...CommentedContentFragment
      }
    }
  }
}
Variables
{"input": GetCommentsInput}
Response
{
  "data": {
    "getComments": {
      "totalCount": 987,
      "pageInfo": PageInfo,
      "nodes": [Comment]
    }
  }
}

getConfusionMatrixTables

Arguments
Name Description
input - GetConfusionMatrixTablesInput!

Example

Query
query GetConfusionMatrixTables($input: GetConfusionMatrixTablesInput!) {
  getConfusionMatrixTables(input: $input) {
    projectKind
    confusionMatrixTable {
      matrixClasses {
        ...MatrixClassFragment
      }
      data {
        ...MatrixDataFragment
      }
    }
  }
}
Variables
{"input": GetConfusionMatrixTablesInput}
Response
{
  "data": {
    "getConfusionMatrixTables": [
      {
        "projectKind": "DOCUMENT_BASED",
        "confusionMatrixTable": ConfusionMatrixTable
      }
    ]
  }
}

getCreateProjectAction

Description

Get details of a create project Action. Parameters: automationId: ID of the Action

Response

Returns a CreateProjectAction!

Arguments
Name Description
teamId - ID!
actionId - ID!

Example

Query
query GetCreateProjectAction(
  $teamId: ID!,
  $actionId: ID!
) {
  getCreateProjectAction(
    teamId: $teamId,
    actionId: $actionId
  ) {
    id
    name
    teamId
    appVersion
    creatorId
    lastRunAt
    lastFinishedAt
    externalObjectStorageId
    externalObjectStorage {
      id
      cloudService
      bucketId
      bucketName
      credentials {
        ...ExternalObjectStorageCredentialsFragment
      }
      securityToken
      team {
        ...TeamFragment
      }
      projects {
        ...ProjectFragment
      }
      createdAt
      updatedAt
    }
    externalObjectStoragePathInput
    externalObjectStoragePathResult
    projectTemplateId
    projectTemplate {
      id
      name
      teamId
      team {
        ...TeamFragment
      }
      logoURL
      projectTemplateProjectSettingId
      projectTemplateTextDocumentSettingId
      projectTemplateProjectSetting {
        ...ProjectTemplateProjectSettingFragment
      }
      projectTemplateTextDocumentSetting {
        ...ProjectTemplateTextDocumentSettingFragment
      }
      labelSetTemplates {
        ...LabelSetTemplateFragment
      }
      questionSets {
        ...QuestionSetFragment
      }
      createdAt
      updatedAt
      purpose
      creatorId
    }
    assignments {
      id
      actionId
      role
      teamMember {
        ...TeamMemberFragment
      }
      teamMemberId
      totalAssignedAsLabeler
      totalAssignedAsReviewer
    }
    additionalTagNames
    numberOfLabelersPerProject
    numberOfReviewersPerProject
    numberOfLabelersPerDocument
    conflictResolutionMode
    consensus
    warnings
  }
}
Variables
{"teamId": 4, "actionId": 4}
Response
{
  "data": {
    "getCreateProjectAction": {
      "id": 4,
      "name": "xyz789",
      "teamId": 4,
      "appVersion": "abc123",
      "creatorId": 4,
      "lastRunAt": "abc123",
      "lastFinishedAt": "abc123",
      "externalObjectStorageId": 4,
      "externalObjectStorage": ExternalObjectStorage,
      "externalObjectStoragePathInput": "xyz789",
      "externalObjectStoragePathResult": "xyz789",
      "projectTemplateId": "4",
      "projectTemplate": ProjectTemplate,
      "assignments": [CreateProjectActionAssignment],
      "additionalTagNames": ["abc123"],
      "numberOfLabelersPerProject": 987,
      "numberOfReviewersPerProject": 987,
      "numberOfLabelersPerDocument": 987,
      "conflictResolutionMode": "MANUAL",
      "consensus": 987,
      "warnings": ["ASSIGNED_LABELER_NOT_MEET_CONSENSUS"]
    }
  }
}

getCreateProjectActionRunDetails

Description

Get all details of a create project Action run. Parameters: input: ProjectCreationAutomationActivityDetailPaginationInput

Example

Query
query GetCreateProjectActionRunDetails($input: CreateProjectActionRunDetailPaginationInput!) {
  getCreateProjectActionRunDetails(input: $input) {
    totalCount
    pageInfo {
      prevCursor
      nextCursor
    }
    nodes {
      id
      status
      runId
      startAt
      endAt
      error {
        ...DatasaurErrorFragment
      }
      project
      projectPath
      documentNames
    }
  }
}
Variables
{"input": CreateProjectActionRunDetailPaginationInput}
Response
{
  "data": {
    "getCreateProjectActionRunDetails": {
      "totalCount": 123,
      "pageInfo": PageInfo,
      "nodes": [CreateProjectActionRunDetail]
    }
  }
}

getCreateProjectActionRuns

Description

Get all activities of a create project Action. Parameters: input: ProjectCreationAutomationPaginationInput

Arguments
Name Description
input - CreateProjectActionPaginationInput!

Example

Query
query GetCreateProjectActionRuns($input: CreateProjectActionPaginationInput!) {
  getCreateProjectActionRuns(input: $input) {
    totalCount
    pageInfo {
      prevCursor
      nextCursor
    }
    nodes {
      id
      actionId
      status
      currentAppVersion
      triggeredByUserId
      triggeredBy {
        ...UserFragment
      }
      startAt
      endAt
      totalSuccess
      totalFailure
      externalObjectStorageId
      externalObjectStoragePathInput
      externalObjectStoragePathResult
      projectTemplate
      assignments
      numberOfLabelersPerProject
      numberOfReviewersPerProject
      numberOfLabelersPerDocument
      conflictResolutionMode
      consensus
    }
  }
}
Variables
{"input": CreateProjectActionPaginationInput}
Response
{
  "data": {
    "getCreateProjectActionRuns": {
      "totalCount": 987,
      "pageInfo": PageInfo,
      "nodes": [CreateProjectActionRun]
    }
  }
}

getCreateProjectActions

Description

Get all create project Actions of a team. Parameters: teamId: ID of the team

Response

Returns [CreateProjectAction!]!

Arguments
Name Description
teamId - ID!

Example

Query
query GetCreateProjectActions($teamId: ID!) {
  getCreateProjectActions(teamId: $teamId) {
    id
    name
    teamId
    appVersion
    creatorId
    lastRunAt
    lastFinishedAt
    externalObjectStorageId
    externalObjectStorage {
      id
      cloudService
      bucketId
      bucketName
      credentials {
        ...ExternalObjectStorageCredentialsFragment
      }
      securityToken
      team {
        ...TeamFragment
      }
      projects {
        ...ProjectFragment
      }
      createdAt
      updatedAt
    }
    externalObjectStoragePathInput
    externalObjectStoragePathResult
    projectTemplateId
    projectTemplate {
      id
      name
      teamId
      team {
        ...TeamFragment
      }
      logoURL
      projectTemplateProjectSettingId
      projectTemplateTextDocumentSettingId
      projectTemplateProjectSetting {
        ...ProjectTemplateProjectSettingFragment
      }
      projectTemplateTextDocumentSetting {
        ...ProjectTemplateTextDocumentSettingFragment
      }
      labelSetTemplates {
        ...LabelSetTemplateFragment
      }
      questionSets {
        ...QuestionSetFragment
      }
      createdAt
      updatedAt
      purpose
      creatorId
    }
    assignments {
      id
      actionId
      role
      teamMember {
        ...TeamMemberFragment
      }
      teamMemberId
      totalAssignedAsLabeler
      totalAssignedAsReviewer
    }
    additionalTagNames
    numberOfLabelersPerProject
    numberOfReviewersPerProject
    numberOfLabelersPerDocument
    conflictResolutionMode
    consensus
    warnings
  }
}
Variables
{"teamId": 4}
Response
{
  "data": {
    "getCreateProjectActions": [
      {
        "id": "4",
        "name": "abc123",
        "teamId": 4,
        "appVersion": "abc123",
        "creatorId": 4,
        "lastRunAt": "xyz789",
        "lastFinishedAt": "xyz789",
        "externalObjectStorageId": "4",
        "externalObjectStorage": ExternalObjectStorage,
        "externalObjectStoragePathInput": "xyz789",
        "externalObjectStoragePathResult": "abc123",
        "projectTemplateId": "4",
        "projectTemplate": ProjectTemplate,
        "assignments": [CreateProjectActionAssignment],
        "additionalTagNames": ["xyz789"],
        "numberOfLabelersPerProject": 123,
        "numberOfReviewersPerProject": 123,
        "numberOfLabelersPerDocument": 123,
        "conflictResolutionMode": "MANUAL",
        "consensus": 123,
        "warnings": ["ASSIGNED_LABELER_NOT_MEET_CONSENSUS"]
      }
    ]
  }
}

getCurrentUserTeamMember

Response

Returns a TeamMember!

Arguments
Name Description
input - GetCurrentUserTeamMemberInput!

Example

Query
query GetCurrentUserTeamMember($input: GetCurrentUserTeamMemberInput!) {
  getCurrentUserTeamMember(input: $input) {
    id
    user {
      id
      samlId
      amazonCustomerId
      username
      name
      email
      package
      profilePicture
      allowedActions
      displayName
      teamPackage
      emailVerified
      totpAuthEnabled
      companyName
      createdAt
      signUpParams {
        ...SignUpParamsFragment
      }
    }
    userId
    role {
      id
      name
    }
    invitationEmail
    invitationStatus
    invitationKey
    isDeleted
    joinedDate
    performance {
      id
      userId
      projectStatistic {
        ...TeamMemberProjectStatisticFragment
      }
      totalTimeSpent
      effectiveTotalTimeSpent
      accuracy
    }
    labelingAgent {
      id
      agentId
      agentType
      name
    }
    labelingAgentId
  }
}
Variables
{"input": GetCurrentUserTeamMemberInput}
Response
{
  "data": {
    "getCurrentUserTeamMember": {
      "id": 4,
      "user": User,
      "userId": "4",
      "role": TeamRole,
      "invitationEmail": "xyz789",
      "invitationStatus": "xyz789",
      "invitationKey": "xyz789",
      "isDeleted": false,
      "joinedDate": "abc123",
      "performance": TeamMemberPerformance,
      "labelingAgent": LabelingAgent,
      "labelingAgentId": "4"
    }
  }
}

getCustomAPI

Response

Returns a CustomAPI!

Arguments
Name Description
customAPIId - ID!

Example

Query
query GetCustomAPI($customAPIId: ID!) {
  getCustomAPI(customAPIId: $customAPIId) {
    id
    teamId
    endpointURL
    name
    purpose
  }
}
Variables
{"customAPIId": "4"}
Response
{
  "data": {
    "getCustomAPI": {
      "id": 4,
      "teamId": 4,
      "endpointURL": "xyz789",
      "name": "xyz789",
      "purpose": "ASR_API"
    }
  }
}

getCustomAPIs

Response

Returns [CustomAPI!]!

Arguments
Name Description
teamId - ID!
purpose - CustomAPIPurpose

Example

Query
query GetCustomAPIs(
  $teamId: ID!,
  $purpose: CustomAPIPurpose
) {
  getCustomAPIs(
    teamId: $teamId,
    purpose: $purpose
  ) {
    id
    teamId
    endpointURL
    name
    purpose
  }
}
Variables
{"teamId": "4", "purpose": "ASR_API"}
Response
{
  "data": {
    "getCustomAPIs": [
      {
        "id": 4,
        "teamId": 4,
        "endpointURL": "xyz789",
        "name": "abc123",
        "purpose": "ASR_API"
      }
    ]
  }
}

getCustomEmbeddingModelDefaultData

Breaking changes may be introduced anytime in the future without prior notice.
Arguments
Name Description
input - GetCustomEmbeddingDefaultDataInput!

Example

Query
query GetCustomEmbeddingModelDefaultData($input: GetCustomEmbeddingDefaultDataInput!) {
  getCustomEmbeddingModelDefaultData(input: $input) {
    name
    dimension
  }
}
Variables
{"input": GetCustomEmbeddingDefaultDataInput}
Response
{
  "data": {
    "getCustomEmbeddingModelDefaultData": {
      "name": "xyz789",
      "dimension": 123
    }
  }
}

getCustomModelDefaultData

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns a CustomModelDefaultData!

Arguments
Name Description
input - GetCustomModelDefaultDataInput!

Example

Query
query GetCustomModelDefaultData($input: GetCustomModelDefaultDataInput!) {
  getCustomModelDefaultData(input: $input) {
    name
    maxContextWindow
    maxTokens
    maxTemperature
    maxTopP
  }
}
Variables
{"input": GetCustomModelDefaultDataInput}
Response
{
  "data": {
    "getCustomModelDefaultData": {
      "name": "abc123",
      "maxContextWindow": 123,
      "maxTokens": 123,
      "maxTemperature": 987.65,
      "maxTopP": 987.65
    }
  }
}

getCustomReportFilterFieldSuggestions

Response

Returns a CustomReportSuggestions!

Arguments
Name Description
input - CustomReportFilterFieldSuggestionsInput!

Example

Query
query GetCustomReportFilterFieldSuggestions($input: CustomReportFilterFieldSuggestionsInput!) {
  getCustomReportFilterFieldSuggestions(input: $input) {
    column
    suggestions {
      id
      label
      groupId
    }
  }
}
Variables
{"input": CustomReportFilterFieldSuggestionsInput}
Response
{
  "data": {
    "getCustomReportFilterFieldSuggestions": {
      "column": "DATE",
      "suggestions": [CustomReportSuggestion]
    }
  }
}

getCustomReportFilterSuggestions

Response

Returns [CustomReportSuggestions!]!

Arguments
Name Description
teamId - ID!

Example

Query
query GetCustomReportFilterSuggestions($teamId: ID!) {
  getCustomReportFilterSuggestions(teamId: $teamId) {
    column
    suggestions {
      id
      label
      groupId
    }
  }
}
Variables
{"teamId": 4}
Response
{
  "data": {
    "getCustomReportFilterSuggestions": [
      {
        "column": "DATE",
        "suggestions": [CustomReportSuggestion]
      }
    ]
  }
}

getCustomReportMetricsGroupTables

Description

Returns custom report metrics group tables.

Arguments
Name Description
dataSet - CustomReportDataSet
debugMode - Boolean

Example

Query
query GetCustomReportMetricsGroupTables(
  $dataSet: CustomReportDataSet,
  $debugMode: Boolean
) {
  getCustomReportMetricsGroupTables(
    dataSet: $dataSet,
    debugMode: $debugMode
  ) {
    id
    name
    description
    clientSegments
    metrics
    filterStrategies
    hiddenFilters
  }
}
Variables
{"dataSet": "METABASE", "debugMode": false}
Response
{
  "data": {
    "getCustomReportMetricsGroupTables": [
      {
        "id": "4",
        "name": "abc123",
        "description": "abc123",
        "clientSegments": ["DATE"],
        "metrics": ["LABELS_ACCURACY"],
        "filterStrategies": ["CONTAINS"],
        "hiddenFilters": ["DATE"]
      }
    ]
  }
}

getCustomReportPreview

Description

Preview custom report.

Response

Returns a CustomReportPreviewData!

Arguments
Name Description
teamId - ID!
input - CustomReportBuilderInput!

Example

Query
query GetCustomReportPreview(
  $teamId: ID!,
  $input: CustomReportBuilderInput!
) {
  getCustomReportPreview(
    teamId: $teamId,
    input: $input
  ) {
    rows
  }
}
Variables
{"teamId": 4, "input": CustomReportBuilderInput}
Response
{
  "data": {
    "getCustomReportPreview": {
      "rows": [CustomReportRowScalar]
    }
  }
}

getCustomReportPreviewFromExport

Response

Returns a CustomReportPreviewResponse!

Arguments
Name Description
input - CustomReportPreviewInput!

Example

Query
query GetCustomReportPreviewFromExport($input: CustomReportPreviewInput!) {
  getCustomReportPreviewFromExport(input: $input) {
    totalCount
    pageInfo {
      prevCursor
      nextCursor
    }
    nodes
  }
}
Variables
{"input": CustomReportPreviewInput}
Response
{
  "data": {
    "getCustomReportPreviewFromExport": {
      "totalCount": 987,
      "pageInfo": PageInfo,
      "nodes": [CustomReportRowScalar]
    }
  }
}

getCustomerPlan

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns a String!

Arguments
Name Description
teamId - ID!

Example

Query
query GetCustomerPlan($teamId: ID!) {
  getCustomerPlan(teamId: $teamId)
}
Variables
{"teamId": 4}
Response
{"data": {"getCustomerPlan": "xyz789"}}

getDataProgramming

Response

Returns a DataProgramming

Arguments
Name Description
input - GetDataProgrammingInput

Example

Query
query GetDataProgramming($input: GetDataProgrammingInput) {
  getDataProgramming(input: $input) {
    id
    provider
    projectId
    kind
    labelsSignature
    labels {
      labelId
      labelName
    }
    createdAt
    updatedAt
    lastGetPredictionsAt
  }
}
Variables
{"input": GetDataProgrammingInput}
Response
{
  "data": {
    "getDataProgramming": {
      "id": "4",
      "provider": "SNORKEL",
      "projectId": 4,
      "kind": "DOCUMENT_BASED",
      "labelsSignature": "abc123",
      "labels": [DataProgrammingLabel],
      "createdAt": "abc123",
      "updatedAt": "xyz789",
      "lastGetPredictionsAt": "xyz789"
    }
  }
}

getDataProgrammingLabelingFunctionAnalysis

Example

Query
query GetDataProgrammingLabelingFunctionAnalysis($input: GetDataProgrammingLabelingFunctionAnalysisInput!) {
  getDataProgrammingLabelingFunctionAnalysis(input: $input) {
    dataProgrammingId
    labelingFunctionId
    conflict
    coverage
    overlap
    polarity
  }
}
Variables
{"input": GetDataProgrammingLabelingFunctionAnalysisInput}
Response
{
  "data": {
    "getDataProgrammingLabelingFunctionAnalysis": [
      {
        "dataProgrammingId": "4",
        "labelingFunctionId": "4",
        "conflict": 987.65,
        "coverage": 123.45,
        "overlap": 123.45,
        "polarity": [987]
      }
    ]
  }
}

getDataProgrammingLibraries

Response

Returns a DataProgrammingLibraries!

Example

Query
query GetDataProgrammingLibraries {
  getDataProgrammingLibraries {
    libraries
  }
}
Response
{
  "data": {
    "getDataProgrammingLibraries": {
      "libraries": ["xyz789"]
    }
  }
}

getDataProgrammingPredictions

Response

Returns a Job!

Arguments
Name Description
input - GetDataProgrammingPredictionsInput!

Example

Query
query GetDataProgrammingPredictions($input: GetDataProgrammingPredictionsInput!) {
  getDataProgrammingPredictions(input: $input) {
    id
    status
    progress
    errors {
      id
      stack
      args
      message
    }
    resultId
    result
    createdAt
    updatedAt
    retryCount
    maxRetry
    additionalData {
      actionRunId
      childrenJobIds
      documentIds
      reversedLabels {
        ...UpdateReversedLabelsResultFragment
      }
      labelingAgentsJobId
      labelingAgentsResults
    }
  }
}
Variables
{"input": GetDataProgrammingPredictionsInput}
Response
{
  "data": {
    "getDataProgrammingPredictions": {
      "id": "xyz789",
      "status": "DELIVERED",
      "progress": 123,
      "errors": [JobError],
      "resultId": "abc123",
      "result": JobResult,
      "createdAt": "xyz789",
      "updatedAt": "xyz789",
      "retryCount": 987,
      "maxRetry": 123,
      "additionalData": JobAdditionalData
    }
  }
}

getDatasaurDinamicRowBased

Response

Returns a DatasaurDinamicRowBased

Arguments
Name Description
input - GetDatasaurDinamicRowBasedInput!

Example

Query
query GetDatasaurDinamicRowBased($input: GetDatasaurDinamicRowBasedInput!) {
  getDatasaurDinamicRowBased(input: $input) {
    id
    projectId
    provider
    inputColumnIds
    questionColumnId
    providerSetting
    modelMetadata
    trainingJobId
    createdAt
    updatedAt
  }
}
Variables
{"input": GetDatasaurDinamicRowBasedInput}
Response
{
  "data": {
    "getDatasaurDinamicRowBased": {
      "id": "4",
      "projectId": 4,
      "provider": "HUGGINGFACE",
      "inputColumnIds": [123],
      "questionColumnId": 987,
      "providerSetting": ProviderSetting,
      "modelMetadata": ModelMetadata,
      "trainingJobId": 4,
      "createdAt": "abc123",
      "updatedAt": "xyz789"
    }
  }
}

getDatasaurDinamicRowBasedProviders

Example

Query
query GetDatasaurDinamicRowBasedProviders {
  getDatasaurDinamicRowBasedProviders {
    name
    provider
  }
}
Response
{
  "data": {
    "getDatasaurDinamicRowBasedProviders": [
      {
        "name": "abc123",
        "provider": "HUGGINGFACE"
      }
    ]
  }
}

getDatasaurDinamicTokenBased

Response

Returns a DatasaurDinamicTokenBased

Arguments
Name Description
input - GetDatasaurDinamicTokenBasedInput!

Example

Query
query GetDatasaurDinamicTokenBased($input: GetDatasaurDinamicTokenBasedInput!) {
  getDatasaurDinamicTokenBased(input: $input) {
    id
    projectId
    provider
    targetLabelSetIndex
    providerSetting
    modelMetadata
    trainingJobId
    createdAt
    updatedAt
  }
}
Variables
{"input": GetDatasaurDinamicTokenBasedInput}
Response
{
  "data": {
    "getDatasaurDinamicTokenBased": {
      "id": "4",
      "projectId": "4",
      "provider": "HUGGINGFACE",
      "targetLabelSetIndex": 987,
      "providerSetting": ProviderSetting,
      "modelMetadata": ModelMetadata,
      "trainingJobId": 4,
      "createdAt": "xyz789",
      "updatedAt": "abc123"
    }
  }
}

getDatasaurDinamicTokenBasedProviders

Example

Query
query GetDatasaurDinamicTokenBasedProviders {
  getDatasaurDinamicTokenBasedProviders {
    name
    provider
  }
}
Response
{
  "data": {
    "getDatasaurDinamicTokenBasedProviders": [
      {
        "name": "xyz789",
        "provider": "HUGGINGFACE"
      }
    ]
  }
}

getDatasaurPredictive

Response

Returns a DatasaurPredictive

Arguments
Name Description
input - GetDatasaurPredictiveInput!

Example

Query
query GetDatasaurPredictive($input: GetDatasaurPredictiveInput!) {
  getDatasaurPredictive(input: $input) {
    id
    projectId
    provider
    inputColumnIds
    questionColumnId
    providerSetting
    modelMetadata
    trainingJobId
    createdAt
    updatedAt
  }
}
Variables
{"input": GetDatasaurPredictiveInput}
Response
{
  "data": {
    "getDatasaurPredictive": {
      "id": 4,
      "projectId": 4,
      "provider": "SETFIT",
      "inputColumnIds": [123],
      "questionColumnId": 123,
      "providerSetting": ProviderSetting,
      "modelMetadata": ModelMetadata,
      "trainingJobId": 4,
      "createdAt": "xyz789",
      "updatedAt": "abc123"
    }
  }
}

getDatasaurPredictiveProviders

Example

Query
query GetDatasaurPredictiveProviders {
  getDatasaurPredictiveProviders {
    name
    provider
  }
}
Response
{
  "data": {
    "getDatasaurPredictiveProviders": [
      {
        "name": "xyz789",
        "provider": "SETFIT"
      }
    ]
  }
}

getDefaultExtensions

Response

Returns [DefaultExtension!]!

Arguments
Name Description
teamId - ID!

Example

Query
query GetDefaultExtensions($teamId: ID!) {
  getDefaultExtensions(teamId: $teamId) {
    kind
    labelerExtensions {
      extensionId
    }
    reviewerExtensions {
      extensionId
    }
  }
}
Variables
{"teamId": "4"}
Response
{
  "data": {
    "getDefaultExtensions": [
      {
        "kind": "DOCUMENT_BASED",
        "labelerExtensions": [DefaultExtensionElement],
        "reviewerExtensions": [DefaultExtensionElement]
      }
    ]
  }
}

getDocumentAnswerConflicts

Response

Returns [ConflictAnswer!]!

Arguments
Name Description
documentId - ID!

Example

Query
query GetDocumentAnswerConflicts($documentId: ID!) {
  getDocumentAnswerConflicts(documentId: $documentId) {
    questionId
    parentQuestionId
    nestedAnswerIndex
    answers {
      resolved
      value
      userIds
      users {
        ...UserFragment
      }
      contributorInfos {
        ...ContributorInfoFragment
      }
      labelPhase
      acceptedByUserId
      rejectedByUserId
    }
    type
  }
}
Variables
{"documentId": 4}
Response
{
  "data": {
    "getDocumentAnswerConflicts": [
      {
        "questionId": "4",
        "parentQuestionId": "4",
        "nestedAnswerIndex": 123,
        "answers": [ConflictAnswerValue],
        "type": "MULTIPLE"
      }
    ]
  }
}

getDocumentAnswers

Response

Returns a DocumentAnswer!

Arguments
Name Description
documentId - ID!

Example

Query
query GetDocumentAnswers($documentId: ID!) {
  getDocumentAnswers(documentId: $documentId) {
    documentId
    answers
    metadata {
      path
      labeledBy
      labeledByUserId
      createdAt
      updatedAt
    }
    updatedAt
  }
}
Variables
{"documentId": 4}
Response
{
  "data": {
    "getDocumentAnswers": {
      "documentId": "4",
      "answers": AnswerScalar,
      "metadata": [AnswerMetadata],
      "updatedAt": "2007-12-03T10:15:30Z"
    }
  }
}

getDocumentMetasByCabinetId

Response

Returns [DocumentMeta!]!

Arguments
Name Description
cabinetId - ID!

Example

Query
query GetDocumentMetasByCabinetId($cabinetId: ID!) {
  getDocumentMetasByCabinetId(cabinetId: $cabinetId) {
    id
    cabinetId
    name
    width
    displayed
    labelerRestricted
    rowQuestionIndex
  }
}
Variables
{"cabinetId": 4}
Response
{
  "data": {
    "getDocumentMetasByCabinetId": [
      {
        "id": 987,
        "cabinetId": 987,
        "name": "abc123",
        "width": "xyz789",
        "displayed": true,
        "labelerRestricted": true,
        "rowQuestionIndex": 123
      }
    ]
  }
}

getDocumentNames

Description

Returns the specified project's document names.

Response

Returns [String!]!

Arguments
Name Description
projectId - ID!
role - Role!

Example

Query
query GetDocumentNames(
  $projectId: ID!,
  $role: Role!
) {
  getDocumentNames(
    projectId: $projectId,
    role: $role
  )
}
Variables
{"projectId": 4, "role": "REVIEWER"}
Response
{"data": {"getDocumentNames": ["abc123"]}}

getDocumentPredictedAnswers

Response

Returns a DocumentAnswer!

Arguments
Name Description
documentId - ID!

Example

Query
query GetDocumentPredictedAnswers($documentId: ID!) {
  getDocumentPredictedAnswers(documentId: $documentId) {
    documentId
    answers
    metadata {
      path
      labeledBy
      labeledByUserId
      createdAt
      updatedAt
    }
    updatedAt
  }
}
Variables
{"documentId": "4"}
Response
{
  "data": {
    "getDocumentPredictedAnswers": {
      "documentId": "4",
      "answers": AnswerScalar,
      "metadata": [AnswerMetadata],
      "updatedAt": "2007-12-03T10:15:30Z"
    }
  }
}

getDocumentQuestions

Response

Returns [Question!]!

Arguments
Name Description
projectId - ID!

Example

Query
query GetDocumentQuestions($projectId: ID!) {
  getDocumentQuestions(projectId: $projectId) {
    id
    internalId
    type
    name
    label
    required
    config {
      defaultValue
      format
      multiple
      multiline
      options {
        ...QuestionConfigOptionsFragment
      }
      leafOptionsOnly
      questions {
        ...QuestionFragment
      }
      minLength
      maxLength
      pattern
      theme
      gradientColors
      min
      max
      step
      hint
      hideScaleLabel
      customScript {
        ...CustomScriptFragment
      }
    }
    bindToColumn
    activationConditionLogic
    targetEntity
  }
}
Variables
{"projectId": "4"}
Response
{
  "data": {
    "getDocumentQuestions": [
      {
        "id": 987,
        "internalId": "xyz789",
        "type": "DROPDOWN",
        "name": "xyz789",
        "label": "xyz789",
        "required": false,
        "config": QuestionConfig,
        "bindToColumn": "xyz789",
        "activationConditionLogic": "abc123",
        "targetEntity": "xyz789"
      }
    ]
  }
}

getDocumentSignature

Response

Returns a String!

Arguments
Name Description
documentId - ID!

Example

Query
query GetDocumentSignature($documentId: ID!) {
  getDocumentSignature(documentId: $documentId)
}
Variables
{"documentId": "4"}
Response
{"data": {"getDocumentSignature": "xyz789"}}

getEditSentenceConflicts

Response

Returns an EditSentenceConflict!

Arguments
Name Description
documentId - ID!

Example

Query
query GetEditSentenceConflicts($documentId: ID!) {
  getEditSentenceConflicts(documentId: $documentId) {
    documentId
    fileName
    lines
  }
}
Variables
{"documentId": 4}
Response
{
  "data": {
    "getEditSentenceConflicts": {
      "documentId": "xyz789",
      "fileName": "xyz789",
      "lines": [987]
    }
  }
}

getEvaluationMetric

Response

Returns [ProjectEvaluationMetric!]!

Arguments
Name Description
input - GetEvaluationMetricInput!

Example

Query
query GetEvaluationMetric($input: GetEvaluationMetricInput!) {
  getEvaluationMetric(input: $input) {
    projectKind
    metric {
      accuracy
      precision
      recall
      f1Score
      lastUpdatedTime
    }
  }
}
Variables
{"input": GetEvaluationMetricInput}
Response
{
  "data": {
    "getEvaluationMetric": [
      {
        "projectKind": "DOCUMENT_BASED",
        "metric": EvaluationMetric
      }
    ]
  }
}

getEvaluationRagConfigsByTeamId

Description

Retrieves the LLM evaluation RAG configs by the team id.

Response

Returns [LlmEvaluationRagConfig!]!

Arguments
Name Description
teamId - ID!
withDeleted - Boolean

Example

Query
query GetEvaluationRagConfigsByTeamId(
  $teamId: ID!,
  $withDeleted: Boolean
) {
  getEvaluationRagConfigsByTeamId(
    teamId: $teamId,
    withDeleted: $withDeleted
  ) {
    id
    llmEvaluationId
    llmApplication {
      id
      teamId
      createdByUser {
        ...UserFragment
      }
      name
      status
      createdAt
      updatedAt
      llmApplicationDeployment {
        ...LlmApplicationDeploymentFragment
      }
      totalRagConfigs
    }
    llmPlaygroundRagConfig {
      id
      llmApplicationId
      llmRagConfig {
        ...LlmRagConfigFragment
      }
      name
      createdAt
      updatedAt
    }
    llmDeploymentRagConfig {
      id
      deployedByUser {
        ...UserFragment
      }
      llmApplicationId
      llmApplication {
        ...LlmApplicationFragment
      }
      llmRagConfig {
        ...LlmRagConfigFragment
      }
      numberOfCalls
      numberOfTokens
      numberOfInputTokens
      numberOfOutputTokens
      deployedAt
      name
      status
      createdAt
      updatedAt
      apiEndpoints {
        ...LlmApplicationDeploymentApiEndpointFragment
      }
      isDeleted
    }
    llmRagConfigId
    llmSnapshotRagConfig {
      id
      llmModel {
        ...LlmModelFragment
      }
      systemInstruction
      userInstruction
      raw
      temperature
      topP
      maxTokens
      advancedHyperparameters
      maxVectorStoreTokens
      llmVectorStore {
        ...LlmVectorStoreFragment
      }
      llmVectorStores {
        ...LlmVectorStoreFragment
      }
      similarityThreshold
      enableAnonymization
      maxChunkSize
      createdAt
      updatedAt
    }
    llmApplicationConfigurationRagConfig {
      id
      name
      teamId
      createdByUserId
      updatedByUserId
      updatedByUser {
        ...UserFragment
      }
      llmRagConfigId
      llmRagConfig {
        ...LlmRagConfigFragment
      }
      createdAt
      updatedAt
      isDeleted
    }
    llmEvaluationExecutionId
    ragConfigSourceType
    createdAt
    updatedAt
    isDeleted
    applicationName
  }
}
Variables
{"teamId": 4, "withDeleted": true}
Response
{
  "data": {
    "getEvaluationRagConfigsByTeamId": [
      {
        "id": "4",
        "llmEvaluationId": "4",
        "llmApplication": LlmApplication,
        "llmPlaygroundRagConfig": LlmApplicationPlaygroundRagConfig,
        "llmDeploymentRagConfig": LlmApplicationDeployment,
        "llmRagConfigId": 4,
        "llmSnapshotRagConfig": LlmRagConfig,
        "llmApplicationConfigurationRagConfig": LlmApplicationConfiguration,
        "llmEvaluationExecutionId": "4",
        "ragConfigSourceType": "APPLICATION_DEPLOYMENT",
        "createdAt": "abc123",
        "updatedAt": "xyz789",
        "isDeleted": true,
        "applicationName": "xyz789"
      }
    ]
  }
}

getExportDeliveryStatus

Description

Return the export job information, specifically whether it succeed or failed, since all exports are done asynchronously.

Response

Returns a GetExportDeliveryStatusResult!

Arguments
Name Description
exportId - ID!

Example

Query
query GetExportDeliveryStatus($exportId: ID!) {
  getExportDeliveryStatus(exportId: $exportId) {
    deliveryStatus
    errors {
      id
      stack
      args
      message
    }
  }
}
Variables
{"exportId": 4}
Response
{
  "data": {
    "getExportDeliveryStatus": {
      "deliveryStatus": "DELIVERED",
      "errors": [JobError]
    }
  }
}

getExportable

Response

Returns an ExportableJSON!

Arguments
Name Description
documentId - ID

Example

Query
query GetExportable($documentId: ID) {
  getExportable(documentId: $documentId)
}
Variables
{"documentId": "4"}
Response
{"data": {"getExportable": ExportableJSON}}

getExtensions

Response

Returns [Extension!]

Arguments
Name Description
cabinetId - String!

Example

Query
query GetExtensions($cabinetId: String!) {
  getExtensions(cabinetId: $cabinetId) {
    id
    title
    url
    elementType
    elementKind
    documentType
  }
}
Variables
{"cabinetId": "xyz789"}
Response
{
  "data": {
    "getExtensions": [
      {
        "id": "abc123",
        "title": "xyz789",
        "url": "abc123",
        "elementType": "abc123",
        "elementKind": "abc123",
        "documentType": "xyz789"
      }
    ]
  }
}

getExternalFilesByApi

Response

Returns [ExternalFile!]!

Arguments
Name Description
input - GetExternalFilesByApiInput!

Example

Query
query GetExternalFilesByApi($input: GetExternalFilesByApiInput!) {
  getExternalFilesByApi(input: $input) {
    name
    url
  }
}
Variables
{"input": GetExternalFilesByApiInput}
Response
{
  "data": {
    "getExternalFilesByApi": [
      {
        "name": "xyz789",
        "url": "xyz789"
      }
    ]
  }
}

getExternalId

Description

Required for AWS S3

Response

Returns an ExternalId!

Example

Query
query GetExternalId {
  getExternalId {
    externalId
    timeLimit
  }
}
Response
{
  "data": {
    "getExternalId": {
      "externalId": "abc123",
      "timeLimit": 987
    }
  }
}

getExternalObjectMeta

Response

Returns [ObjectMeta!]!

Arguments
Name Description
externalObjectStorageId - ID!
objectKeys - [String!]!

Example

Query
query GetExternalObjectMeta(
  $externalObjectStorageId: ID!,
  $objectKeys: [String!]!
) {
  getExternalObjectMeta(
    externalObjectStorageId: $externalObjectStorageId,
    objectKeys: $objectKeys
  ) {
    createdAt
    key
    sizeInBytes
  }
}
Variables
{
  "externalObjectStorageId": 4,
  "objectKeys": ["xyz789"]
}
Response
{
  "data": {
    "getExternalObjectMeta": [
      {
        "createdAt": "xyz789",
        "key": "xyz789",
        "sizeInBytes": 123
      }
    ]
  }
}

getExternalObjectStorages

Response

Returns [ExternalObjectStorage!]

Arguments
Name Description
teamId - ID!

Example

Query
query GetExternalObjectStorages($teamId: ID!) {
  getExternalObjectStorages(teamId: $teamId) {
    id
    cloudService
    bucketId
    bucketName
    credentials {
      roleArn
      externalId
      serviceAccount
      tenantId
      storageContainerUrl
      region
      tenantUsername
    }
    securityToken
    team {
      id
      logoURL
      members {
        ...TeamMemberFragment
      }
      membersScalar
      name
      setting {
        ...TeamSettingFragment
      }
      owner {
        ...UserFragment
      }
      isExpired
      expiredAt
    }
    projects {
      id
      team {
        ...TeamFragment
      }
      teamId
      owner {
        ...UserFragment
      }
      externalObjectStorageId
      rootDocumentId
      assignees {
        ...ProjectAssignmentFragment
      }
      name
      tags {
        ...TagFragment
      }
      type
      createdDate
      completedDate
      exportedDate
      updatedDate
      isOwnerMe
      isReviewByMeAllowed
      settings {
        ...ProjectSettingsFragment
      }
      workspaceSettings {
        ...WorkspaceSettingsFragment
      }
      reviewingStatus {
        ...ReviewingStatusFragment
      }
      labelingStatus {
        ...LabelingStatusFragment
      }
      status
      performance {
        ...ProjectPerformanceFragment
      }
      selfLabelingStatus
      purpose
      rootCabinet {
        ...CabinetFragment
      }
      reviewCabinet {
        ...CabinetFragment
      }
      labelerCabinets {
        ...CabinetFragment
      }
      guideline {
        ...GuidelineFragment
      }
      isArchived
      projectMetadataItems {
        ...ProjectMetadataItemFragment
      }
      availableDocumentsCount
    }
    createdAt
    updatedAt
  }
}
Variables
{"teamId": "4"}
Response
{
  "data": {
    "getExternalObjectStorages": [
      {
        "id": "4",
        "cloudService": "AWS_S3",
        "bucketId": "xyz789",
        "bucketName": "abc123",
        "credentials": ExternalObjectStorageCredentials,
        "securityToken": "xyz789",
        "team": Team,
        "projects": [Project],
        "createdAt": "2007-12-03T10:15:30Z",
        "updatedAt": "2007-12-03T10:15:30Z"
      }
    ]
  }
}

getFileTransformer

Response

Returns a FileTransformer!

Arguments
Name Description
fileTransformerId - ID!

Example

Query
query GetFileTransformer($fileTransformerId: ID!) {
  getFileTransformer(fileTransformerId: $fileTransformerId) {
    id
    name
    content
    transpiled
    createdAt
    updatedAt
    language
    purpose
    readonly
    externalId
    warmup
  }
}
Variables
{"fileTransformerId": "4"}
Response
{
  "data": {
    "getFileTransformer": {
      "id": 4,
      "name": "xyz789",
      "content": "xyz789",
      "transpiled": "abc123",
      "createdAt": "xyz789",
      "updatedAt": "xyz789",
      "language": "TYPESCRIPT",
      "purpose": "IMPORT",
      "readonly": false,
      "externalId": "xyz789",
      "warmup": true
    }
  }
}

getFileTransformers

Response

Returns [FileTransformer!]!

Arguments
Name Description
teamId - ID!
purpose - FileTransformerPurpose

Example

Query
query GetFileTransformers(
  $teamId: ID!,
  $purpose: FileTransformerPurpose
) {
  getFileTransformers(
    teamId: $teamId,
    purpose: $purpose
  ) {
    id
    name
    content
    transpiled
    createdAt
    updatedAt
    language
    purpose
    readonly
    externalId
    warmup
  }
}
Variables
{"teamId": "4", "purpose": "IMPORT"}
Response
{
  "data": {
    "getFileTransformers": [
      {
        "id": 4,
        "name": "abc123",
        "content": "xyz789",
        "transpiled": "xyz789",
        "createdAt": "abc123",
        "updatedAt": "xyz789",
        "language": "TYPESCRIPT",
        "purpose": "IMPORT",
        "readonly": false,
        "externalId": "xyz789",
        "warmup": true
      }
    ]
  }
}

getFineTunedLlmModels

Breaking changes may be introduced anytime in the future without prior notice.
Description

Retrieves a list of all fine-tuned LLM models of a team.

Response

Returns [LlmModel!]!

Arguments
Name Description
teamId - ID!

Example

Query
query GetFineTunedLlmModels($teamId: ID!) {
  getFineTunedLlmModels(teamId: $teamId) {
    id
    teamId
    provider
    name
    displayName
    url
    region
    maxTemperature
    maxTopP
    maxTokens
    maxContextWindow
    defaultTemperature
    defaultTopP
    defaultMaxTokens
    minTemperature
    minTopP
    llmModelFineTuningJob {
      id
      name
      teamId
      status
      errorMessage
      baseModelId
      parentId
      resultModelId
      trainingJobId
      trainingDataset {
        ...GroundTruthSetFragment
      }
      trainingDatasetFilename
      validationSize
      validationDataset {
        ...GroundTruthSetFragment
      }
      validationDatasetFilename
      epochs
      learningRate
      batchSize
      earlyStoppingThreshold
      earlyStoppingPatience
      learningRateWarmUpStep
      learningRateMultiplier
      instanceType
      trainingVolumeSize
      trainingBucketName
      optionalHyperparameters
      createdByUser {
        ...UserFragment
      }
      createdAt
      updatedAt
    }
    deployableModelId
    isModelDeployable
    forceAnonymization
    hasVisionCapability
    variant
    createdAt
    updatedAt
  }
}
Variables
{"teamId": "4"}
Response
{
  "data": {
    "getFineTunedLlmModels": [
      {
        "id": "4",
        "teamId": "4",
        "provider": "AMAZON_BEDROCK",
        "name": "abc123",
        "displayName": "xyz789",
        "url": "abc123",
        "region": ["abc123"],
        "maxTemperature": 123.45,
        "maxTopP": 123.45,
        "maxTokens": 987,
        "maxContextWindow": 123,
        "defaultTemperature": 123.45,
        "defaultTopP": 987.65,
        "defaultMaxTokens": 123,
        "minTemperature": 987.65,
        "minTopP": 987.65,
        "llmModelFineTuningJob": LlmModelFineTuningJob,
        "deployableModelId": "abc123",
        "isModelDeployable": true,
        "forceAnonymization": true,
        "hasVisionCapability": true,
        "variant": "META",
        "createdAt": "abc123",
        "updatedAt": "xyz789"
      }
    ]
  }
}

getFineTunedModelResultUrl

Breaking changes may be introduced anytime in the future without prior notice.
Description

Get the URL of the fine-tuned model result

Response

Returns a String!

Arguments
Name Description
llmModelId - ID!

Example

Query
query GetFineTunedModelResultUrl($llmModelId: ID!) {
  getFineTunedModelResultUrl(llmModelId: $llmModelId)
}
Variables
{"llmModelId": "4"}
Response
{
  "data": {
    "getFineTunedModelResultUrl": "abc123"
  }
}

getFineTuningBaseCost

Breaking changes may be introduced anytime in the future without prior notice.
Description

Get fine tuning training cost

Response

Returns [LlmPricingModel!]!

Arguments
Name Description
input - LlmFineTuningBaseCostInput!

Example

Query
query GetFineTuningBaseCost($input: LlmFineTuningBaseCostInput!) {
  getFineTuningBaseCost(input: $input) {
    unitPrice
    unitType
    unitPurpose
  }
}
Variables
{"input": LlmFineTuningBaseCostInput}
Response
{
  "data": {
    "getFineTuningBaseCost": [
      {"unitPrice": 987.65, "unitType": "HOUR", "unitPurpose": "DEPLOY"}
    ]
  }
}

getFineTuningEstimatedDuration

Breaking changes may be introduced anytime in the future without prior notice.
Description

Get estimated remaining duration of the fine tuning job in seconds

Response

Returns a Float

Arguments
Name Description
llmModelId - ID!

Example

Query
query GetFineTuningEstimatedDuration($llmModelId: ID!) {
  getFineTuningEstimatedDuration(llmModelId: $llmModelId)
}
Variables
{"llmModelId": 4}
Response
{"data": {"getFineTuningEstimatedDuration": 987.65}}

getFineTuningPerformanceMetrics

Breaking changes may be introduced anytime in the future without prior notice.
Description

Get fine tuning performance metrics

Response

Returns a FineTuningPerformanceMetrics!

Arguments
Name Description
llmModelId - ID!

Example

Query
query GetFineTuningPerformanceMetrics($llmModelId: ID!) {
  getFineTuningPerformanceMetrics(llmModelId: $llmModelId) {
    fineTunedJobId
    loggingStrategy {
      type
      loggingSteps
    }
    trainingMetrics {
      sequence
      loss
      accuracy
    }
    evaluationMetrics {
      sequence
      loss
      accuracy
    }
  }
}
Variables
{"llmModelId": 4}
Response
{
  "data": {
    "getFineTuningPerformanceMetrics": {
      "fineTunedJobId": 4,
      "loggingStrategy": LoggingStrategy,
      "trainingMetrics": [PerformanceMetric],
      "evaluationMetrics": [PerformanceMetric]
    }
  }
}

getFineTuningResourceMetrics

Breaking changes may be introduced anytime in the future without prior notice.
Description

Get fine tuning resource metrics

Response

Returns a FineTuningResourceMetric!

Arguments
Name Description
llmModelId - ID!

Example

Query
query GetFineTuningResourceMetrics($llmModelId: ID!) {
  getFineTuningResourceMetrics(llmModelId: $llmModelId) {
    fineTunedJobId
    resourceMetrics {
      timestamp
      hostName
      gpuUtilization
      memoryUtilization
      cpuUtilization
    }
  }
}
Variables
{"llmModelId": 4}
Response
{
  "data": {
    "getFineTuningResourceMetrics": {
      "fineTunedJobId": 4,
      "resourceMetrics": [ResourceMetric]
    }
  }
}

getFreeTrialQuota

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns a FreeTrialQuotaResponse!

Arguments
Name Description
teamId - ID!

Example

Query
query GetFreeTrialQuota($teamId: ID!) {
  getFreeTrialQuota(teamId: $teamId) {
    runPromptCurrentAmount
    runPromptMaxAmount
    runPromptUnit
    embedDocumentCurrentAmount
    embedDocumentMaxAmount
    embedDocumentUnit
    embedDocumentUrlCurrentAmount
    embedDocumentUrlMaxAmount
    embedDocumentUrlUnit
    llmEvaluationCurrentAmount
    llmEvaluationMaxAmount
    llmEvaluationUnit
    llmFineTuningCreationCurrentAmount
    llmFineTuningCreationMaxAmount
    llmFineTuningCreationUnit
    llmFineTuningDeploymentCurrentAmount
    llmFineTuningDeploymentMaxAmount
    llmFineTuningDeploymentUnit
  }
}
Variables
{"teamId": "4"}
Response
{
  "data": {
    "getFreeTrialQuota": {
      "runPromptCurrentAmount": 123,
      "runPromptMaxAmount": 123,
      "runPromptUnit": "xyz789",
      "embedDocumentCurrentAmount": 123.45,
      "embedDocumentMaxAmount": 123.45,
      "embedDocumentUnit": "xyz789",
      "embedDocumentUrlCurrentAmount": 987,
      "embedDocumentUrlMaxAmount": 987,
      "embedDocumentUrlUnit": "abc123",
      "llmEvaluationCurrentAmount": 123,
      "llmEvaluationMaxAmount": 987,
      "llmEvaluationUnit": "xyz789",
      "llmFineTuningCreationCurrentAmount": 123,
      "llmFineTuningCreationMaxAmount": 987,
      "llmFineTuningCreationUnit": "xyz789",
      "llmFineTuningDeploymentCurrentAmount": 987,
      "llmFineTuningDeploymentMaxAmount": 123,
      "llmFineTuningDeploymentUnit": "abc123"
    }
  }
}

getGeneralWorkspaceSettings

Response

Returns a GeneralWorkspaceSettings!

Arguments
Name Description
projectId - ID!

Example

Query
query GetGeneralWorkspaceSettings($projectId: ID!) {
  getGeneralWorkspaceSettings(projectId: $projectId) {
    id
    editorFontType
    editorFontSize
    editorLineSpacing
    editorLineSpacingRatio
    showIndexBar
    showLabels
    keepLabelBoxOpenAfterRelabel
    jumpToNextDocumentOnSubmit
    jumpToNextDocumentOnDocumentCompleted
    jumpToNextSpanOnSubmit
    multipleSelectLabels
  }
}
Variables
{"projectId": "4"}
Response
{
  "data": {
    "getGeneralWorkspaceSettings": {
      "id": "4",
      "editorFontType": "SANS_SERIF",
      "editorFontSize": "SMALL",
      "editorLineSpacing": "DENSE",
      "editorLineSpacingRatio": 987.65,
      "showIndexBar": true,
      "showLabels": "ALWAYS",
      "keepLabelBoxOpenAfterRelabel": true,
      "jumpToNextDocumentOnSubmit": true,
      "jumpToNextDocumentOnDocumentCompleted": true,
      "jumpToNextSpanOnSubmit": true,
      "multipleSelectLabels": true
    }
  }
}

getGlobalWorkspacePermissionsSettings

Example

Query
query GetGlobalWorkspacePermissionsSettings {
  getGlobalWorkspacePermissionsSettings {
    allowCreateWorkspaces
    allowInviteTeamMembers
    allowChangeTeamMemberRoles
  }
}
Response
{
  "data": {
    "getGlobalWorkspacePermissionsSettings": {
      "allowCreateWorkspaces": true,
      "allowInviteTeamMembers": false,
      "allowChangeTeamMemberRoles": true
    }
  }
}

getGrammarCheckerServiceProviders

Example

Query
query GetGrammarCheckerServiceProviders {
  getGrammarCheckerServiceProviders {
    id
    name
    description
  }
}
Response
{
  "data": {
    "getGrammarCheckerServiceProviders": [
      {
        "id": 4,
        "name": "abc123",
        "description": "xyz789"
      }
    ]
  }
}

getGrammarMistakes

Response

Returns [GrammarMistake!]!

Arguments
Name Description
input - GrammarCheckerInput!

Example

Query
query GetGrammarMistakes($input: GrammarCheckerInput!) {
  getGrammarMistakes(input: $input) {
    text
    message
    position {
      start {
        ...TextCursorFragment
      }
      end {
        ...TextCursorFragment
      }
    }
    suggestions
  }
}
Variables
{"input": GrammarCheckerInput}
Response
{
  "data": {
    "getGrammarMistakes": [
      {
        "text": "xyz789",
        "message": "abc123",
        "position": TextRange,
        "suggestions": ["abc123"]
      }
    ]
  }
}

getGroundTruthSet

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns a GroundTruthSet!

Arguments
Name Description
input - GetGroundTruthSetInput!

Example

Query
query GetGroundTruthSet($input: GetGroundTruthSetInput!) {
  getGroundTruthSet(input: $input) {
    id
    name
    teamId
    createdByUserId
    createdByUser {
      id
      samlId
      amazonCustomerId
      username
      name
      email
      package
      profilePicture
      allowedActions
      displayName
      teamPackage
      emailVerified
      totpAuthEnabled
      companyName
      createdAt
      signUpParams {
        ...SignUpParamsFragment
      }
    }
    items {
      id
      groundTruthSetId
      systemInstruction
      prompt
      answer
      createdAt
      updatedAt
    }
    itemsCount
    createdAt
    updatedAt
  }
}
Variables
{"input": GetGroundTruthSetInput}
Response
{
  "data": {
    "getGroundTruthSet": {
      "id": 4,
      "name": "xyz789",
      "teamId": "4",
      "createdByUserId": "4",
      "createdByUser": User,
      "items": [GroundTruth],
      "itemsCount": 123,
      "createdAt": "xyz789",
      "updatedAt": "xyz789"
    }
  }
}

getGuidelines

Response

Returns [Guideline!]!

Arguments
Name Description
teamId - ID

Example

Query
query GetGuidelines($teamId: ID) {
  getGuidelines(teamId: $teamId) {
    id
    name
    content
    project {
      id
      team {
        ...TeamFragment
      }
      teamId
      owner {
        ...UserFragment
      }
      externalObjectStorageId
      rootDocumentId
      assignees {
        ...ProjectAssignmentFragment
      }
      name
      tags {
        ...TagFragment
      }
      type
      createdDate
      completedDate
      exportedDate
      updatedDate
      isOwnerMe
      isReviewByMeAllowed
      settings {
        ...ProjectSettingsFragment
      }
      workspaceSettings {
        ...WorkspaceSettingsFragment
      }
      reviewingStatus {
        ...ReviewingStatusFragment
      }
      labelingStatus {
        ...LabelingStatusFragment
      }
      status
      performance {
        ...ProjectPerformanceFragment
      }
      selfLabelingStatus
      purpose
      rootCabinet {
        ...CabinetFragment
      }
      reviewCabinet {
        ...CabinetFragment
      }
      labelerCabinets {
        ...CabinetFragment
      }
      guideline {
        ...GuidelineFragment
      }
      isArchived
      projectMetadataItems {
        ...ProjectMetadataItemFragment
      }
      availableDocumentsCount
    }
  }
}
Variables
{"teamId": "4"}
Response
{
  "data": {
    "getGuidelines": [
      {
        "id": "4",
        "name": "xyz789",
        "content": "abc123",
        "project": Project
      }
    ]
  }
}

getIAAInformation

Response

Returns an IAAInformation!

Arguments
Name Description
input - IAAInput!

Example

Query
query GetIAAInformation($input: IAAInput!) {
  getIAAInformation(input: $input) {
    agreements {
      userId1
      userId2
      teamMemberId1
      teamMemberId2
      agreement
    }
    lastUpdatedTime
  }
}
Variables
{"input": IAAInput}
Response
{
  "data": {
    "getIAAInformation": {
      "agreements": [IAA],
      "lastUpdatedTime": "abc123"
    }
  }
}

getIAALastUpdatedAt

Please use getIAAInformation instead.
Response

Returns a String!

Arguments
Name Description
teamId - ID!
labelSetSignatures - [String!]
method - IAAMethodName
projectIds - [ID!]

Example

Query
query GetIAALastUpdatedAt(
  $teamId: ID!,
  $labelSetSignatures: [String!],
  $method: IAAMethodName,
  $projectIds: [ID!]
) {
  getIAALastUpdatedAt(
    teamId: $teamId,
    labelSetSignatures: $labelSetSignatures,
    method: $method,
    projectIds: $projectIds
  )
}
Variables
{
  "teamId": "4",
  "labelSetSignatures": ["abc123"],
  "method": "COHENS_KAPPA",
  "projectIds": ["4"]
}
Response
{"data": {"getIAALastUpdatedAt": "xyz789"}}

getInvalidDocumentAnswerInfos

Response

Returns [InvalidAnswerInfo!]!

Arguments
Name Description
cabinetId - ID!

Example

Query
query GetInvalidDocumentAnswerInfos($cabinetId: ID!) {
  getInvalidDocumentAnswerInfos(cabinetId: $cabinetId) {
    documentId
    fileName
    lines
  }
}
Variables
{"cabinetId": "4"}
Response
{
  "data": {
    "getInvalidDocumentAnswerInfos": [
      {
        "documentId": 4,
        "fileName": "xyz789",
        "lines": [987]
      }
    ]
  }
}

getInvalidRowAnswerInfos

Response

Returns [InvalidAnswerInfo!]!

Arguments
Name Description
cabinetId - ID!

Example

Query
query GetInvalidRowAnswerInfos($cabinetId: ID!) {
  getInvalidRowAnswerInfos(cabinetId: $cabinetId) {
    documentId
    fileName
    lines
  }
}
Variables
{"cabinetId": "4"}
Response
{
  "data": {
    "getInvalidRowAnswerInfos": [
      {
        "documentId": 4,
        "fileName": "abc123",
        "lines": [123]
      }
    ]
  }
}

getInvoiceUrl

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns a String!

Arguments
Name Description
teamId - ID!

Example

Query
query GetInvoiceUrl($teamId: ID!) {
  getInvoiceUrl(teamId: $teamId)
}
Variables
{"teamId": 4}
Response
{"data": {"getInvoiceUrl": "xyz789"}}

getJob

Description

Get a specific Job by its ID. Can be used to check the status of a ProjectLaunchJob.

Response

Returns a Job

Arguments
Name Description
jobId - String! Job ID.

Example

Query
query GetJob($jobId: String!) {
  getJob(jobId: $jobId) {
    id
    status
    progress
    errors {
      id
      stack
      args
      message
    }
    resultId
    result
    createdAt
    updatedAt
    retryCount
    maxRetry
    additionalData {
      actionRunId
      childrenJobIds
      documentIds
      reversedLabels {
        ...UpdateReversedLabelsResultFragment
      }
      labelingAgentsJobId
      labelingAgentsResults
    }
  }
}
Variables
{"jobId": "xyz789"}
Response
{
  "data": {
    "getJob": {
      "id": "abc123",
      "status": "DELIVERED",
      "progress": 987,
      "errors": [JobError],
      "resultId": "xyz789",
      "result": JobResult,
      "createdAt": "abc123",
      "updatedAt": "abc123",
      "retryCount": 987,
      "maxRetry": 987,
      "additionalData": JobAdditionalData
    }
  }
}

getJobs

Response

Returns [Job]!

Arguments
Name Description
jobIds - [String!]!

Example

Query
query GetJobs($jobIds: [String!]!) {
  getJobs(jobIds: $jobIds) {
    id
    status
    progress
    errors {
      id
      stack
      args
      message
    }
    resultId
    result
    createdAt
    updatedAt
    retryCount
    maxRetry
    additionalData {
      actionRunId
      childrenJobIds
      documentIds
      reversedLabels {
        ...UpdateReversedLabelsResultFragment
      }
      labelingAgentsJobId
      labelingAgentsResults
    }
  }
}
Variables
{"jobIds": ["xyz789"]}
Response
{
  "data": {
    "getJobs": [
      {
        "id": "xyz789",
        "status": "DELIVERED",
        "progress": 123,
        "errors": [JobError],
        "resultId": "abc123",
        "result": JobResult,
        "createdAt": "xyz789",
        "updatedAt": "xyz789",
        "retryCount": 123,
        "maxRetry": 123,
        "additionalData": JobAdditionalData
      }
    ]
  }
}

getLLMAssistedLabelingProviders

Arguments
Name Description
input - LLMAssistedLabelingProvidersInput!

Example

Query
query GetLLMAssistedLabelingProviders($input: LLMAssistedLabelingProvidersInput!) {
  getLLMAssistedLabelingProviders(input: $input) {
    name
    models {
      model
      maxTokens
    }
    inputFields {
      key
      name
      type
      required
      maxValue
      minValue
    }
  }
}
Variables
{"input": LLMAssistedLabelingProvidersInput}
Response
{
  "data": {
    "getLLMAssistedLabelingProviders": [
      {
        "name": "OPENAI",
        "models": [LLMAssistedLabelingProviderModel],
        "inputFields": [
          LLMAssistedLabelingProviderInputField
        ]
      }
    ]
  }
}

getLabelErrorDetectionRowBasedSuggestions

Example

Query
query GetLabelErrorDetectionRowBasedSuggestions($input: GetLabelErrorDetectionRowBasedSuggestionsInput!) {
  getLabelErrorDetectionRowBasedSuggestions(input: $input) {
    id
    documentId
    labelErrorDetectionId
    line
    errorPossibility
    suggestedLabel
    previousLabel
    createdAt
    updatedAt
  }
}
Variables
{"input": GetLabelErrorDetectionRowBasedSuggestionsInput}
Response
{
  "data": {
    "getLabelErrorDetectionRowBasedSuggestions": [
      {
        "id": "4",
        "documentId": "4",
        "labelErrorDetectionId": "4",
        "line": 987,
        "errorPossibility": 123.45,
        "suggestedLabel": "xyz789",
        "previousLabel": "xyz789",
        "createdAt": "xyz789",
        "updatedAt": "xyz789"
      }
    ]
  }
}

getLabelSetTemplate

Description

Returns a single labelset template.

Response

Returns a LabelSetTemplate

Arguments
Name Description
id - ID!

Example

Query
query GetLabelSetTemplate($id: ID!) {
  getLabelSetTemplate(id: $id) {
    id
    name
    owner {
      id
      samlId
      amazonCustomerId
      username
      name
      email
      package
      profilePicture
      allowedActions
      displayName
      teamPackage
      emailVerified
      totpAuthEnabled
      companyName
      createdAt
      signUpParams {
        ...SignUpParamsFragment
      }
    }
    type
    items {
      id
      labelSetTemplateId
      index
      parentIndex
      name
      description
      options {
        ...LabelSetConfigOptionsFragment
      }
      arrowLabelRequired
      required
      multipleChoice
      type
      minLength
      maxLength
      pattern
      min
      max
      step
      multiline
      hint
      theme
      bindToColumn
      format
      defaultValue
      createdAt
      updatedAt
      activationConditionLogic
    }
    count
    createdAt
    updatedAt
    leafOnlyOption
  }
}
Variables
{"id": 4}
Response
{
  "data": {
    "getLabelSetTemplate": {
      "id": "4",
      "name": "abc123",
      "owner": User,
      "type": "QUESTION",
      "items": [LabelSetTemplateItem],
      "count": 987,
      "createdAt": "abc123",
      "updatedAt": "xyz789",
      "leafOnlyOption": false
    }
  }
}

getLabelSetTemplates

Description

Returns a list of labelset templates.

Response

Returns a GetLabelSetTemplatesResponse!

Arguments
Name Description
input - GetLabelSetTemplatesPaginatedInput!

Example

Query
query GetLabelSetTemplates($input: GetLabelSetTemplatesPaginatedInput!) {
  getLabelSetTemplates(input: $input) {
    totalCount
    pageInfo {
      prevCursor
      nextCursor
    }
    nodes {
      id
      name
      owner {
        ...UserFragment
      }
      type
      items {
        ...LabelSetTemplateItemFragment
      }
      count
      createdAt
      updatedAt
      leafOnlyOption
    }
  }
}
Variables
{"input": GetLabelSetTemplatesPaginatedInput}
Response
{
  "data": {
    "getLabelSetTemplates": {
      "totalCount": 123,
      "pageInfo": PageInfo,
      "nodes": [LabelSetTemplate]
    }
  }
}

getLabelSetsByTeamId

Response

Returns [LabelSet!]!

Arguments
Name Description
teamId - ID!

Example

Query
query GetLabelSetsByTeamId($teamId: ID!) {
  getLabelSetsByTeamId(teamId: $teamId) {
    id
    name
    index
    signature
    tagItems {
      id
      parentId
      tagName
      desc
      color
      type
      arrowRules {
        ...LabelClassArrowRuleFragment
      }
    }
    lastUsedBy {
      projectId
      name
    }
    arrowLabelRequired
    leafOnlyOption
  }
}
Variables
{"teamId": 4}
Response
{
  "data": {
    "getLabelSetsByTeamId": [
      {
        "id": "4",
        "name": "abc123",
        "index": 987,
        "signature": "abc123",
        "tagItems": [TagItem],
        "lastUsedBy": LastUsedProject,
        "arrowLabelRequired": false,
        "leafOnlyOption": false
      }
    ]
  }
}

getLabelingAgentJobs

Arguments
Name Description
projectId - ID!

Example

Query
query GetLabelingAgentJobs($projectId: ID!) {
  getLabelingAgentJobs(projectId: $projectId) {
    parentJobId
    jobId
    projectId
    projectName
    projectResourceId
    labelingAgentId
    labelingAgent {
      id
      agentId
      agentType
      name
    }
    jobType
    jobStatus
    progress
    errors {
      id
      stack
      args
      message
    }
  }
}
Variables
{"projectId": "4"}
Response
{
  "data": {
    "getLabelingAgentJobs": [
      {
        "parentJobId": "xyz789",
        "jobId": "abc123",
        "projectId": "xyz789",
        "projectName": "xyz789",
        "projectResourceId": "xyz789",
        "labelingAgentId": "abc123",
        "labelingAgent": LabelingAgent,
        "jobType": "CABINET_CREATION",
        "jobStatus": "DELIVERED",
        "progress": 987,
        "errors": [JobError]
      }
    ]
  }
}

getLabelingAgentTeamMembers

Response

Returns [TeamMember!]!

Arguments
Name Description
teamId - ID!

Example

Query
query GetLabelingAgentTeamMembers($teamId: ID!) {
  getLabelingAgentTeamMembers(teamId: $teamId) {
    id
    user {
      id
      samlId
      amazonCustomerId
      username
      name
      email
      package
      profilePicture
      allowedActions
      displayName
      teamPackage
      emailVerified
      totpAuthEnabled
      companyName
      createdAt
      signUpParams {
        ...SignUpParamsFragment
      }
    }
    userId
    role {
      id
      name
    }
    invitationEmail
    invitationStatus
    invitationKey
    isDeleted
    joinedDate
    performance {
      id
      userId
      projectStatistic {
        ...TeamMemberProjectStatisticFragment
      }
      totalTimeSpent
      effectiveTotalTimeSpent
      accuracy
    }
    labelingAgent {
      id
      agentId
      agentType
      name
    }
    labelingAgentId
  }
}
Variables
{"teamId": 4}
Response
{
  "data": {
    "getLabelingAgentTeamMembers": [
      {
        "id": "4",
        "user": User,
        "userId": 4,
        "role": TeamRole,
        "invitationEmail": "xyz789",
        "invitationStatus": "abc123",
        "invitationKey": "xyz789",
        "isDeleted": false,
        "joinedDate": "abc123",
        "performance": TeamMemberPerformance,
        "labelingAgent": LabelingAgent,
        "labelingAgentId": 4
      }
    ]
  }
}

getLabelingAgents

Response

Returns [LabelingAgent!]!

Arguments
Name Description
teamId - ID!

Example

Query
query GetLabelingAgents($teamId: ID!) {
  getLabelingAgents(teamId: $teamId) {
    id
    agentId
    agentType
    name
  }
}
Variables
{"teamId": "4"}
Response
{
  "data": {
    "getLabelingAgents": [
      {
        "id": "4",
        "agentId": "xyz789",
        "agentType": "LLM_LABS",
        "name": "abc123"
      }
    ]
  }
}

getLabelingFunction

Response

Returns a LabelingFunction!

Arguments
Name Description
input - GetLabelingFunctionInput!

Example

Query
query GetLabelingFunction($input: GetLabelingFunctionInput!) {
  getLabelingFunction(input: $input) {
    id
    dataProgrammingId
    heuristicArgument
    annotatorArgument
    name
    content
    active
    createdAt
    updatedAt
    cached
  }
}
Variables
{"input": GetLabelingFunctionInput}
Response
{
  "data": {
    "getLabelingFunction": {
      "id": 4,
      "dataProgrammingId": "4",
      "heuristicArgument": HeuristicArgumentScalar,
      "annotatorArgument": AnnotatorArgumentScalar,
      "name": "abc123",
      "content": "xyz789",
      "active": true,
      "createdAt": "abc123",
      "updatedAt": "abc123",
      "cached": false
    }
  }
}

getLabelingFunctions

Response

Returns [LabelingFunction!]

Arguments
Name Description
input - GetLabelingFunctionsInput!

Example

Query
query GetLabelingFunctions($input: GetLabelingFunctionsInput!) {
  getLabelingFunctions(input: $input) {
    id
    dataProgrammingId
    heuristicArgument
    annotatorArgument
    name
    content
    active
    createdAt
    updatedAt
    cached
  }
}
Variables
{"input": GetLabelingFunctionsInput}
Response
{
  "data": {
    "getLabelingFunctions": [
      {
        "id": 4,
        "dataProgrammingId": "4",
        "heuristicArgument": HeuristicArgumentScalar,
        "annotatorArgument": AnnotatorArgumentScalar,
        "name": "xyz789",
        "content": "abc123",
        "active": false,
        "createdAt": "abc123",
        "updatedAt": "xyz789",
        "cached": true
      }
    ]
  }
}

getLabelingFunctionsPairKappa

Arguments
Name Description
input - GetLabelingFunctionsPairKappaInput!

Example

Query
query GetLabelingFunctionsPairKappa($input: GetLabelingFunctionsPairKappaInput!) {
  getLabelingFunctionsPairKappa(input: $input) {
    labelingFunctionPairKappas {
      labelingFunctionId1
      labelingFunctionId2
      kappa
    }
    lastCalculatedAt
  }
}
Variables
{"input": GetLabelingFunctionsPairKappaInput}
Response
{
  "data": {
    "getLabelingFunctionsPairKappa": {
      "labelingFunctionPairKappas": [
        LabelingFunctionPairKappa
      ],
      "lastCalculatedAt": "abc123"
    }
  }
}

getLabelingStatusForCabinet

Response

Returns a LabelingStatus!

Arguments
Name Description
projectId - ID!

Example

Query
query GetLabelingStatusForCabinet($projectId: ID!) {
  getLabelingStatusForCabinet(projectId: $projectId) {
    labeler {
      id
      user {
        ...UserFragment
      }
      userId
      role {
        ...TeamRoleFragment
      }
      invitationEmail
      invitationStatus
      invitationKey
      isDeleted
      joinedDate
      performance {
        ...TeamMemberPerformanceFragment
      }
      labelingAgent {
        ...LabelingAgentFragment
      }
      labelingAgentId
    }
    isCompleted
    isStarted
    statistic {
      id
      numberOfDocuments
      numberOfTouchedDocuments
      numberOfCompletedDocuments
      numberOfSentences
      numberOfTouchedSentences
      documentIds
      completedDocumentIds
      touchedDocumentIds
      totalLabelsApplied
      numberOfAcceptedLabels
      numberOfRejectedLabels
      numberOfUnresolvedLabels
      totalTimeSpent
    }
    statisticsToShow {
      key
      values {
        ...StatisticItemValueFragment
      }
    }
  }
}
Variables
{"projectId": "4"}
Response
{
  "data": {
    "getLabelingStatusForCabinet": {
      "labeler": TeamMember,
      "isCompleted": false,
      "isStarted": true,
      "statistic": LabelingStatusStatistic,
      "statisticsToShow": [StatisticItem]
    }
  }
}

getLabelsPaginated

Description

Fetch span and arrow labels by document ID. totalCount is only calculated on the first page (skip: 0).

Response

Returns a GetLabelsPaginatedResponse!

Arguments
Name Description
documentId - ID!
input - GetLabelsPaginatedInput!
signature - String

Example

Query
query GetLabelsPaginated(
  $documentId: ID!,
  $input: GetLabelsPaginatedInput!,
  $signature: String
) {
  getLabelsPaginated(
    documentId: $documentId,
    input: $input,
    signature: $signature
  ) {
    totalCount
    pageInfo {
      prevCursor
      nextCursor
    }
    nodes
  }
}
Variables
{
  "documentId": "4",
  "input": GetLabelsPaginatedInput,
  "signature": "abc123"
}
Response
{
  "data": {
    "getLabelsPaginated": {
      "totalCount": 123,
      "pageInfo": PageInfo,
      "nodes": [TextLabelScalar]
    }
  }
}

getLabelsPaginatedByLine

Breaking changes may be introduced anytime in the future without prior notice.
Description

Fetch span and arrow labels by document ID and line number.

Response

Returns a GetLabelsPaginatedResponse!

Arguments
Name Description
documentId - ID!
input - GetLabelsPaginatedByLineInput!
signature - String

Example

Query
query GetLabelsPaginatedByLine(
  $documentId: ID!,
  $input: GetLabelsPaginatedByLineInput!,
  $signature: String
) {
  getLabelsPaginatedByLine(
    documentId: $documentId,
    input: $input,
    signature: $signature
  ) {
    totalCount
    pageInfo {
      prevCursor
      nextCursor
    }
    nodes
  }
}
Variables
{
  "documentId": 4,
  "input": GetLabelsPaginatedByLineInput,
  "signature": "abc123"
}
Response
{
  "data": {
    "getLabelsPaginatedByLine": {
      "totalCount": 123,
      "pageInfo": PageInfo,
      "nodes": [TextLabelScalar]
    }
  }
}

getLastLlmApplicationDeployment

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns a LlmApplicationDeployment

Arguments
Name Description
llmApplicationId - ID!

Example

Query
query GetLastLlmApplicationDeployment($llmApplicationId: ID!) {
  getLastLlmApplicationDeployment(llmApplicationId: $llmApplicationId) {
    id
    deployedByUser {
      id
      samlId
      amazonCustomerId
      username
      name
      email
      package
      profilePicture
      allowedActions
      displayName
      teamPackage
      emailVerified
      totpAuthEnabled
      companyName
      createdAt
      signUpParams {
        ...SignUpParamsFragment
      }
    }
    llmApplicationId
    llmApplication {
      id
      teamId
      createdByUser {
        ...UserFragment
      }
      name
      status
      createdAt
      updatedAt
      llmApplicationDeployment {
        ...LlmApplicationDeploymentFragment
      }
      totalRagConfigs
    }
    llmRagConfig {
      id
      llmModel {
        ...LlmModelFragment
      }
      systemInstruction
      userInstruction
      raw
      temperature
      topP
      maxTokens
      advancedHyperparameters
      maxVectorStoreTokens
      llmVectorStore {
        ...LlmVectorStoreFragment
      }
      llmVectorStores {
        ...LlmVectorStoreFragment
      }
      similarityThreshold
      enableAnonymization
      maxChunkSize
      createdAt
      updatedAt
    }
    numberOfCalls
    numberOfTokens
    numberOfInputTokens
    numberOfOutputTokens
    deployedAt
    name
    status
    createdAt
    updatedAt
    apiEndpoints {
      type
      endpoint
    }
    isDeleted
  }
}
Variables
{"llmApplicationId": 4}
Response
{
  "data": {
    "getLastLlmApplicationDeployment": {
      "id": "4",
      "deployedByUser": User,
      "llmApplicationId": "4",
      "llmApplication": LlmApplication,
      "llmRagConfig": LlmRagConfig,
      "numberOfCalls": 123,
      "numberOfTokens": 123,
      "numberOfInputTokens": 123,
      "numberOfOutputTokens": 123,
      "deployedAt": "xyz789",
      "name": "abc123",
      "status": "SUSPENDED",
      "createdAt": "abc123",
      "updatedAt": "xyz789",
      "apiEndpoints": [
        LlmApplicationDeploymentApiEndpoint
      ],
      "isDeleted": false
    }
  }
}

getLatestAccessedTeam

Response

Returns a Team

Example

Query
query GetLatestAccessedTeam {
  getLatestAccessedTeam {
    id
    logoURL
    members {
      id
      user {
        ...UserFragment
      }
      userId
      role {
        ...TeamRoleFragment
      }
      invitationEmail
      invitationStatus
      invitationKey
      isDeleted
      joinedDate
      performance {
        ...TeamMemberPerformanceFragment
      }
      labelingAgent {
        ...LabelingAgentFragment
      }
      labelingAgentId
    }
    membersScalar
    name
    setting {
      activitySettings {
        ...TeamActivitySettingsFragment
      }
      additionalSetting {
        ...AdditionalTeamSettingFragment
      }
      allowedAdminExportMethods
      allowedLabelerExportMethods
      allowedOCRProviders
      allowedASRProviders
      allowedReviewerExportMethods
      commentNotificationType
      customAPICreationLimit
      defaultCustomTextExtractionAPIId
      defaultExternalObjectStorageId
      enabledCustomObjectStorage
      enableActions
      enableAddDocumentsToProject
      enableDemo
      enableDataProgramming
      enableLabelingFunctionMultipleLabel
      enableDatasaurAssistRowBased
      enableDatasaurDinamicTokenBased
      enableDatasaurPredictiveRowBased
      enableLabelingAgentSpanBased
      enableWipeData
      enableExportTeamOverview
      enableSelfAssignment
      enableTransferOwnership
      enableLabelErrorDetectionRowBased
      allowedExtraAutoLabelProviders
      enableLLMProject
      enableRegexSentenceSeparator
      enableTeamRoleSupervisor
      endExtensionTrialAt
      allowInvalidPaymentMethod
      enableExternalKnowledgeBase
      enableForceAnonymization
      enableReviewIndicator
      enableValidationScript
      enableSpanLabelingWithRowQuestions
      llmFreeTrialDailyLimitsConfig {
        ...LlmFreeTrialDailyLimitsConfigFragment
      }
      enableScriptGeneratedQuestion
      rowModification {
        ...RowModificationSettingFragment
      }
      enableDeployedApplicationLogging
      enableRealTimeAssistedLabelingSpanBased
      enableLabelsAndAnswersExportFormat
      enableGoogleDriveExternalObjectStorage
      enableMLAssistedOptimizationByDefault
    }
    owner {
      id
      samlId
      amazonCustomerId
      username
      name
      email
      package
      profilePicture
      allowedActions
      displayName
      teamPackage
      emailVerified
      totpAuthEnabled
      companyName
      createdAt
      signUpParams {
        ...SignUpParamsFragment
      }
    }
    isExpired
    expiredAt
  }
}
Response
{
  "data": {
    "getLatestAccessedTeam": {
      "id": 4,
      "logoURL": "abc123",
      "members": [TeamMember],
      "membersScalar": TeamMembersScalar,
      "name": "xyz789",
      "setting": TeamSetting,
      "owner": User,
      "isExpired": true,
      "expiredAt": "2007-12-03T10:15:30Z"
    }
  }
}

getLatestInfoBar

Response

Returns an InfoBar

Example

Query
query GetLatestInfoBar {
  getLatestInfoBar {
    id
    content
    isVisible
    createdAt
    updatedAt
  }
}
Response
{
  "data": {
    "getLatestInfoBar": {
      "id": 4,
      "content": "xyz789",
      "isVisible": true,
      "createdAt": "xyz789",
      "updatedAt": "xyz789"
    }
  }
}

getLatestJoinedTeam

Response

Returns a Team

Example

Query
query GetLatestJoinedTeam {
  getLatestJoinedTeam {
    id
    logoURL
    members {
      id
      user {
        ...UserFragment
      }
      userId
      role {
        ...TeamRoleFragment
      }
      invitationEmail
      invitationStatus
      invitationKey
      isDeleted
      joinedDate
      performance {
        ...TeamMemberPerformanceFragment
      }
      labelingAgent {
        ...LabelingAgentFragment
      }
      labelingAgentId
    }
    membersScalar
    name
    setting {
      activitySettings {
        ...TeamActivitySettingsFragment
      }
      additionalSetting {
        ...AdditionalTeamSettingFragment
      }
      allowedAdminExportMethods
      allowedLabelerExportMethods
      allowedOCRProviders
      allowedASRProviders
      allowedReviewerExportMethods
      commentNotificationType
      customAPICreationLimit
      defaultCustomTextExtractionAPIId
      defaultExternalObjectStorageId
      enabledCustomObjectStorage
      enableActions
      enableAddDocumentsToProject
      enableDemo
      enableDataProgramming
      enableLabelingFunctionMultipleLabel
      enableDatasaurAssistRowBased
      enableDatasaurDinamicTokenBased
      enableDatasaurPredictiveRowBased
      enableLabelingAgentSpanBased
      enableWipeData
      enableExportTeamOverview
      enableSelfAssignment
      enableTransferOwnership
      enableLabelErrorDetectionRowBased
      allowedExtraAutoLabelProviders
      enableLLMProject
      enableRegexSentenceSeparator
      enableTeamRoleSupervisor
      endExtensionTrialAt
      allowInvalidPaymentMethod
      enableExternalKnowledgeBase
      enableForceAnonymization
      enableReviewIndicator
      enableValidationScript
      enableSpanLabelingWithRowQuestions
      llmFreeTrialDailyLimitsConfig {
        ...LlmFreeTrialDailyLimitsConfigFragment
      }
      enableScriptGeneratedQuestion
      rowModification {
        ...RowModificationSettingFragment
      }
      enableDeployedApplicationLogging
      enableRealTimeAssistedLabelingSpanBased
      enableLabelsAndAnswersExportFormat
      enableGoogleDriveExternalObjectStorage
      enableMLAssistedOptimizationByDefault
    }
    owner {
      id
      samlId
      amazonCustomerId
      username
      name
      email
      package
      profilePicture
      allowedActions
      displayName
      teamPackage
      emailVerified
      totpAuthEnabled
      companyName
      createdAt
      signUpParams {
        ...SignUpParamsFragment
      }
    }
    isExpired
    expiredAt
  }
}
Response
{
  "data": {
    "getLatestJoinedTeam": {
      "id": 4,
      "logoURL": "xyz789",
      "members": [TeamMember],
      "membersScalar": TeamMembersScalar,
      "name": "abc123",
      "setting": TeamSetting,
      "owner": User,
      "isExpired": false,
      "expiredAt": "2007-12-03T10:15:30Z"
    }
  }
}

getLlmApplication

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns a LlmApplication

Arguments
Name Description
input - GetLlmApplicationInput!

Example

Query
query GetLlmApplication($input: GetLlmApplicationInput!) {
  getLlmApplication(input: $input) {
    id
    teamId
    createdByUser {
      id
      samlId
      amazonCustomerId
      username
      name
      email
      package
      profilePicture
      allowedActions
      displayName
      teamPackage
      emailVerified
      totpAuthEnabled
      companyName
      createdAt
      signUpParams {
        ...SignUpParamsFragment
      }
    }
    name
    status
    createdAt
    updatedAt
    llmApplicationDeployment {
      id
      deployedByUser {
        ...UserFragment
      }
      llmApplicationId
      llmApplication {
        ...LlmApplicationFragment
      }
      llmRagConfig {
        ...LlmRagConfigFragment
      }
      numberOfCalls
      numberOfTokens
      numberOfInputTokens
      numberOfOutputTokens
      deployedAt
      name
      status
      createdAt
      updatedAt
      apiEndpoints {
        ...LlmApplicationDeploymentApiEndpointFragment
      }
      isDeleted
    }
    totalRagConfigs
  }
}
Variables
{"input": GetLlmApplicationInput}
Response
{
  "data": {
    "getLlmApplication": {
      "id": 4,
      "teamId": 4,
      "createdByUser": User,
      "name": "abc123",
      "status": "DEPLOYED",
      "createdAt": "xyz789",
      "updatedAt": "xyz789",
      "llmApplicationDeployment": LlmApplicationDeployment,
      "totalRagConfigs": 987
    }
  }
}

getLlmApplicationConfiguration

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns a LlmApplicationConfiguration!

Arguments
Name Description
id - ID!

Example

Query
query GetLlmApplicationConfiguration($id: ID!) {
  getLlmApplicationConfiguration(id: $id) {
    id
    name
    teamId
    createdByUserId
    updatedByUserId
    updatedByUser {
      id
      samlId
      amazonCustomerId
      username
      name
      email
      package
      profilePicture
      allowedActions
      displayName
      teamPackage
      emailVerified
      totpAuthEnabled
      companyName
      createdAt
      signUpParams {
        ...SignUpParamsFragment
      }
    }
    llmRagConfigId
    llmRagConfig {
      id
      llmModel {
        ...LlmModelFragment
      }
      systemInstruction
      userInstruction
      raw
      temperature
      topP
      maxTokens
      advancedHyperparameters
      maxVectorStoreTokens
      llmVectorStore {
        ...LlmVectorStoreFragment
      }
      llmVectorStores {
        ...LlmVectorStoreFragment
      }
      similarityThreshold
      enableAnonymization
      maxChunkSize
      createdAt
      updatedAt
    }
    createdAt
    updatedAt
    isDeleted
  }
}
Variables
{"id": 4}
Response
{
  "data": {
    "getLlmApplicationConfiguration": {
      "id": 4,
      "name": "abc123",
      "teamId": 4,
      "createdByUserId": 4,
      "updatedByUserId": 4,
      "updatedByUser": User,
      "llmRagConfigId": 4,
      "llmRagConfig": LlmRagConfig,
      "createdAt": "abc123",
      "updatedAt": "xyz789",
      "isDeleted": false
    }
  }
}

getLlmApplicationConfigurations

Breaking changes may be introduced anytime in the future without prior notice.
Arguments
Name Description
teamId - ID!
withDeleted - Boolean

Example

Query
query GetLlmApplicationConfigurations(
  $teamId: ID!,
  $withDeleted: Boolean
) {
  getLlmApplicationConfigurations(
    teamId: $teamId,
    withDeleted: $withDeleted
  ) {
    id
    name
    teamId
    createdByUserId
    updatedByUserId
    updatedByUser {
      id
      samlId
      amazonCustomerId
      username
      name
      email
      package
      profilePicture
      allowedActions
      displayName
      teamPackage
      emailVerified
      totpAuthEnabled
      companyName
      createdAt
      signUpParams {
        ...SignUpParamsFragment
      }
    }
    llmRagConfigId
    llmRagConfig {
      id
      llmModel {
        ...LlmModelFragment
      }
      systemInstruction
      userInstruction
      raw
      temperature
      topP
      maxTokens
      advancedHyperparameters
      maxVectorStoreTokens
      llmVectorStore {
        ...LlmVectorStoreFragment
      }
      llmVectorStores {
        ...LlmVectorStoreFragment
      }
      similarityThreshold
      enableAnonymization
      maxChunkSize
      createdAt
      updatedAt
    }
    createdAt
    updatedAt
    isDeleted
  }
}
Variables
{"teamId": 4, "withDeleted": true}
Response
{
  "data": {
    "getLlmApplicationConfigurations": [
      {
        "id": "4",
        "name": "xyz789",
        "teamId": "4",
        "createdByUserId": "4",
        "updatedByUserId": "4",
        "updatedByUser": User,
        "llmRagConfigId": "4",
        "llmRagConfig": LlmRagConfig,
        "createdAt": "abc123",
        "updatedAt": "abc123",
        "isDeleted": false
      }
    ]
  }
}

getLlmApplicationDeployment

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns a LlmApplicationDeployment

Arguments
Name Description
input - GetLlmApplicationDeploymentInput!

Example

Query
query GetLlmApplicationDeployment($input: GetLlmApplicationDeploymentInput!) {
  getLlmApplicationDeployment(input: $input) {
    id
    deployedByUser {
      id
      samlId
      amazonCustomerId
      username
      name
      email
      package
      profilePicture
      allowedActions
      displayName
      teamPackage
      emailVerified
      totpAuthEnabled
      companyName
      createdAt
      signUpParams {
        ...SignUpParamsFragment
      }
    }
    llmApplicationId
    llmApplication {
      id
      teamId
      createdByUser {
        ...UserFragment
      }
      name
      status
      createdAt
      updatedAt
      llmApplicationDeployment {
        ...LlmApplicationDeploymentFragment
      }
      totalRagConfigs
    }
    llmRagConfig {
      id
      llmModel {
        ...LlmModelFragment
      }
      systemInstruction
      userInstruction
      raw
      temperature
      topP
      maxTokens
      advancedHyperparameters
      maxVectorStoreTokens
      llmVectorStore {
        ...LlmVectorStoreFragment
      }
      llmVectorStores {
        ...LlmVectorStoreFragment
      }
      similarityThreshold
      enableAnonymization
      maxChunkSize
      createdAt
      updatedAt
    }
    numberOfCalls
    numberOfTokens
    numberOfInputTokens
    numberOfOutputTokens
    deployedAt
    name
    status
    createdAt
    updatedAt
    apiEndpoints {
      type
      endpoint
    }
    isDeleted
  }
}
Variables
{"input": GetLlmApplicationDeploymentInput}
Response
{
  "data": {
    "getLlmApplicationDeployment": {
      "id": "4",
      "deployedByUser": User,
      "llmApplicationId": "4",
      "llmApplication": LlmApplication,
      "llmRagConfig": LlmRagConfig,
      "numberOfCalls": 123,
      "numberOfTokens": 987,
      "numberOfInputTokens": 123,
      "numberOfOutputTokens": 987,
      "deployedAt": "xyz789",
      "name": "abc123",
      "status": "SUSPENDED",
      "createdAt": "abc123",
      "updatedAt": "abc123",
      "apiEndpoints": [
        LlmApplicationDeploymentApiEndpoint
      ],
      "isDeleted": false
    }
  }
}

getLlmApplicationDeploymentUsageTotalCost

Response

Returns a Float!

Arguments
Name Description
teamId - ID!
type - GqlLlmUsageType!
sourceId - ID!

Example

Query
query GetLlmApplicationDeploymentUsageTotalCost(
  $teamId: ID!,
  $type: GqlLlmUsageType!,
  $sourceId: ID!
) {
  getLlmApplicationDeploymentUsageTotalCost(
    teamId: $teamId,
    type: $type,
    sourceId: $sourceId
  )
}
Variables
{
  "teamId": "4",
  "type": "VECTOR_STORE",
  "sourceId": 4
}
Response
{"data": {"getLlmApplicationDeploymentUsageTotalCost": 123.45}}

getLlmApplicationDeployments

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns [LlmApplicationDeployment!]!

Arguments
Name Description
teamId - ID!
withDeleted - Boolean

Example

Query
query GetLlmApplicationDeployments(
  $teamId: ID!,
  $withDeleted: Boolean
) {
  getLlmApplicationDeployments(
    teamId: $teamId,
    withDeleted: $withDeleted
  ) {
    id
    deployedByUser {
      id
      samlId
      amazonCustomerId
      username
      name
      email
      package
      profilePicture
      allowedActions
      displayName
      teamPackage
      emailVerified
      totpAuthEnabled
      companyName
      createdAt
      signUpParams {
        ...SignUpParamsFragment
      }
    }
    llmApplicationId
    llmApplication {
      id
      teamId
      createdByUser {
        ...UserFragment
      }
      name
      status
      createdAt
      updatedAt
      llmApplicationDeployment {
        ...LlmApplicationDeploymentFragment
      }
      totalRagConfigs
    }
    llmRagConfig {
      id
      llmModel {
        ...LlmModelFragment
      }
      systemInstruction
      userInstruction
      raw
      temperature
      topP
      maxTokens
      advancedHyperparameters
      maxVectorStoreTokens
      llmVectorStore {
        ...LlmVectorStoreFragment
      }
      llmVectorStores {
        ...LlmVectorStoreFragment
      }
      similarityThreshold
      enableAnonymization
      maxChunkSize
      createdAt
      updatedAt
    }
    numberOfCalls
    numberOfTokens
    numberOfInputTokens
    numberOfOutputTokens
    deployedAt
    name
    status
    createdAt
    updatedAt
    apiEndpoints {
      type
      endpoint
    }
    isDeleted
  }
}
Variables
{"teamId": "4", "withDeleted": false}
Response
{
  "data": {
    "getLlmApplicationDeployments": [
      {
        "id": "4",
        "deployedByUser": User,
        "llmApplicationId": "4",
        "llmApplication": LlmApplication,
        "llmRagConfig": LlmRagConfig,
        "numberOfCalls": 123,
        "numberOfTokens": 123,
        "numberOfInputTokens": 123,
        "numberOfOutputTokens": 987,
        "deployedAt": "abc123",
        "name": "xyz789",
        "status": "SUSPENDED",
        "createdAt": "abc123",
        "updatedAt": "xyz789",
        "apiEndpoints": [
          LlmApplicationDeploymentApiEndpoint
        ],
        "isDeleted": false
      }
    ]
  }
}

getLlmApplicationDeploymentsPaginated

Breaking changes may be introduced anytime in the future without prior notice.
Arguments
Name Description
input - GetLlmApplicationDeploymentsPaginatedInput!

Example

Query
query GetLlmApplicationDeploymentsPaginated($input: GetLlmApplicationDeploymentsPaginatedInput!) {
  getLlmApplicationDeploymentsPaginated(input: $input) {
    totalCount
    pageInfo {
      prevCursor
      nextCursor
    }
    nodes {
      id
      deployedByUser {
        ...UserFragment
      }
      llmApplicationId
      llmApplication {
        ...LlmApplicationFragment
      }
      llmRagConfig {
        ...LlmRagConfigFragment
      }
      numberOfCalls
      numberOfTokens
      numberOfInputTokens
      numberOfOutputTokens
      deployedAt
      name
      status
      createdAt
      updatedAt
      apiEndpoints {
        ...LlmApplicationDeploymentApiEndpointFragment
      }
      isDeleted
    }
  }
}
Variables
{"input": GetLlmApplicationDeploymentsPaginatedInput}
Response
{
  "data": {
    "getLlmApplicationDeploymentsPaginated": {
      "totalCount": 987,
      "pageInfo": PageInfo,
      "nodes": [LlmApplicationDeployment]
    }
  }
}

getLlmApplicationPlaygroundPrompt

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns a LlmApplicationPlaygroundPrompt

Arguments
Name Description
id - ID!

Example

Query
query GetLlmApplicationPlaygroundPrompt($id: ID!) {
  getLlmApplicationPlaygroundPrompt(id: $id) {
    id
    llmApplicationId
    name
    createdAt
    updatedAt
    lastPromptMessage {
      id
      llmApplicationPlaygroundPromptId
      content
      role
      attachments {
        ...LlmApplicationPlaygroundPromptAttachmentFragment
      }
      createdAt
      updatedAt
    }
    totalPromptMessages
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "getLlmApplicationPlaygroundPrompt": {
      "id": 4,
      "llmApplicationId": "4",
      "name": "xyz789",
      "createdAt": "xyz789",
      "updatedAt": "abc123",
      "lastPromptMessage": LlmApplicationPlaygroundPromptMessage,
      "totalPromptMessages": 123
    }
  }
}

getLlmApplicationPlaygroundPromptMessages

Breaking changes may be introduced anytime in the future without prior notice.
Arguments
Name Description
llmApplicationPlaygroundPromptId - ID!

Example

Query
query GetLlmApplicationPlaygroundPromptMessages($llmApplicationPlaygroundPromptId: ID!) {
  getLlmApplicationPlaygroundPromptMessages(llmApplicationPlaygroundPromptId: $llmApplicationPlaygroundPromptId) {
    id
    llmApplicationPlaygroundPromptId
    content
    role
    attachments {
      id
      llmFileId
      llmFile {
        ...LlmFileFragment
      }
      createdAt
      updatedAt
      llmApplicationPlaygroundPromptMessageId
    }
    createdAt
    updatedAt
  }
}
Variables
{"llmApplicationPlaygroundPromptId": 4}
Response
{
  "data": {
    "getLlmApplicationPlaygroundPromptMessages": [
      {
        "id": 4,
        "llmApplicationPlaygroundPromptId": "4",
        "content": "abc123",
        "role": "USER",
        "attachments": [
          LlmApplicationPlaygroundPromptAttachment
        ],
        "createdAt": "abc123",
        "updatedAt": "xyz789"
      }
    ]
  }
}

getLlmApplicationPlaygroundPrompts

Breaking changes may be introduced anytime in the future without prior notice.
Arguments
Name Description
llmApplicationId - ID!

Example

Query
query GetLlmApplicationPlaygroundPrompts($llmApplicationId: ID!) {
  getLlmApplicationPlaygroundPrompts(llmApplicationId: $llmApplicationId) {
    id
    llmApplicationId
    name
    createdAt
    updatedAt
    lastPromptMessage {
      id
      llmApplicationPlaygroundPromptId
      content
      role
      attachments {
        ...LlmApplicationPlaygroundPromptAttachmentFragment
      }
      createdAt
      updatedAt
    }
    totalPromptMessages
  }
}
Variables
{"llmApplicationId": 4}
Response
{
  "data": {
    "getLlmApplicationPlaygroundPrompts": [
      {
        "id": "4",
        "llmApplicationId": "4",
        "name": "abc123",
        "createdAt": "xyz789",
        "updatedAt": "abc123",
        "lastPromptMessage": LlmApplicationPlaygroundPromptMessage,
        "totalPromptMessages": 987
      }
    ]
  }
}

getLlmApplicationPlaygroundRagConfig

Breaking changes may be introduced anytime in the future without prior notice.
Arguments
Name Description
id - ID!

Example

Query
query GetLlmApplicationPlaygroundRagConfig($id: ID!) {
  getLlmApplicationPlaygroundRagConfig(id: $id) {
    id
    llmApplicationId
    llmRagConfig {
      id
      llmModel {
        ...LlmModelFragment
      }
      systemInstruction
      userInstruction
      raw
      temperature
      topP
      maxTokens
      advancedHyperparameters
      maxVectorStoreTokens
      llmVectorStore {
        ...LlmVectorStoreFragment
      }
      llmVectorStores {
        ...LlmVectorStoreFragment
      }
      similarityThreshold
      enableAnonymization
      maxChunkSize
      createdAt
      updatedAt
    }
    name
    createdAt
    updatedAt
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "getLlmApplicationPlaygroundRagConfig": {
      "id": "4",
      "llmApplicationId": "4",
      "llmRagConfig": LlmRagConfig,
      "name": "abc123",
      "createdAt": "xyz789",
      "updatedAt": "xyz789"
    }
  }
}

getLlmApplicationPlaygroundRagConfigModelDetails

Breaking changes may be introduced anytime in the future without prior notice.
Arguments
Name Description
llmApplicationId - ID!

Example

Query
query GetLlmApplicationPlaygroundRagConfigModelDetails($llmApplicationId: ID!) {
  getLlmApplicationPlaygroundRagConfigModelDetails(llmApplicationId: $llmApplicationId) {
    llmModelDetails {
      modelId
      modelType
      status
      instanceType
      instanceTypeDetail {
        ...LlmInstanceTypeDetailFragment
      }
    }
    llmEmbeddingModelDetails {
      modelId
      modelType
      status
      instanceType
      instanceTypeDetail {
        ...LlmInstanceTypeDetailFragment
      }
    }
  }
}
Variables
{"llmApplicationId": 4}
Response
{
  "data": {
    "getLlmApplicationPlaygroundRagConfigModelDetails": {
      "llmModelDetails": [LlmModelDetail],
      "llmEmbeddingModelDetails": [LlmModelDetail]
    }
  }
}

getLlmApplicationPlaygroundRagConfigs

Breaking changes may be introduced anytime in the future without prior notice.
Arguments
Name Description
llmApplicationId - ID!

Example

Query
query GetLlmApplicationPlaygroundRagConfigs($llmApplicationId: ID!) {
  getLlmApplicationPlaygroundRagConfigs(llmApplicationId: $llmApplicationId) {
    id
    llmApplicationId
    llmRagConfig {
      id
      llmModel {
        ...LlmModelFragment
      }
      systemInstruction
      userInstruction
      raw
      temperature
      topP
      maxTokens
      advancedHyperparameters
      maxVectorStoreTokens
      llmVectorStore {
        ...LlmVectorStoreFragment
      }
      llmVectorStores {
        ...LlmVectorStoreFragment
      }
      similarityThreshold
      enableAnonymization
      maxChunkSize
      createdAt
      updatedAt
    }
    name
    createdAt
    updatedAt
  }
}
Variables
{"llmApplicationId": 4}
Response
{
  "data": {
    "getLlmApplicationPlaygroundRagConfigs": [
      {
        "id": 4,
        "llmApplicationId": 4,
        "llmRagConfig": LlmRagConfig,
        "name": "xyz789",
        "createdAt": "abc123",
        "updatedAt": "abc123"
      }
    ]
  }
}

getLlmApplications

Breaking changes may be introduced anytime in the future without prior notice.
Arguments
Name Description
input - GetLlmApplicationsPaginatedInput!

Example

Query
query GetLlmApplications($input: GetLlmApplicationsPaginatedInput!) {
  getLlmApplications(input: $input) {
    totalCount
    pageInfo {
      prevCursor
      nextCursor
    }
    nodes {
      id
      teamId
      createdByUser {
        ...UserFragment
      }
      name
      status
      createdAt
      updatedAt
      llmApplicationDeployment {
        ...LlmApplicationDeploymentFragment
      }
      totalRagConfigs
    }
  }
}
Variables
{"input": GetLlmApplicationsPaginatedInput}
Response
{
  "data": {
    "getLlmApplications": {
      "totalCount": 123,
      "pageInfo": PageInfo,
      "nodes": [LlmApplication]
    }
  }
}

getLlmApplicationsByTeam

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns [LlmApplication!]!

Arguments
Name Description
teamId - ID!

Example

Query
query GetLlmApplicationsByTeam($teamId: ID!) {
  getLlmApplicationsByTeam(teamId: $teamId) {
    id
    teamId
    createdByUser {
      id
      samlId
      amazonCustomerId
      username
      name
      email
      package
      profilePicture
      allowedActions
      displayName
      teamPackage
      emailVerified
      totpAuthEnabled
      companyName
      createdAt
      signUpParams {
        ...SignUpParamsFragment
      }
    }
    name
    status
    createdAt
    updatedAt
    llmApplicationDeployment {
      id
      deployedByUser {
        ...UserFragment
      }
      llmApplicationId
      llmApplication {
        ...LlmApplicationFragment
      }
      llmRagConfig {
        ...LlmRagConfigFragment
      }
      numberOfCalls
      numberOfTokens
      numberOfInputTokens
      numberOfOutputTokens
      deployedAt
      name
      status
      createdAt
      updatedAt
      apiEndpoints {
        ...LlmApplicationDeploymentApiEndpointFragment
      }
      isDeleted
    }
    totalRagConfigs
  }
}
Variables
{"teamId": "4"}
Response
{
  "data": {
    "getLlmApplicationsByTeam": [
      {
        "id": "4",
        "teamId": 4,
        "createdByUser": User,
        "name": "xyz789",
        "status": "DEPLOYED",
        "createdAt": "abc123",
        "updatedAt": "xyz789",
        "llmApplicationDeployment": LlmApplicationDeployment,
        "totalRagConfigs": 123
      }
    ]
  }
}

getLlmBaseModels

Breaking changes may be introduced anytime in the future without prior notice.
Description

Retrieves a list of all LLM base models of a team.

Response

Returns [LlmBaseModel!]!

Arguments
Name Description
teamId - ID!

Example

Query
query GetLlmBaseModels($teamId: ID!) {
  getLlmBaseModels(teamId: $teamId) {
    id
    baseModelIdentifier
    customModelIdentifier
    teamId
    name
    serviceProvider
    provider
    region
    methodTypes
    supportedDatasetTypes
    supportedHyperparameters {
      name
      actualName
      type
      minValue
      maxValue
      defaultValue
    }
    pricingModels {
      id
      llmBaseModelId
      unitPrice
      unitType
      unitPurpose
    }
    deployable
    requireSubscriptionPlan
    supportsValidationDataset
    instanceTypes {
      name
      gpuMemoryCapability
      storageSizeCapability
    }
    defaultTrainingInstanceType {
      name
      gpuMemoryCapability
      storageSizeCapability
    }
    trainingVolumeSize
  }
}
Variables
{"teamId": "4"}
Response
{
  "data": {
    "getLlmBaseModels": [
      {
        "id": 4,
        "baseModelIdentifier": "xyz789",
        "customModelIdentifier": "xyz789",
        "teamId": "4",
        "name": "xyz789",
        "serviceProvider": "AMAZON_BEDROCK",
        "provider": "AMAZON",
        "region": "xyz789",
        "methodTypes": ["FINE_TUNING"],
        "supportedDatasetTypes": ["COMPLETION"],
        "supportedHyperparameters": [
          LlmBaseModelHyperparameter
        ],
        "pricingModels": [LlmBaseModelPricingModel],
        "deployable": false,
        "requireSubscriptionPlan": false,
        "supportsValidationDataset": true,
        "instanceTypes": [FineTuningInstanceType],
        "defaultTrainingInstanceType": FineTuningInstanceType,
        "trainingVolumeSize": 987.65
      }
    ]
  }
}

getLlmEmbeddingModelDetails

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns [LlmModelDetail!]!

Arguments
Name Description
teamId - ID!
ids - [ID!]

Example

Query
query GetLlmEmbeddingModelDetails(
  $teamId: ID!,
  $ids: [ID!]
) {
  getLlmEmbeddingModelDetails(
    teamId: $teamId,
    ids: $ids
  ) {
    modelId
    modelType
    status
    instanceType
    instanceTypeDetail {
      name
      cost {
        ...LlmInstanceCostDetailFragment
      }
      createdAt
    }
  }
}
Variables
{"teamId": 4, "ids": ["4"]}
Response
{
  "data": {
    "getLlmEmbeddingModelDetails": [
      {
        "modelId": 4,
        "modelType": "LLM_MODEL",
        "status": "AVAILABLE",
        "instanceType": "abc123",
        "instanceTypeDetail": LlmInstanceTypeDetail
      }
    ]
  }
}

getLlmEmbeddingModelMetadatas

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns [LlmModelMetadata!]!

Arguments
Name Description
teamId - ID!

Example

Query
query GetLlmEmbeddingModelMetadatas($teamId: ID!) {
  getLlmEmbeddingModelMetadatas(teamId: $teamId) {
    providers
    name
    displayName
    description
    type
    status
  }
}
Variables
{"teamId": 4}
Response
{
  "data": {
    "getLlmEmbeddingModelMetadatas": [
      {
        "providers": ["AMAZON_BEDROCK"],
        "name": "xyz789",
        "displayName": "xyz789",
        "description": "xyz789",
        "type": "QUESTION_ANSWERING",
        "status": "AVAILABLE"
      }
    ]
  }
}

getLlmEmbeddingModelSpec

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns a LlmModelSpec!

Arguments
Name Description
teamId - ID!
provider - GqlLlmModelProvider!
name - String!

Example

Query
query GetLlmEmbeddingModelSpec(
  $teamId: ID!,
  $provider: GqlLlmModelProvider!,
  $name: String!
) {
  getLlmEmbeddingModelSpec(
    teamId: $teamId,
    provider: $provider,
    name: $name
  ) {
    supportedInferenceInstanceTypes
    supportedInferenceInstanceTypeDetails {
      name
      cost {
        ...LlmInstanceCostDetailFragment
      }
      createdAt
    }
  }
}
Variables
{
  "teamId": "4",
  "provider": "AMAZON_BEDROCK",
  "name": "xyz789"
}
Response
{
  "data": {
    "getLlmEmbeddingModelSpec": {
      "supportedInferenceInstanceTypes": [
        "abc123"
      ],
      "supportedInferenceInstanceTypeDetails": [
        LlmInstanceTypeDetail
      ]
    }
  }
}

getLlmEmbeddingModels

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns [LlmEmbeddingModel!]!

Arguments
Name Description
teamId - ID!
includeDefault - Boolean

Example

Query
query GetLlmEmbeddingModels(
  $teamId: ID!,
  $includeDefault: Boolean
) {
  getLlmEmbeddingModels(
    teamId: $teamId,
    includeDefault: $includeDefault
  ) {
    id
    teamId
    provider
    name
    displayName
    url
    maxTokens
    dimensions
    deployableModelId
    isModelDeployable
    createdAt
    updatedAt
    variant
    customDimension
  }
}
Variables
{"teamId": "4", "includeDefault": true}
Response
{
  "data": {
    "getLlmEmbeddingModels": [
      {
        "id": "4",
        "teamId": 4,
        "provider": "AMAZON_BEDROCK",
        "name": "xyz789",
        "displayName": "xyz789",
        "url": "xyz789",
        "maxTokens": 987,
        "dimensions": 123,
        "deployableModelId": "xyz789",
        "isModelDeployable": false,
        "createdAt": "xyz789",
        "updatedAt": "xyz789",
        "variant": "META",
        "customDimension": false
      }
    ]
  }
}

getLlmEvaluation

Breaking changes may be introduced anytime in the future without prior notice.
Description

Retrieves one LlmEvaluation based on the provided id.

Response

Returns a LlmEvaluation!

Arguments
Name Description
input - GetLlmEvaluationInput!

Example

Query
query GetLlmEvaluation($input: GetLlmEvaluationInput!) {
  getLlmEvaluation(input: $input) {
    id
    name
    teamId
    projectId
    kind
    status
    creationProgress {
      status
      jobId
      error
    }
    scheduledCommandConfig {
      id
      cronPattern
      repeatInterval
      runImmediately
      endTime
      numberOfRepetition
      isNeverEnding
      isPeriodic
      updatedAt
    }
    isScheduled
    createdAt
    updatedAt
    isDeleted
    type
    schedulingStatus
    nextSchedule
    createdByUser {
      id
      samlId
      amazonCustomerId
      username
      name
      email
      package
      profilePicture
      allowedActions
      displayName
      teamPackage
      emailVerified
      totpAuthEnabled
      companyName
      createdAt
      signUpParams {
        ...SignUpParamsFragment
      }
    }
    lastScoredByUser {
      id
      samlId
      amazonCustomerId
      username
      name
      email
      package
      profilePicture
      allowedActions
      displayName
      teamPackage
      emailVerified
      totpAuthEnabled
      companyName
      createdAt
      signUpParams {
        ...SignUpParamsFragment
      }
    }
    totalPrompts
    lastLlmEvaluationExecution {
      id
      llmEvaluationId
      status
      errorMessage
      createdAt
      updatedAt
      isDeleted
    }
  }
}
Variables
{"input": GetLlmEvaluationInput}
Response
{
  "data": {
    "getLlmEvaluation": {
      "id": "4",
      "name": "abc123",
      "teamId": 4,
      "projectId": 4,
      "kind": "DOCUMENT_BASED",
      "status": "CREATING",
      "creationProgress": LlmEvaluationCreationProgress,
      "scheduledCommandConfig": ScheduledCommandConfig,
      "isScheduled": false,
      "createdAt": "xyz789",
      "updatedAt": "abc123",
      "isDeleted": false,
      "type": "RATING",
      "schedulingStatus": "NOT_STARTED",
      "nextSchedule": "xyz789",
      "createdByUser": User,
      "lastScoredByUser": User,
      "totalPrompts": 123,
      "lastLlmEvaluationExecution": LlmEvaluationExecution
    }
  }
}

getLlmEvaluationAutomatedAvailableStrategies

Breaking changes may be introduced anytime in the future without prior notice.
Description

Returns the available automated LLM evaluation strategies.

Arguments
Name Description
teamId - ID!

Example

Query
query GetLlmEvaluationAutomatedAvailableStrategies($teamId: ID!) {
  getLlmEvaluationAutomatedAvailableStrategies(teamId: $teamId) {
    name
    displayName
    provider
    version
    description
    deprecated
    evaluatorModelTypes
    minValue
    maxValue
    invertedValue
    requiresContext
  }
}
Variables
{"teamId": "4"}
Response
{
  "data": {
    "getLlmEvaluationAutomatedAvailableStrategies": [
      {
        "name": "abc123",
        "displayName": "xyz789",
        "provider": "abc123",
        "version": "xyz789",
        "description": "xyz789",
        "deprecated": false,
        "evaluatorModelTypes": ["LLM_MODEL"],
        "minValue": 123.45,
        "maxValue": 987.65,
        "invertedValue": true,
        "requiresContext": true
      }
    ]
  }
}

getLlmEvaluationCreationProgress

Breaking changes may be introduced anytime in the future without prior notice.
Description

Retrieves the LLM evaluation creation progress.

Response

Returns a LlmEvaluationCreationProgress!

Arguments
Name Description
id - ID!

Example

Query
query GetLlmEvaluationCreationProgress($id: ID!) {
  getLlmEvaluationCreationProgress(id: $id) {
    status
    jobId
    error
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "getLlmEvaluationCreationProgress": {
      "status": "PREPARING",
      "jobId": "abc123",
      "error": "abc123"
    }
  }
}

getLlmEvaluationDetail

Breaking changes may be introduced anytime in the future without prior notice.
Description

Retrieves the LLM evaluation detail based on the provided id.

Arguments
Name Description
input - GetLlmEvaluationDetailPaginatedInput!

Example

Query
query GetLlmEvaluationDetail($input: GetLlmEvaluationDetailPaginatedInput!) {
  getLlmEvaluationDetail(input: $input) {
    totalCount
    pageInfo {
      prevCursor
      nextCursor
    }
    nodes {
      prompt
      expectedCompletion
      externalRagConfig
      completions {
        ...LlmEvaluationGeneratedAnswerFragment
      }
      scores {
        ...LlmEvaluationAnswerScoreFragment
      }
    }
  }
}
Variables
{"input": GetLlmEvaluationDetailPaginatedInput}
Response
{
  "data": {
    "getLlmEvaluationDetail": {
      "totalCount": 987,
      "pageInfo": PageInfo,
      "nodes": [LlmEvaluationDetail]
    }
  }
}

getLlmEvaluationEvaluatorsByLlmEvaluationId

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns [LlmEvaluationEvaluator!]!

Arguments
Name Description
llmEvaluationId - ID!

Example

Query
query GetLlmEvaluationEvaluatorsByLlmEvaluationId($llmEvaluationId: ID!) {
  getLlmEvaluationEvaluatorsByLlmEvaluationId(llmEvaluationId: $llmEvaluationId) {
    id
    llmEvaluationId
    evaluator
    metric
    provider
    version
    llmModelId
    llmModel {
      id
      teamId
      provider
      name
      displayName
      url
      region
      maxTemperature
      maxTopP
      maxTokens
      maxContextWindow
      defaultTemperature
      defaultTopP
      defaultMaxTokens
      minTemperature
      minTopP
      llmModelFineTuningJob {
        ...LlmModelFineTuningJobFragment
      }
      deployableModelId
      isModelDeployable
      forceAnonymization
      hasVisionCapability
      variant
      createdAt
      updatedAt
    }
    llmEmbeddingModelId
    llmEmbeddingModel {
      id
      teamId
      provider
      name
      displayName
      url
      maxTokens
      dimensions
      deployableModelId
      isModelDeployable
      createdAt
      updatedAt
      variant
      customDimension
    }
    alertExpression
    minimumScore
    maximumScore
    prompt
    customName
    createdAt
    updatedAt
    isDeleted
  }
}
Variables
{"llmEvaluationId": "4"}
Response
{
  "data": {
    "getLlmEvaluationEvaluatorsByLlmEvaluationId": [
      {
        "id": "4",
        "llmEvaluationId": "4",
        "evaluator": "xyz789",
        "metric": "abc123",
        "provider": "xyz789",
        "version": "xyz789",
        "llmModelId": "4",
        "llmModel": LlmModel,
        "llmEmbeddingModelId": "4",
        "llmEmbeddingModel": LlmEmbeddingModel,
        "alertExpression": "abc123",
        "minimumScore": 987,
        "maximumScore": 987,
        "prompt": "abc123",
        "customName": "abc123",
        "createdAt": "abc123",
        "updatedAt": "xyz789",
        "isDeleted": true
      }
    ]
  }
}

getLlmEvaluationExecutionsByLlmEvaluationId

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns [LlmEvaluationExecution!]!

Arguments
Name Description
llmEvaluationId - ID!

Example

Query
query GetLlmEvaluationExecutionsByLlmEvaluationId($llmEvaluationId: ID!) {
  getLlmEvaluationExecutionsByLlmEvaluationId(llmEvaluationId: $llmEvaluationId) {
    id
    llmEvaluationId
    status
    errorMessage
    createdAt
    updatedAt
    isDeleted
  }
}
Variables
{"llmEvaluationId": 4}
Response
{
  "data": {
    "getLlmEvaluationExecutionsByLlmEvaluationId": [
      {
        "id": "4",
        "llmEvaluationId": 4,
        "status": "PREPARING",
        "errorMessage": "xyz789",
        "createdAt": "abc123",
        "updatedAt": "xyz789",
        "isDeleted": true
      }
    ]
  }
}

getLlmEvaluationGeneratedAnswerContextsByLlmEvaluationId

Arguments
Name Description
llmEvaluationId - ID!

Example

Query
query GetLlmEvaluationGeneratedAnswerContextsByLlmEvaluationId($llmEvaluationId: ID!) {
  getLlmEvaluationGeneratedAnswerContextsByLlmEvaluationId(llmEvaluationId: $llmEvaluationId) {
    id
    llmEvaluationGeneratedAnswerId
    content
    metadata
    score
    createdAt
    updatedAt
    isDeleted
  }
}
Variables
{"llmEvaluationId": "4"}
Response
{
  "data": {
    "getLlmEvaluationGeneratedAnswerContextsByLlmEvaluationId": [
      {
        "id": "4",
        "llmEvaluationGeneratedAnswerId": 4,
        "content": "xyz789",
        "metadata": "xyz789",
        "score": 123.45,
        "createdAt": "xyz789",
        "updatedAt": "abc123",
        "isDeleted": false
      }
    ]
  }
}

getLlmEvaluationGeneratedAnswersByLlmEvaluationId

Description

Finds the LLM evaluation generated answers by evaluation id.

Arguments
Name Description
llmEvaluationId - ID!

Example

Query
query GetLlmEvaluationGeneratedAnswersByLlmEvaluationId($llmEvaluationId: ID!) {
  getLlmEvaluationGeneratedAnswersByLlmEvaluationId(llmEvaluationId: $llmEvaluationId) {
    id
    llmEvaluationPromptId
    llmRagConfig {
      id
      llmModel {
        ...LlmModelFragment
      }
      systemInstruction
      userInstruction
      raw
      temperature
      topP
      maxTokens
      advancedHyperparameters
      maxVectorStoreTokens
      llmVectorStore {
        ...LlmVectorStoreFragment
      }
      llmVectorStores {
        ...LlmVectorStoreFragment
      }
      similarityThreshold
      enableAnonymization
      maxChunkSize
      createdAt
      updatedAt
    }
    llmRagConfigId
    answer
    llmEvaluationAnswerScores {
      id
      llmEvaluationEvaluatorId
      llmEvaluationGeneratedAnswerId
      score
      reason
      alertExpression
      createdAt
      updatedAt
      isDeleted
    }
    processingTime
    cost
    createdAt
    updatedAt
    isDeleted
  }
}
Variables
{"llmEvaluationId": 4}
Response
{
  "data": {
    "getLlmEvaluationGeneratedAnswersByLlmEvaluationId": [
      {
        "id": 4,
        "llmEvaluationPromptId": "4",
        "llmRagConfig": LlmRagConfig,
        "llmRagConfigId": 4,
        "answer": "abc123",
        "llmEvaluationAnswerScores": [
          LlmEvaluationAnswerScore
        ],
        "processingTime": 123.45,
        "cost": 123.45,
        "createdAt": "xyz789",
        "updatedAt": "abc123",
        "isDeleted": true
      }
    ]
  }
}

getLlmEvaluationPromptsByLlmEvaluationId

Description

Retrieves the LLM evaluation prompts by the LLM evaluation id.

Response

Returns [LlmEvaluationPrompt!]!

Arguments
Name Description
llmEvaluationId - ID!

Example

Query
query GetLlmEvaluationPromptsByLlmEvaluationId($llmEvaluationId: ID!) {
  getLlmEvaluationPromptsByLlmEvaluationId(llmEvaluationId: $llmEvaluationId) {
    id
    llmEvaluationId
    prompt
    expectedCompletion
    externalRagConfig
    externalSources
    createdAt
    updatedAt
    isDeleted
  }
}
Variables
{"llmEvaluationId": "4"}
Response
{
  "data": {
    "getLlmEvaluationPromptsByLlmEvaluationId": [
      {
        "id": "4",
        "llmEvaluationId": 4,
        "prompt": "xyz789",
        "expectedCompletion": "xyz789",
        "externalRagConfig": "abc123",
        "externalSources": "abc123",
        "createdAt": "xyz789",
        "updatedAt": "xyz789",
        "isDeleted": true
      }
    ]
  }
}

getLlmEvaluationRagConfigsByLlmEvaluationId

Breaking changes may be introduced anytime in the future without prior notice.
Description

Retrieves the LLM evaluation RAG configs by the LLM evaluation id.

Response

Returns [LlmEvaluationRagConfig!]!

Arguments
Name Description
llmEvaluationId - ID!

Example

Query
query GetLlmEvaluationRagConfigsByLlmEvaluationId($llmEvaluationId: ID!) {
  getLlmEvaluationRagConfigsByLlmEvaluationId(llmEvaluationId: $llmEvaluationId) {
    id
    llmEvaluationId
    llmApplication {
      id
      teamId
      createdByUser {
        ...UserFragment
      }
      name
      status
      createdAt
      updatedAt
      llmApplicationDeployment {
        ...LlmApplicationDeploymentFragment
      }
      totalRagConfigs
    }
    llmPlaygroundRagConfig {
      id
      llmApplicationId
      llmRagConfig {
        ...LlmRagConfigFragment
      }
      name
      createdAt
      updatedAt
    }
    llmDeploymentRagConfig {
      id
      deployedByUser {
        ...UserFragment
      }
      llmApplicationId
      llmApplication {
        ...LlmApplicationFragment
      }
      llmRagConfig {
        ...LlmRagConfigFragment
      }
      numberOfCalls
      numberOfTokens
      numberOfInputTokens
      numberOfOutputTokens
      deployedAt
      name
      status
      createdAt
      updatedAt
      apiEndpoints {
        ...LlmApplicationDeploymentApiEndpointFragment
      }
      isDeleted
    }
    llmRagConfigId
    llmSnapshotRagConfig {
      id
      llmModel {
        ...LlmModelFragment
      }
      systemInstruction
      userInstruction
      raw
      temperature
      topP
      maxTokens
      advancedHyperparameters
      maxVectorStoreTokens
      llmVectorStore {
        ...LlmVectorStoreFragment
      }
      llmVectorStores {
        ...LlmVectorStoreFragment
      }
      similarityThreshold
      enableAnonymization
      maxChunkSize
      createdAt
      updatedAt
    }
    llmApplicationConfigurationRagConfig {
      id
      name
      teamId
      createdByUserId
      updatedByUserId
      updatedByUser {
        ...UserFragment
      }
      llmRagConfigId
      llmRagConfig {
        ...LlmRagConfigFragment
      }
      createdAt
      updatedAt
      isDeleted
    }
    llmEvaluationExecutionId
    ragConfigSourceType
    createdAt
    updatedAt
    isDeleted
    applicationName
  }
}
Variables
{"llmEvaluationId": "4"}
Response
{
  "data": {
    "getLlmEvaluationRagConfigsByLlmEvaluationId": [
      {
        "id": 4,
        "llmEvaluationId": "4",
        "llmApplication": LlmApplication,
        "llmPlaygroundRagConfig": LlmApplicationPlaygroundRagConfig,
        "llmDeploymentRagConfig": LlmApplicationDeployment,
        "llmRagConfigId": "4",
        "llmSnapshotRagConfig": LlmRagConfig,
        "llmApplicationConfigurationRagConfig": LlmApplicationConfiguration,
        "llmEvaluationExecutionId": "4",
        "ragConfigSourceType": "APPLICATION_DEPLOYMENT",
        "createdAt": "abc123",
        "updatedAt": "abc123",
        "isDeleted": true,
        "applicationName": "abc123"
      }
    ]
  }
}

getLlmEvaluationRagConfigsByLlmEvaluationIds

Breaking changes may be introduced anytime in the future without prior notice.
Description

Retrieves the LLM evaluation RAG configs by the LLM evaluation ids.

Response

Returns [LlmEvaluationRagConfig!]!

Arguments
Name Description
llmEvaluationIds - [ID!]!
withDeleted - Boolean

Example

Query
query GetLlmEvaluationRagConfigsByLlmEvaluationIds(
  $llmEvaluationIds: [ID!]!,
  $withDeleted: Boolean
) {
  getLlmEvaluationRagConfigsByLlmEvaluationIds(
    llmEvaluationIds: $llmEvaluationIds,
    withDeleted: $withDeleted
  ) {
    id
    llmEvaluationId
    llmApplication {
      id
      teamId
      createdByUser {
        ...UserFragment
      }
      name
      status
      createdAt
      updatedAt
      llmApplicationDeployment {
        ...LlmApplicationDeploymentFragment
      }
      totalRagConfigs
    }
    llmPlaygroundRagConfig {
      id
      llmApplicationId
      llmRagConfig {
        ...LlmRagConfigFragment
      }
      name
      createdAt
      updatedAt
    }
    llmDeploymentRagConfig {
      id
      deployedByUser {
        ...UserFragment
      }
      llmApplicationId
      llmApplication {
        ...LlmApplicationFragment
      }
      llmRagConfig {
        ...LlmRagConfigFragment
      }
      numberOfCalls
      numberOfTokens
      numberOfInputTokens
      numberOfOutputTokens
      deployedAt
      name
      status
      createdAt
      updatedAt
      apiEndpoints {
        ...LlmApplicationDeploymentApiEndpointFragment
      }
      isDeleted
    }
    llmRagConfigId
    llmSnapshotRagConfig {
      id
      llmModel {
        ...LlmModelFragment
      }
      systemInstruction
      userInstruction
      raw
      temperature
      topP
      maxTokens
      advancedHyperparameters
      maxVectorStoreTokens
      llmVectorStore {
        ...LlmVectorStoreFragment
      }
      llmVectorStores {
        ...LlmVectorStoreFragment
      }
      similarityThreshold
      enableAnonymization
      maxChunkSize
      createdAt
      updatedAt
    }
    llmApplicationConfigurationRagConfig {
      id
      name
      teamId
      createdByUserId
      updatedByUserId
      updatedByUser {
        ...UserFragment
      }
      llmRagConfigId
      llmRagConfig {
        ...LlmRagConfigFragment
      }
      createdAt
      updatedAt
      isDeleted
    }
    llmEvaluationExecutionId
    ragConfigSourceType
    createdAt
    updatedAt
    isDeleted
    applicationName
  }
}
Variables
{
  "llmEvaluationIds": ["4"],
  "withDeleted": true
}
Response
{
  "data": {
    "getLlmEvaluationRagConfigsByLlmEvaluationIds": [
      {
        "id": 4,
        "llmEvaluationId": "4",
        "llmApplication": LlmApplication,
        "llmPlaygroundRagConfig": LlmApplicationPlaygroundRagConfig,
        "llmDeploymentRagConfig": LlmApplicationDeployment,
        "llmRagConfigId": 4,
        "llmSnapshotRagConfig": LlmRagConfig,
        "llmApplicationConfigurationRagConfig": LlmApplicationConfiguration,
        "llmEvaluationExecutionId": "4",
        "ragConfigSourceType": "APPLICATION_DEPLOYMENT",
        "createdAt": "xyz789",
        "updatedAt": "abc123",
        "isDeleted": false,
        "applicationName": "abc123"
      }
    ]
  }
}

getLlmEvaluationReport

Response

Returns a Job!

Arguments
Name Description
projectId - String!

Example

Query
query GetLlmEvaluationReport($projectId: String!) {
  getLlmEvaluationReport(projectId: $projectId) {
    id
    status
    progress
    errors {
      id
      stack
      args
      message
    }
    resultId
    result
    createdAt
    updatedAt
    retryCount
    maxRetry
    additionalData {
      actionRunId
      childrenJobIds
      documentIds
      reversedLabels {
        ...UpdateReversedLabelsResultFragment
      }
      labelingAgentsJobId
      labelingAgentsResults
    }
  }
}
Variables
{"projectId": "abc123"}
Response
{
  "data": {
    "getLlmEvaluationReport": {
      "id": "abc123",
      "status": "DELIVERED",
      "progress": 123,
      "errors": [JobError],
      "resultId": "abc123",
      "result": JobResult,
      "createdAt": "xyz789",
      "updatedAt": "abc123",
      "retryCount": 987,
      "maxRetry": 123,
      "additionalData": JobAdditionalData
    }
  }
}

getLlmEvaluationSummary

Breaking changes may be introduced anytime in the future without prior notice.
Description

Retrieves the LLM evaluation summary based on the provided id.

Response

Returns a LlmEvaluationSummary!

Arguments
Name Description
id - ID!
llmEvaluationExecutionId - ID

Example

Query
query GetLlmEvaluationSummary(
  $id: ID!,
  $llmEvaluationExecutionId: ID
) {
  getLlmEvaluationSummary(
    id: $id,
    llmEvaluationExecutionId: $llmEvaluationExecutionId
  ) {
    llmEvaluationId
    llmEvaluation {
      id
      name
      teamId
      projectId
      kind
      status
      creationProgress {
        ...LlmEvaluationCreationProgressFragment
      }
      scheduledCommandConfig {
        ...ScheduledCommandConfigFragment
      }
      isScheduled
      createdAt
      updatedAt
      isDeleted
      type
      schedulingStatus
      nextSchedule
      createdByUser {
        ...UserFragment
      }
      lastScoredByUser {
        ...UserFragment
      }
      totalPrompts
      lastLlmEvaluationExecution {
        ...LlmEvaluationExecutionFragment
      }
    }
    totalPromptCount
    totalUnansweredPromptCount
    totalFailedThresholdCompletionsCount
    summaries {
      llmEvaluationRagConfigId
      cost
      processingTime
      scores {
        ...LlmEvaluationEvaluatorSummaryFragment
      }
    }
  }
}
Variables
{
  "id": "4",
  "llmEvaluationExecutionId": "4"
}
Response
{
  "data": {
    "getLlmEvaluationSummary": {
      "llmEvaluationId": "4",
      "llmEvaluation": LlmEvaluation,
      "totalPromptCount": 987,
      "totalUnansweredPromptCount": 123,
      "totalFailedThresholdCompletionsCount": 123,
      "summaries": [LlmEvaluationRagConfigSummary]
    }
  }
}

getLlmEvaluations

Breaking changes may be introduced anytime in the future without prior notice.
Description

Retrieves an array of LlmMEvaluation based on the provided filters.

Response

Returns a LlmEvaluationPaginatedResponse!

Arguments
Name Description
input - GetLlmEvaluationsPaginatedInput!

Example

Query
query GetLlmEvaluations($input: GetLlmEvaluationsPaginatedInput!) {
  getLlmEvaluations(input: $input) {
    totalCount
    pageInfo {
      prevCursor
      nextCursor
    }
    nodes {
      id
      name
      teamId
      projectId
      kind
      status
      creationProgress {
        ...LlmEvaluationCreationProgressFragment
      }
      scheduledCommandConfig {
        ...ScheduledCommandConfigFragment
      }
      isScheduled
      createdAt
      updatedAt
      isDeleted
      type
      schedulingStatus
      nextSchedule
      createdByUser {
        ...UserFragment
      }
      lastScoredByUser {
        ...UserFragment
      }
      totalPrompts
      lastLlmEvaluationExecution {
        ...LlmEvaluationExecutionFragment
      }
    }
  }
}
Variables
{"input": GetLlmEvaluationsPaginatedInput}
Response
{
  "data": {
    "getLlmEvaluations": {
      "totalCount": 123,
      "pageInfo": PageInfo,
      "nodes": [LlmEvaluation]
    }
  }
}

getLlmGeneratedInstruction

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns a String!

Arguments
Name Description
input - GetLlmGeneratedInstructionInput!

Example

Query
query GetLlmGeneratedInstruction($input: GetLlmGeneratedInstructionInput!) {
  getLlmGeneratedInstruction(input: $input)
}
Variables
{"input": GetLlmGeneratedInstructionInput}
Response
{
  "data": {
    "getLlmGeneratedInstruction": "abc123"
  }
}

getLlmManualEvaluationSummary

Breaking changes may be introduced anytime in the future without prior notice.
Description

Retrieves the LLM manual evaluation summary based on the provided id.

Response

Returns a LlmManualEvaluationSummary!

Arguments
Name Description
id - ID!

Example

Query
query GetLlmManualEvaluationSummary($id: ID!) {
  getLlmManualEvaluationSummary(id: $id) {
    llmEvaluationId
    totalPromptCount
    totalScoredPromptCount
    averageScore
    applicationSummaries {
      llmEvaluationRagConfigId
      totalCost
      averageProcessingTime
    }
  }
}
Variables
{"id": 4}
Response
{
  "data": {
    "getLlmManualEvaluationSummary": {
      "llmEvaluationId": "4",
      "totalPromptCount": 123,
      "totalScoredPromptCount": 987,
      "averageScore": 987.65,
      "applicationSummaries": [
        LlmManualEvaluationApplicationSummary
      ]
    }
  }
}

getLlmModelDetails

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns [LlmModelDetail!]!

Arguments
Name Description
teamId - ID!
ids - [ID!]

Example

Query
query GetLlmModelDetails(
  $teamId: ID!,
  $ids: [ID!]
) {
  getLlmModelDetails(
    teamId: $teamId,
    ids: $ids
  ) {
    modelId
    modelType
    status
    instanceType
    instanceTypeDetail {
      name
      cost {
        ...LlmInstanceCostDetailFragment
      }
      createdAt
    }
  }
}
Variables
{"teamId": "4", "ids": [4]}
Response
{
  "data": {
    "getLlmModelDetails": [
      {
        "modelId": 4,
        "modelType": "LLM_MODEL",
        "status": "AVAILABLE",
        "instanceType": "abc123",
        "instanceTypeDetail": LlmInstanceTypeDetail
      }
    ]
  }
}

getLlmModelFineTuningCostPredictionAsync

Breaking changes may be introduced anytime in the future without prior notice.
Description

Get Predicted cost for fine-tuning

Arguments
Name Description
input - LlmModelFineTuningCostPredictionInput!

Example

Query
query GetLlmModelFineTuningCostPredictionAsync($input: LlmModelFineTuningCostPredictionInput!) {
  getLlmModelFineTuningCostPredictionAsync(input: $input) {
    job {
      id
      status
      progress
      errors {
        ...JobErrorFragment
      }
      resultId
      result
      createdAt
      updatedAt
      retryCount
      maxRetry
      additionalData {
        ...JobAdditionalDataFragment
      }
    }
    name
  }
}
Variables
{"input": LlmModelFineTuningCostPredictionInput}
Response
{
  "data": {
    "getLlmModelFineTuningCostPredictionAsync": {
      "job": Job,
      "name": "xyz789"
    }
  }
}

getLlmModelMetadatas

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns [LlmModelMetadata!]!

Arguments
Name Description
teamId - ID!

Example

Query
query GetLlmModelMetadatas($teamId: ID!) {
  getLlmModelMetadatas(teamId: $teamId) {
    providers
    name
    displayName
    description
    type
    status
  }
}
Variables
{"teamId": 4}
Response
{
  "data": {
    "getLlmModelMetadatas": [
      {
        "providers": ["AMAZON_BEDROCK"],
        "name": "abc123",
        "displayName": "xyz789",
        "description": "abc123",
        "type": "QUESTION_ANSWERING",
        "status": "AVAILABLE"
      }
    ]
  }
}

getLlmModelSpec

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns a LlmModelSpec!

Arguments
Name Description
teamId - ID!
provider - GqlLlmModelProvider!
name - String!

Example

Query
query GetLlmModelSpec(
  $teamId: ID!,
  $provider: GqlLlmModelProvider!,
  $name: String!
) {
  getLlmModelSpec(
    teamId: $teamId,
    provider: $provider,
    name: $name
  ) {
    supportedInferenceInstanceTypes
    supportedInferenceInstanceTypeDetails {
      name
      cost {
        ...LlmInstanceCostDetailFragment
      }
      createdAt
    }
  }
}
Variables
{
  "teamId": "4",
  "provider": "AMAZON_BEDROCK",
  "name": "abc123"
}
Response
{
  "data": {
    "getLlmModelSpec": {
      "supportedInferenceInstanceTypes": [
        "abc123"
      ],
      "supportedInferenceInstanceTypeDetails": [
        LlmInstanceTypeDetail
      ]
    }
  }
}

getLlmModels

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns [LlmModel!]!

Arguments
Name Description
teamId - ID!

Example

Query
query GetLlmModels($teamId: ID!) {
  getLlmModels(teamId: $teamId) {
    id
    teamId
    provider
    name
    displayName
    url
    region
    maxTemperature
    maxTopP
    maxTokens
    maxContextWindow
    defaultTemperature
    defaultTopP
    defaultMaxTokens
    minTemperature
    minTopP
    llmModelFineTuningJob {
      id
      name
      teamId
      status
      errorMessage
      baseModelId
      parentId
      resultModelId
      trainingJobId
      trainingDataset {
        ...GroundTruthSetFragment
      }
      trainingDatasetFilename
      validationSize
      validationDataset {
        ...GroundTruthSetFragment
      }
      validationDatasetFilename
      epochs
      learningRate
      batchSize
      earlyStoppingThreshold
      earlyStoppingPatience
      learningRateWarmUpStep
      learningRateMultiplier
      instanceType
      trainingVolumeSize
      trainingBucketName
      optionalHyperparameters
      createdByUser {
        ...UserFragment
      }
      createdAt
      updatedAt
    }
    deployableModelId
    isModelDeployable
    forceAnonymization
    hasVisionCapability
    variant
    createdAt
    updatedAt
  }
}
Variables
{"teamId": 4}
Response
{
  "data": {
    "getLlmModels": [
      {
        "id": "4",
        "teamId": 4,
        "provider": "AMAZON_BEDROCK",
        "name": "xyz789",
        "displayName": "abc123",
        "url": "abc123",
        "region": ["abc123"],
        "maxTemperature": 123.45,
        "maxTopP": 123.45,
        "maxTokens": 123,
        "maxContextWindow": 123,
        "defaultTemperature": 987.65,
        "defaultTopP": 123.45,
        "defaultMaxTokens": 987,
        "minTemperature": 987.65,
        "minTopP": 123.45,
        "llmModelFineTuningJob": LlmModelFineTuningJob,
        "deployableModelId": "abc123",
        "isModelDeployable": false,
        "forceAnonymization": true,
        "hasVisionCapability": true,
        "variant": "META",
        "createdAt": "abc123",
        "updatedAt": "abc123"
      }
    ]
  }
}

getLlmUsageDetail

Response

Returns a LlmUsageDetail!

Arguments
Name Description
id - ID!

Example

Query
query GetLlmUsageDetail($id: ID!) {
  getLlmUsageDetail(id: $id) {
    documents {
      id
      name
      cost
      costCurrency
      usage
    }
    sourceDocuments {
      source {
        ...LlmUsageExternalSourceFragment
      }
      documents
    }
  }
}
Variables
{"id": 4}
Response
{
  "data": {
    "getLlmUsageDetail": {
      "documents": [LlmUsageDocument],
      "sourceDocuments": [LlmUsageSourceDocument]
    }
  }
}

getLlmUsageSummary

Response

Returns a LlmUsageSummary!

Arguments
Name Description
teamId - ID!
calendarDate - String!

Example

Query
query GetLlmUsageSummary(
  $teamId: ID!,
  $calendarDate: String!
) {
  getLlmUsageSummary(
    teamId: $teamId,
    calendarDate: $calendarDate
  ) {
    totalCost
    totalCostCurrency
    modelSummaries {
      modelName
      modelProvider
      totalUsage
    }
  }
}
Variables
{"teamId": 4, "calendarDate": "xyz789"}
Response
{
  "data": {
    "getLlmUsageSummary": {
      "totalCost": 987.65,
      "totalCostCurrency": "xyz789",
      "modelSummaries": [LlmUsageModelSummary]
    }
  }
}

getLlmUsages

Response

Returns a LlmUsagePaginatedResponse!

Arguments
Name Description
input - GetLlmUsagesPaginatedInput!

Example

Query
query GetLlmUsages($input: GetLlmUsagesPaginatedInput!) {
  getLlmUsages(input: $input) {
    totalCount
    pageInfo {
      prevCursor
      nextCursor
    }
    nodes {
      id
      teamId
      name
      type
      modelDetail {
        ...LlmUsageModelDetailFragment
      }
      metadata {
        ...LlmUsageMetadataFragment
      }
      cost
      costCurrency
      usage
      createdAt
      updatedAt
    }
  }
}
Variables
{"input": GetLlmUsagesPaginatedInput}
Response
{
  "data": {
    "getLlmUsages": {
      "totalCount": 123,
      "pageInfo": PageInfo,
      "nodes": [LlmUsage]
    }
  }
}

getLlmVectorStore

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns a LlmVectorStore

Arguments
Name Description
input - GetLlmVectorStoreInput!

Example

Query
query GetLlmVectorStore($input: GetLlmVectorStoreInput!) {
  getLlmVectorStore(input: $input) {
    id
    teamId
    createdByUser {
      id
      samlId
      amazonCustomerId
      username
      name
      email
      package
      profilePicture
      allowedActions
      displayName
      teamPackage
      emailVerified
      totpAuthEnabled
      companyName
      createdAt
      signUpParams {
        ...SignUpParamsFragment
      }
    }
    llmEmbeddingModel {
      id
      teamId
      provider
      name
      displayName
      url
      maxTokens
      dimensions
      deployableModelId
      isModelDeployable
      createdAt
      updatedAt
      variant
      customDimension
    }
    provider
    collectionId
    name
    status
    documents
    documentStatusCount {
      totalQueued
      totalProcessing
      totalDeleting
      totalCompleted
      totalProcessFailed
      totalDeleteFailed
      totalDocumentInvalid
      totalDocuments
    }
    sourceDocuments {
      source {
        ...LlmVectorStoreSourceFragment
      }
      documents
    }
    questions {
      id
      internalId
      type
      name
      label
      required
      config {
        ...QuestionConfigFragment
      }
      bindToColumn
      activationConditionLogic
      targetEntity
    }
    jobId
    chunkConfiguration
    filePropertiesExtractorConfiguration {
      type
      configuration
      syncedFilePropertiesJsonSchema
    }
    createdAt
    updatedAt
    dimension
  }
}
Variables
{"input": GetLlmVectorStoreInput}
Response
{
  "data": {
    "getLlmVectorStore": {
      "id": 4,
      "teamId": "4",
      "createdByUser": User,
      "llmEmbeddingModel": LlmEmbeddingModel,
      "provider": "DATASAUR",
      "collectionId": "abc123",
      "name": "abc123",
      "status": "CREATED",
      "documents": [LlmVectorStoreDocumentScalar],
      "documentStatusCount": LlmVectorStoreDocumentCountByStatus,
      "sourceDocuments": [LlmVectorStoreSourceDocument],
      "questions": [Question],
      "jobId": "abc123",
      "chunkConfiguration": ChunkConfiguration,
      "filePropertiesExtractorConfiguration": LlmVectorStoreFilePropertiesExtractorConfiguration,
      "createdAt": "xyz789",
      "updatedAt": "xyz789",
      "dimension": 123
    }
  }
}

getLlmVectorStoreActivities

Breaking changes may be introduced anytime in the future without prior notice.
Arguments
Name Description
input - GetLlmVectorStoreActivityInput

Example

Query
query GetLlmVectorStoreActivities($input: GetLlmVectorStoreActivityInput) {
  getLlmVectorStoreActivities(input: $input) {
    totalCount
    pageInfo {
      prevCursor
      nextCursor
    }
    nodes {
      id
      llmVectorStoreId
      llmVectorStoreName
      llmVectorStoreDocumentId
      llmVectorStoreDocumentName
      userId
      userName
      event
      details
      bucketName
      bucketSource
      updateLlmVectorStoreDocumentInput {
        ...UpdateLlmVectorStoreDocumentFragment
      }
      createdAt
      updatedAt
    }
  }
}
Variables
{"input": GetLlmVectorStoreActivityInput}
Response
{
  "data": {
    "getLlmVectorStoreActivities": {
      "totalCount": 123,
      "pageInfo": PageInfo,
      "nodes": [LlmVectorStoreActivity]
    }
  }
}

getLlmVectorStoreAnswers

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns a LlmVectorStoreAnswer!

Arguments
Name Description
llmVectorStoreDocumentId - ID!

Example

Query
query GetLlmVectorStoreAnswers($llmVectorStoreDocumentId: ID!) {
  getLlmVectorStoreAnswers(llmVectorStoreDocumentId: $llmVectorStoreDocumentId) {
    llmVectorStoreDocumentId
    answers
    updatedAt
  }
}
Variables
{"llmVectorStoreDocumentId": "4"}
Response
{
  "data": {
    "getLlmVectorStoreAnswers": {
      "llmVectorStoreDocumentId": 4,
      "answers": AnswerScalar,
      "updatedAt": "2007-12-03T10:15:30Z"
    }
  }
}

getLlmVectorStoreDocument

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns a LlmVectorStoreDocument

Arguments
Name Description
id - ID!
fileId - ID!

Example

Query
query GetLlmVectorStoreDocument(
  $id: ID!,
  $fileId: ID!
) {
  getLlmVectorStoreDocument(
    id: $id,
    fileId: $fileId
  ) {
    id
    name
    objectKey
    path
    previewPath
    previewFileName
    type
    status
    errorMessage
    llmVectorStoreSource {
      id
      llmVectorStoreId
      externalObjectStorage {
        ...ExternalObjectStorageFragment
      }
      rules {
        ...LlmVectorStoreSourceRulesFragment
      }
      scheduledCommandConfig {
        ...ScheduledCommandConfigFragment
      }
      nextSchedule
      lastSyncedAt
      isDeleting
      createdAt
      updatedAt
    }
    llmVectorStoreSourceId
    chunkConfiguration
    transcriptionPath
    processingPriority
    version
    createdAt
    updatedAt
  }
}
Variables
{"id": 4, "fileId": 4}
Response
{
  "data": {
    "getLlmVectorStoreDocument": {
      "id": 4,
      "name": "abc123",
      "objectKey": "abc123",
      "path": "abc123",
      "previewPath": "xyz789",
      "previewFileName": "abc123",
      "type": "FOLDER",
      "status": "QUEUED",
      "errorMessage": "abc123",
      "llmVectorStoreSource": LlmVectorStoreSource,
      "llmVectorStoreSourceId": "4",
      "chunkConfiguration": ChunkConfiguration,
      "transcriptionPath": "xyz789",
      "processingPriority": 987,
      "version": "xyz789",
      "createdAt": "abc123",
      "updatedAt": "abc123"
    }
  }
}

getLlmVectorStoreDocumentsIncludingDeleted

Breaking changes may be introduced anytime in the future without prior notice.
Arguments
Name Description
id - ID!

Example

Query
query GetLlmVectorStoreDocumentsIncludingDeleted($id: ID!) {
  getLlmVectorStoreDocumentsIncludingDeleted(id: $id) {
    documents
    sourceDocuments {
      source {
        ...LlmVectorStoreSourceFragment
      }
      documents
    }
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "getLlmVectorStoreDocumentsIncludingDeleted": {
      "documents": [LlmVectorStoreDocumentScalar],
      "sourceDocuments": [LlmVectorStoreSourceDocument]
    }
  }
}

getLlmVectorStoreDocumentsPaginated

Breaking changes may be introduced anytime in the future without prior notice.
Arguments
Name Description
llmVectorStoreId - ID!
input - GetLlmVectorStoreDocumentsPaginatedInput!
disableFetchCount - Boolean Disables fetching the total count of documents for pagination. This can improve performance for large datasets, since count fetching run the heavy query twice.

Example

Query
query GetLlmVectorStoreDocumentsPaginated(
  $llmVectorStoreId: ID!,
  $input: GetLlmVectorStoreDocumentsPaginatedInput!,
  $disableFetchCount: Boolean
) {
  getLlmVectorStoreDocumentsPaginated(
    llmVectorStoreId: $llmVectorStoreId,
    input: $input,
    disableFetchCount: $disableFetchCount
  ) {
    totalCount
    pageInfo {
      prevCursor
      nextCursor
    }
    nodes {
      id
      name
      objectKey
      path
      previewPath
      previewFileName
      type
      status
      errorMessage
      llmVectorStoreSourceId
      chunkConfiguration
      previewObjectKey
      transcriptionPath
      processingPriority
      createdAt
      updatedAt
    }
  }
}
Variables
{
  "llmVectorStoreId": 4,
  "input": GetLlmVectorStoreDocumentsPaginatedInput,
  "disableFetchCount": false
}
Response
{
  "data": {
    "getLlmVectorStoreDocumentsPaginated": {
      "totalCount": 987,
      "pageInfo": PageInfo,
      "nodes": [LlmVectorStoreDocumentPaginationItem]
    }
  }
}

getLlmVectorStoreLocalDocumentNames

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns [String!]!

Arguments
Name Description
id - ID!

Example

Query
query GetLlmVectorStoreLocalDocumentNames($id: ID!) {
  getLlmVectorStoreLocalDocumentNames(id: $id)
}
Variables
{"id": "4"}
Response
{
  "data": {
    "getLlmVectorStoreLocalDocumentNames": [
      "abc123"
    ]
  }
}

getLlmVectorStoreSourceDeletedDocuments

Breaking changes may be introduced anytime in the future without prior notice.
Arguments
Name Description
id - ID!

Example

Query
query GetLlmVectorStoreSourceDeletedDocuments($id: ID!) {
  getLlmVectorStoreSourceDeletedDocuments(id: $id)
}
Variables
{"id": "4"}
Response
{
  "data": {
    "getLlmVectorStoreSourceDeletedDocuments": LlmVectorStoreSourceDocumentScalar
  }
}

getLlmVectorStoreSourceDocumentPreviewPath

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns a String!

Arguments
Name Description
input - GetLlmVectorStoreSourceDocumentPreviewPathInput!

Example

Query
query GetLlmVectorStoreSourceDocumentPreviewPath($input: GetLlmVectorStoreSourceDocumentPreviewPathInput!) {
  getLlmVectorStoreSourceDocumentPreviewPath(input: $input)
}
Variables
{"input": GetLlmVectorStoreSourceDocumentPreviewPathInput}
Response
{
  "data": {
    "getLlmVectorStoreSourceDocumentPreviewPath": "xyz789"
  }
}

getLlmVectorStoreSourceNewDocuments

Breaking changes may be introduced anytime in the future without prior notice.
Arguments
Name Description
teamId - ID!
provider - String!
input - LlmVectorStoreSourceCreateInput!

Example

Query
query GetLlmVectorStoreSourceNewDocuments(
  $teamId: ID!,
  $provider: String!,
  $input: LlmVectorStoreSourceCreateInput!
) {
  getLlmVectorStoreSourceNewDocuments(
    teamId: $teamId,
    provider: $provider,
    input: $input
  )
}
Variables
{
  "teamId": "4",
  "provider": "xyz789",
  "input": LlmVectorStoreSourceCreateInput
}
Response
{
  "data": {
    "getLlmVectorStoreSourceNewDocuments": LlmVectorStoreSourceDocumentScalar
  }
}

getLlmVectorStoreSourceUpdatedDocuments

Breaking changes may be introduced anytime in the future without prior notice.
Arguments
Name Description
input - LlmVectorStoreSourceUpdateInput!

Example

Query
query GetLlmVectorStoreSourceUpdatedDocuments($input: LlmVectorStoreSourceUpdateInput!) {
  getLlmVectorStoreSourceUpdatedDocuments(input: $input)
}
Variables
{"input": LlmVectorStoreSourceUpdateInput}
Response
{
  "data": {
    "getLlmVectorStoreSourceUpdatedDocuments": LlmVectorStoreSourceDocumentScalar
  }
}

getLlmVectorStoreSources

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns [LlmVectorStoreSource!]!

Arguments
Name Description
llmVectorStoreId - ID!

Example

Query
query GetLlmVectorStoreSources($llmVectorStoreId: ID!) {
  getLlmVectorStoreSources(llmVectorStoreId: $llmVectorStoreId) {
    id
    llmVectorStoreId
    externalObjectStorage {
      id
      cloudService
      bucketId
      bucketName
      credentials {
        ...ExternalObjectStorageCredentialsFragment
      }
      securityToken
      team {
        ...TeamFragment
      }
      projects {
        ...ProjectFragment
      }
      createdAt
      updatedAt
    }
    rules {
      includeRule {
        ...LlmVectorStoreSourceRuleFragment
      }
      excludeRule {
        ...LlmVectorStoreSourceRuleFragment
      }
    }
    scheduledCommandConfig {
      id
      cronPattern
      repeatInterval
      runImmediately
      endTime
      numberOfRepetition
      isNeverEnding
      isPeriodic
      updatedAt
    }
    nextSchedule
    lastSyncedAt
    isDeleting
    createdAt
    updatedAt
  }
}
Variables
{"llmVectorStoreId": "4"}
Response
{
  "data": {
    "getLlmVectorStoreSources": [
      {
        "id": "4",
        "llmVectorStoreId": 4,
        "externalObjectStorage": ExternalObjectStorage,
        "rules": LlmVectorStoreSourceRules,
        "scheduledCommandConfig": ScheduledCommandConfig,
        "nextSchedule": "xyz789",
        "lastSyncedAt": "abc123",
        "isDeleting": false,
        "createdAt": "abc123",
        "updatedAt": "abc123"
      }
    ]
  }
}

getLlmVectorStores

Breaking changes may be introduced anytime in the future without prior notice.
Arguments
Name Description
input - GetLlmVectorStoresPaginatedInput!

Example

Query
query GetLlmVectorStores($input: GetLlmVectorStoresPaginatedInput!) {
  getLlmVectorStores(input: $input) {
    totalCount
    pageInfo {
      prevCursor
      nextCursor
    }
    nodes {
      id
      teamId
      createdByUser {
        ...UserFragment
      }
      llmEmbeddingModel {
        ...LlmEmbeddingModelFragment
      }
      provider
      collectionId
      name
      status
      documents
      documentStatusCount {
        ...LlmVectorStoreDocumentCountByStatusFragment
      }
      sourceDocuments {
        ...LlmVectorStoreSourceDocumentFragment
      }
      questions {
        ...QuestionFragment
      }
      jobId
      chunkConfiguration
      filePropertiesExtractorConfiguration {
        ...LlmVectorStoreFilePropertiesExtractorConfigurationFragment
      }
      createdAt
      updatedAt
      dimension
    }
  }
}
Variables
{"input": GetLlmVectorStoresPaginatedInput}
Response
{
  "data": {
    "getLlmVectorStores": {
      "totalCount": 987,
      "pageInfo": PageInfo,
      "nodes": [LlmVectorStore]
    }
  }
}

getMarkedUnusedLabelClassIds

Description

Get all label class ids which are marked as N/A.

Arguments
Name Description
documentId - ID!
labelSetIds - [ID!]!

Example

Query
query GetMarkedUnusedLabelClassIds(
  $documentId: ID!,
  $labelSetIds: [ID!]!
) {
  getMarkedUnusedLabelClassIds(
    documentId: $documentId,
    labelSetIds: $labelSetIds
  ) {
    documentId
    labelSetId
    labelClassIds
  }
}
Variables
{
  "documentId": "4",
  "labelSetIds": ["4"]
}
Response
{
  "data": {
    "getMarkedUnusedLabelClassIds": [
      {
        "documentId": "4",
        "labelSetId": 4,
        "labelClassIds": ["xyz789"]
      }
    ]
  }
}

getMarkedUnusedLabelClasses

Description

Get all label classes which are marked as N/A in a project.

Arguments
Name Description
projectId - ID!

Example

Query
query GetMarkedUnusedLabelClasses($projectId: ID!) {
  getMarkedUnusedLabelClasses(projectId: $projectId)
}
Variables
{"projectId": "4"}
Response
{
  "data": {
    "getMarkedUnusedLabelClasses": [
      ProjectUnusedLabelClassScalar
    ]
  }
}

getMonthlySubscriptionPrice

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns a Float!

Example

Query
query GetMonthlySubscriptionPrice {
  getMonthlySubscriptionPrice
}
Response
{"data": {"getMonthlySubscriptionPrice": 987.65}}

getOCRContentPositionMaps

Response

Returns an OCRContentPositionMapsResult!

Arguments
Name Description
documentId - ID!

Example

Query
query GetOCRContentPositionMaps($documentId: ID!) {
  getOCRContentPositionMaps(documentId: $documentId) {
    documentId
    maps {
      mediaToTranscript
      transcriptToMedia
    }
  }
}
Variables
{"documentId": 4}
Response
{
  "data": {
    "getOCRContentPositionMaps": {
      "documentId": "4",
      "maps": OCRContentPositionMaps
    }
  }
}

getOverallProjectPerformance

Description

Get projects count based on its status. (Optional) Filter by tag names (supports multiple selections with OR logic).

Response

Returns an OverallProjectPerformance!

Arguments
Name Description
teamId - ID!
tagNames - [String!]

Example

Query
query GetOverallProjectPerformance(
  $teamId: ID!,
  $tagNames: [String!]
) {
  getOverallProjectPerformance(
    teamId: $teamId,
    tagNames: $tagNames
  ) {
    total
    completed
    inReview
    reviewReady
    inProgress
    created
  }
}
Variables
{"teamId": 4, "tagNames": ["abc123"]}
Response
{
  "data": {
    "getOverallProjectPerformance": {
      "total": 123,
      "completed": 123,
      "inReview": 987,
      "reviewReady": 123,
      "inProgress": 123,
      "created": 123
    }
  }
}

getPaginatedChartData

This Query will be removed in the future, please use getCharts.
Response

Returns a PaginatedChartDataResponse!

Arguments
Name Description
input - PaginatedAnalyticsDashboardQueryInput!

Example

Query
query GetPaginatedChartData($input: PaginatedAnalyticsDashboardQueryInput!) {
  getPaginatedChartData(input: $input) {
    totalCount
    pageInfo {
      prevCursor
      nextCursor
    }
    nodes {
      key
      values {
        ...ChartDataRowValueFragment
      }
      keyPayloadType
      keyPayload
    }
  }
}
Variables
{"input": PaginatedAnalyticsDashboardQueryInput}
Response
{
  "data": {
    "getPaginatedChartData": {
      "totalCount": 987,
      "pageInfo": PageInfo,
      "nodes": [ChartDataRow]
    }
  }
}

getPaginatedGroundTruthSet

Breaking changes may be introduced anytime in the future without prior notice.
Arguments
Name Description
input - GetPaginatedGroundTruthSetInput!

Example

Query
query GetPaginatedGroundTruthSet($input: GetPaginatedGroundTruthSetInput!) {
  getPaginatedGroundTruthSet(input: $input) {
    totalCount
    pageInfo {
      prevCursor
      nextCursor
    }
    nodes {
      id
      name
      teamId
      createdByUserId
      createdByUser {
        ...UserFragment
      }
      items {
        ...GroundTruthFragment
      }
      itemsCount
      createdAt
      updatedAt
    }
  }
}
Variables
{"input": GetPaginatedGroundTruthSetInput}
Response
{
  "data": {
    "getPaginatedGroundTruthSet": {
      "totalCount": 987,
      "pageInfo": PageInfo,
      "nodes": [GroundTruthSet]
    }
  }
}

getPaginatedGroundTruthSetItems

Breaking changes may be introduced anytime in the future without prior notice.
Arguments
Name Description
input - GetPaginatedGroundTruthSetItemsInput!

Example

Query
query GetPaginatedGroundTruthSetItems($input: GetPaginatedGroundTruthSetItemsInput!) {
  getPaginatedGroundTruthSetItems(input: $input) {
    totalCount
    pageInfo {
      prevCursor
      nextCursor
    }
    nodes {
      id
      groundTruthSetId
      systemInstruction
      prompt
      answer
      createdAt
      updatedAt
    }
  }
}
Variables
{"input": GetPaginatedGroundTruthSetItemsInput}
Response
{
  "data": {
    "getPaginatedGroundTruthSetItems": {
      "totalCount": 123,
      "pageInfo": PageInfo,
      "nodes": [GroundTruth]
    }
  }
}

getPaginatedLlmApplicationConfigurations

Breaking changes may be introduced anytime in the future without prior notice.

Example

Query
query GetPaginatedLlmApplicationConfigurations($input: GetPaginatedLlmApplicationConfigurationInput!) {
  getPaginatedLlmApplicationConfigurations(input: $input) {
    totalCount
    pageInfo {
      prevCursor
      nextCursor
    }
    nodes {
      id
      name
      teamId
      createdByUserId
      updatedByUserId
      updatedByUser {
        ...UserFragment
      }
      llmRagConfigId
      llmRagConfig {
        ...LlmRagConfigFragment
      }
      createdAt
      updatedAt
      isDeleted
    }
  }
}
Variables
{"input": GetPaginatedLlmApplicationConfigurationInput}
Response
{
  "data": {
    "getPaginatedLlmApplicationConfigurations": {
      "totalCount": 987,
      "pageInfo": PageInfo,
      "nodes": [LlmApplicationConfiguration]
    }
  }
}

getPaginatedQuestionSets

Arguments
Name Description
input - GetPaginatedQuestionSetInput!

Example

Query
query GetPaginatedQuestionSets($input: GetPaginatedQuestionSetInput!) {
  getPaginatedQuestionSets(input: $input) {
    totalCount
    pageInfo {
      prevCursor
      nextCursor
    }
    nodes {
      name
      id
      creator {
        ...UserFragment
      }
      items {
        ...QuestionSetItemFragment
      }
      kinds
      createdAt
      updatedAt
    }
  }
}
Variables
{"input": GetPaginatedQuestionSetInput}
Response
{
  "data": {
    "getPaginatedQuestionSets": {
      "totalCount": 123,
      "pageInfo": PageInfo,
      "nodes": [QuestionSet]
    }
  }
}

getPairKappas

Please use getIAAInformation instead.
Response

Returns [PairKappa!]!

Arguments
Name Description
teamId - ID!
labelSetSignatures - [String!]
method - IAAMethodName
projectIds - [ID!]

Example

Query
query GetPairKappas(
  $teamId: ID!,
  $labelSetSignatures: [String!],
  $method: IAAMethodName,
  $projectIds: [ID!]
) {
  getPairKappas(
    teamId: $teamId,
    labelSetSignatures: $labelSetSignatures,
    method: $method,
    projectIds: $projectIds
  ) {
    userId1
    userId2
    kappa
  }
}
Variables
{
  "teamId": 4,
  "labelSetSignatures": ["abc123"],
  "method": "COHENS_KAPPA",
  "projectIds": ["4"]
}
Response
{"data": {"getPairKappas": [{"userId1": 987, "userId2": 987, "kappa": 123.45}]}}

getPaymentMethod

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns a PaymentMethod!

Arguments
Name Description
teamId - ID!
stripePaymentMethodId - String

Example

Query
query GetPaymentMethod(
  $teamId: ID!,
  $stripePaymentMethodId: String
) {
  getPaymentMethod(
    teamId: $teamId,
    stripePaymentMethodId: $stripePaymentMethodId
  ) {
    hasPaymentMethod
    throttledUntil
    detail {
      type
      fundingType
      displayBrand
      creditCardLastFourNumber
      creditCardExpiryMonth
      creditCardExpiryYear
      markedForRemoval
      status
      invalidStatusReason
      createdAt
      updatedAt
    }
  }
}
Variables
{
  "teamId": "4",
  "stripePaymentMethodId": "xyz789"
}
Response
{
  "data": {
    "getPaymentMethod": {
      "hasPaymentMethod": false,
      "throttledUntil": "abc123",
      "detail": PaymentMethodDetail
    }
  }
}

getPaymentMethodTemporaryChargeConfiguration

Breaking changes may be introduced anytime in the future without prior notice.

Example

Query
query GetPaymentMethodTemporaryChargeConfiguration {
  getPaymentMethodTemporaryChargeConfiguration {
    amountCents
    currencyISO
    currencySymbol
  }
}
Response
{
  "data": {
    "getPaymentMethodTemporaryChargeConfiguration": {
      "amountCents": 123,
      "currencyISO": "abc123",
      "currencySymbol": "xyz789"
    }
  }
}

getPersonalTags

Description

Returns a list of personal tags.

Response

Returns [Tag!]!

Arguments
Name Description
input - GetPersonalTagsInput

Example

Query
query GetPersonalTags($input: GetPersonalTagsInput) {
  getPersonalTags(input: $input) {
    id
    name
    globalTag
  }
}
Variables
{"input": GetPersonalTagsInput}
Response
{
  "data": {
    "getPersonalTags": [
      {
        "id": 4,
        "name": "abc123",
        "globalTag": true
      }
    ]
  }
}

getPinnedProjectTemplates

Response

Returns [ProjectTemplateV2!]!

Arguments
Name Description
teamId - ID!

Example

Query
query GetPinnedProjectTemplates($teamId: ID!) {
  getPinnedProjectTemplates(teamId: $teamId) {
    id
    name
    logoURL
    projectTemplateProjectSettingId
    projectTemplateTextDocumentSettingId
    projectTemplateProjectSetting {
      autoMarkDocumentAsComplete
      enableEditLabelSet
      enableEditSentence
      enableLabelerProjectCompletionNotificationThreshold
      enableReviewerEditSentence
      enablePrelabeledDraft
      hideLabelerNamesDuringReview
      hideLabelsFromInactiveLabelSetDuringReview
      hideOriginalSentencesDuringReview
      hideRejectedLabelsDuringReview
      shouldConfirmUnusedLabelSetItems
      labelerProjectCompletionNotificationThreshold
      selfAssignmentLimit {
        ...SelfAssignmentLimitFragment
      }
    }
    projectTemplateTextDocumentSetting {
      customScriptId
      fileTransformerId
      customTextExtractionAPIId
      sentenceSeparator
      mediaDisplayStrategy
      enableTabularMarkdownParsing
      firstRowAsHeader
      displayedRows
      kind
      kinds
      allTokensMustBeLabeled
      allowArcDrawing
      allowCharacterBasedLabeling
      allowMultiLabels
      textLabelMaxTokenLength
      ocrMethod
      transcriptMethod
      ocrProvider
      autoScrollWhenLabeling
      tokenizer
      editSentenceTokenizer
      viewer
      viewerConfig {
        ...TextDocumentViewerConfigFragment
      }
      hideBoundingBoxIfNoSpanOrArrowLabel
      enableAnonymization
      anonymizationEntityTypes
      anonymizationMaskingMethod
      anonymizationRegExps {
        ...RegularExpressionFragment
      }
    }
    labelSetTemplates {
      id
      name
      owner {
        ...UserFragment
      }
      type
      items {
        ...LabelSetTemplateItemFragment
      }
      count
      createdAt
      updatedAt
      leafOnlyOption
    }
    questionSets {
      name
      id
      creator {
        ...UserFragment
      }
      items {
        ...QuestionSetItemFragment
      }
      kinds
      createdAt
      updatedAt
    }
    createdAt
    updatedAt
    purpose
    creatorId
    type
    description
    imagePreviewURL
    videoURL
  }
}
Variables
{"teamId": "4"}
Response
{
  "data": {
    "getPinnedProjectTemplates": [
      {
        "id": "4",
        "name": "xyz789",
        "logoURL": "abc123",
        "projectTemplateProjectSettingId": 4,
        "projectTemplateTextDocumentSettingId": "4",
        "projectTemplateProjectSetting": ProjectTemplateProjectSetting,
        "projectTemplateTextDocumentSetting": ProjectTemplateTextDocumentSetting,
        "labelSetTemplates": [LabelSetTemplate],
        "questionSets": [QuestionSet],
        "createdAt": "xyz789",
        "updatedAt": "abc123",
        "purpose": "LABELING",
        "creatorId": 4,
        "type": "CUSTOM",
        "description": "xyz789",
        "imagePreviewURL": "abc123",
        "videoURL": "abc123"
      }
    ]
  }
}

getPlaygroundCostPrediction

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns a CostPredictionResponse!

Arguments
Name Description
llmApplicationId - ID!
promptId - ID!
playgroundRagConfigIds - [ID!]
withAttachments - Boolean

Example

Query
query GetPlaygroundCostPrediction(
  $llmApplicationId: ID!,
  $promptId: ID!,
  $playgroundRagConfigIds: [ID!],
  $withAttachments: Boolean
) {
  getPlaygroundCostPrediction(
    llmApplicationId: $llmApplicationId,
    promptId: $promptId,
    playgroundRagConfigIds: $playgroundRagConfigIds,
    withAttachments: $withAttachments
  ) {
    costPerPromptTemplate {
      promptTemplateId
      promptTemplateName
      modelName
      tokens {
        ...TokenUsagesFragment
      }
      tokenUnitPrices {
        ...TokenUnitPricesFragment
      }
      tokenPrices {
        ...TokenPricesFragment
      }
      coveredByDatasaur
      pricingUsageType
      embeddingPricingUsageType
    }
    totalChars {
      coveredByDatasaur
      notCoveredByDatasaur
      total
    }
    totalTokens {
      coveredByDatasaur
      notCoveredByDatasaur
      total
    }
    totalPrice {
      coveredByDatasaur
      notCoveredByDatasaur
      total
    }
  }
}
Variables
{
  "llmApplicationId": "4",
  "promptId": "4",
  "playgroundRagConfigIds": [4],
  "withAttachments": true
}
Response
{
  "data": {
    "getPlaygroundCostPrediction": {
      "costPerPromptTemplate": [
        PromptTemplateCostPrediction
      ],
      "totalChars": CostPredictionTotal,
      "totalTokens": CostPredictionTotal,
      "totalPrice": CostPredictionTotalPrice
    }
  }
}

getPlaygroundCreditCost

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns an Int!

Arguments
Name Description
llmApplicationId - ID!
playgroundPromptIds - [ID]!
playgroundRagConfigIds - [ID!]

Example

Query
query GetPlaygroundCreditCost(
  $llmApplicationId: ID!,
  $playgroundPromptIds: [ID]!,
  $playgroundRagConfigIds: [ID!]
) {
  getPlaygroundCreditCost(
    llmApplicationId: $llmApplicationId,
    playgroundPromptIds: $playgroundPromptIds,
    playgroundRagConfigIds: $playgroundRagConfigIds
  )
}
Variables
{
  "llmApplicationId": 4,
  "playgroundPromptIds": ["4"],
  "playgroundRagConfigIds": [4]
}
Response
{"data": {"getPlaygroundCreditCost": 123}}

getPredictedLabels

Response

Returns [TextLabel!]!

Arguments
Name Description
input - GetPredictedLabelsInput!

Example

Query
query GetPredictedLabels($input: GetPredictedLabelsInput!) {
  getPredictedLabels(input: $input) {
    id
    l
    layer
    deleted
    hashCode
    labeledBy
    labeledByUser {
      id
      samlId
      amazonCustomerId
      username
      name
      email
      package
      profilePicture
      allowedActions
      displayName
      teamPackage
      emailVerified
      totpAuthEnabled
      companyName
      createdAt
      signUpParams {
        ...SignUpParamsFragment
      }
    }
    labeledByUserId
    acceptedByUserId
    rejectedByUserId
    createdAt
    updatedAt
    documentId
    start {
      sentenceId
      tokenId
      charId
    }
    end {
      sentenceId
      tokenId
      charId
    }
    confidenceScore
    status
  }
}
Variables
{"input": GetPredictedLabelsInput}
Response
{
  "data": {
    "getPredictedLabels": [
      {
        "id": "abc123",
        "l": "xyz789",
        "layer": 123,
        "deleted": true,
        "hashCode": "abc123",
        "labeledBy": "AUTO",
        "labeledByUser": User,
        "labeledByUserId": 123,
        "acceptedByUserId": 4,
        "rejectedByUserId": 4,
        "createdAt": "xyz789",
        "updatedAt": "xyz789",
        "documentId": "abc123",
        "start": TextCursor,
        "end": TextCursor,
        "confidenceScore": 987.65,
        "status": "LABELED"
      }
    ]
  }
}

getPredictedRowAnswers

Response

Returns [RowAnswer!]!

Arguments
Name Description
documentId - ID!

Example

Query
query GetPredictedRowAnswers($documentId: ID!) {
  getPredictedRowAnswers(documentId: $documentId) {
    documentId
    line
    answers
    metadata {
      path
      labeledBy
      labeledByUserId
      createdAt
      updatedAt
    }
    updatedAt
  }
}
Variables
{"documentId": 4}
Response
{
  "data": {
    "getPredictedRowAnswers": [
      {
        "documentId": "4",
        "line": 123,
        "answers": AnswerScalar,
        "metadata": [AnswerMetadata],
        "updatedAt": "2007-12-03T10:15:30Z"
      }
    ]
  }
}

getProcessingConfigurationSchema

Breaking changes may be introduced anytime in the future without prior notice.
Response

Returns a ProcessingConfigurationSchema

Arguments
Name Description
id - ID!

Example

Query
query GetProcessingConfigurationSchema($id: ID!) {
  getProcessingConfigurationSchema(id: $id)
}
Variables
{"id": "4"}
Response
{
  "data": {
    "getProcessingConfigurationSchema": ProcessingConfigurationSchema
  }
}

getProject

Description

Returns a single project identified by its ID.

Response

Returns a Project!

Arguments
Name Description
input - GetProjectInput!

Example

Query
query GetProject($input: GetProjectInput!) {
  getProject(input: $input) {
    id
    team {
      id
      logoURL
      members {
        ...TeamMemberFragment
      }
      membersScalar
      name
      setting {
        ...TeamSettingFragment
      }
      owner {
        ...UserFragment
      }
      isExpired
      expiredAt
    }
    teamId
    owner {
      id
      samlId
      amazonCustomerId
      username
      name
      email
      package
      profilePicture
      allowedActions
      displayName
      teamPackage
      emailVerified
      totpAuthEnabled
      companyName
      createdAt
      signUpParams {
        ...SignUpParamsFragment
      }
    }
    externalObjectStorageId
    rootDocumentId
    assignees {
      teamMember {
        ...TeamMemberFragment
      }
      documentIds
      documents {
        ...TextDocumentFragment
      }
      role
      createdAt
      updatedAt
    }
    name
    tags {
      id
      name
      globalTag
    }
    type
    createdDate
    completedDate
    exportedDate
    updatedDate
    isOwnerMe
    isReviewByMeAllowed
    settings {
      autoMarkDocumentAsComplete
      consensus
      conflictResolution {
        ...ConflictResolutionFragment
      }
      dynamicReviewMethod
      dynamicReviewMemberId
      enableEditLabelSet
      enableReviewerEditSentence
      enableReviewerInsertSentence
      enableReviewerDeleteSentence
      enableEditSentence
      enableInsertSentence
      enableDeleteSentence
      enableDirectBBoxEditing
      enableEnforceAutoLabelReviewerSettings
      enableRapidLabelingFeedback
      enablePrelabeledDraft
      hideLabelerNamesDuringReview
      hideLabelsFromInactiveLabelSetDuringReview
      hideOriginalSentencesDuringReview
      hideRejectedLabelsDuringReview
      labelerProjectCompletionNotification {
        ...LabelerProjectCompletionNotificationFragment
      }
      selfAssignmentLimit {
        ...SelfAssignmentLimitFragment
      }
      shouldConfirmUnusedLabelSetItems
      spotChecking {
        ...SpotCheckingFragment
      }
    }
    workspaceSettings {
      id
      textLabelMaxTokenLength
      allTokensMustBeLabeled
      autoScrollWhenLabeling
      allowArcDrawing
      allowCharacterBasedLabeling
      allowMultiLabels
      asrProvider
      kinds
      sentenceSeparator
      displayedRows
      mediaDisplayStrategy
      tokenizer
      firstRowAsHeader
      transcriptMethod
      ocrProvider
      customScriptId
      fileTransformerId
      customTextExtractionAPIId
      enableTabularMarkdownParsing
      enableAnonymization
      anonymizationEntityTypes
      anonymizationMaskingMethod
      anonymizationRegExps {
        ...RegularExpressionFragment
      }
      viewer
      viewerConfig {
        ...TextDocumentViewerConfigFragment
      }
      rowQuestionsFormValidationScriptId
      enableRowQuestionsFormValidationScript
    }
    reviewingStatus {
      isCompleted
      statistic {
        ...ReviewingStatusStatisticFragment
      }
    }
    labelingStatus {
      labeler {
        ...TeamMemberFragment
      }
      isCompleted
      isStarted
      statistic {
        ...LabelingStatusStatisticFragment
      }
      statisticsToShow {
        ...StatisticItemFragment
      }
    }
    status
    performance {
      project {
        ...ProjectFragment
      }
      projectId
      totalTimeSpent
      effectiveTotalTimeSpent
      conflicts
      totalLabelApplied
      numberOfAcceptedLabels
      numberOfDocuments
      numberOfTokens
      numberOfLines
    }
    selfLabelingStatus
    purpose
    rootCabinet {
      id
      documents
      role
      status
      lastOpenedDocumentId
      statistic {
        ...CabinetStatisticFragment
      }
      owner {
        ...UserFragment
      }
      createdAt
    }
    reviewCabinet {
      id
      documents
      role
      status
      lastOpenedDocumentId
      statistic {
        ...CabinetStatisticFragment
      }
      owner {
        ...UserFragment
      }
      createdAt
    }
    labelerCabinets {
      id
      documents
      role
      status
      lastOpenedDocumentId
      statistic {
        ...CabinetStatisticFragment
      }
      owner {
        ...UserFragment
      }
      createdAt
    }
    guideline {
      id
      name
      content
      project {
        ...ProjectFragment
      }
    }
    isArchived
    projectMetadataItems {
      id
      teamId
      creatorId
      key
      value
      createdAt
      updatedAt
    }
    availableDocumentsCount
  }
}
Variables
{"input": GetProjectInput}
Response
{
  "data": {
    "getProject": {
      "id": 4,
      "team": Team,
      "teamId": "4",
      "owner": User,
      "externalObjectStorageId": "xyz789",
      "rootDocumentId": 4,
      "assignees": [ProjectAssignment],
      "name": "xyz789",
      "tags": [Tag],
      "type": "abc123",
      "createdDate": "xyz789",
      "completedDate": "xyz789",
      "exportedDate": "abc123",
      "updatedDate": "xyz789",
      "isOwnerMe": false,
      "isReviewByMeAllowed": false,
      "settings": ProjectSettings,
      "workspaceSettings": WorkspaceSettings,
      "reviewingStatus": ReviewingStatus,
      "labelingStatus": [LabelingStatus],
      "status": "CREATED",
      "performance": ProjectPerformance,
      "selfLabelingStatus": "NOT_STARTED",
      "purpose": "LABELING",
      "rootCabinet": Cabinet,
      "reviewCabinet": Cabinet,
      "labelerCabinets": [Cabinet],
      "guideline": Guideline,
      "isArchived": true,
      "projectMetadataItems": [ProjectMetadataItem],
      "availableDocumentsCount": 123
    }
  }
}

getProjectCabinets

Description

Returns all of the project's cabinets.

Response

Returns [Cabinet!]!

Arguments
Name Description
projectId - ID!

Example

Query
query GetProjectCabinets($projectId: ID!) {
  getProjectCabinets(projectId: $projectId) {
    id
    documents
    role
    status
    lastOpenedDocumentId
    statistic {
      id
      numberOfTokens
      numberOfLines
    }
    owner {
      id
      samlId
      amazonCustomerId
      username
      name
      email
      package
      profilePicture
      allowedActions
      displayName
      teamPackage
      emailVerified
      totpAuthEnabled
      companyName
      createdAt
      signUpParams {
        ...SignUpParamsFragment
      }
    }
    createdAt
  }
}
Variables
{"projectId": 4}
Response
{
  "data": {
    "getProjectCabinets": [
      {
        "id": 4,
        "documents": [TextDocumentScalar],
        "role": "REVIEWER",
        "status": "IN_PROGRESS",
        "lastOpenedDocumentId": 4,
        "statistic": CabinetStatistic,
        "owner": User,
        "createdAt": "2007-12-03T10:15:30Z"
      }
    ]
  }
}

getProjectConflictsCount

Description

Total Project Conflict Count. Returns total label conflicts plus edit sentence conflicts

Arguments
Name Description
projectId - ID!
role - Role Default = REVIEWER

Example

Query
query GetProjectConflictsCount(
  $projectId: ID!,
  $role: Role
) {
  getProjectConflictsCount(
    projectId: $projectId,
    role: $role
  ) {
    documentId
    numberOfConflicts
  }
}
Variables
{"projectId": 4, "role": "REVIEWER"}
Response
{
  "data": {
    "getProjectConflictsCount": [
      {
        "documentId": "xyz789",
        "numberOfConflicts": 987
      }
    ]
  }
}

getProjectContributors

Response

Returns [CabinetContributor!]!

Arguments
Name Description
teamId - ID!
projectId - ID!

Example

Query
query GetProjectContributors(
  $teamId: ID!,
  $projectId: ID!
) {
  getProjectContributors(
    teamId: $teamId,
    projectId: $projectId
  ) {
    cabinetId
    cabinetOwnerId
    contributors {
      id
      samlId
      amazonCustomerId
      username
      name
      email
      package
      profilePicture
      allowedActions
      displayName
      teamPackage
      emailVerified
      totpAuthEnabled
      companyName
      createdAt
      signUpParams {
        ...SignUpParamsFragment
      }
    }
  }
}
Variables
{
  "teamId": "4",
  "projectId": "4"
}
Response
{
  "data": {
    "getProjectContributors": [
      {
        "cabinetId": "4",
        "cabinetOwnerId": 4,
        "contributors": [User]
      }
    ]
  }
}

getProjectDocumentAnswerReviewProgress

Response

Returns a ProjectDocumentsReviewProgress!

Arguments
Name Description
projectId - ID!

Example

Query
query GetProjectDocumentAnswerReviewProgress($projectId: ID!) {
  getProjectDocumentAnswerReviewProgress(projectId: $projectId) {
    projectId
    totalToReview
    totalReviewed
  }
}
Variables
{"projectId": "4"}
Response
{
  "data": {
    "getProjectDocumentAnswerReviewProgress": {
      "projectId": "4",
      "totalToReview": 123,
      "totalReviewed": 123
    }
  }
}

getProjectDocumentQuestionSet

Response

Returns a ProjectQuestionSet!

Arguments
Name Description
projectId - ID!

Example

Query
query GetProjectDocumentQuestionSet($projectId: ID!) {
  getProjectDocumentQuestionSet(projectId: $projectId) {
    questions {
      id
      internalId
      type
      name
      label
      required
      config {
        ...QuestionConfigFragment
      }
      bindToColumn
      activationConditionLogic
      targetEntity
    }
    signature
  }
}
Variables
{"projectId": 4}
Response
{
  "data": {
    "getProjectDocumentQuestionSet": {
      "questions": [Question],
      "signature": "xyz789"
    }
  }
}

getProjectExtension

Response

Returns a ProjectExtension

Arguments
Name Description
cabinetId - ID!

Example

Query
query GetProjectExtension($cabinetId: ID!) {
  getProjectExtension(cabinetId: $cabinetId) {
    id
    cabinetId
    elements {
      id
      enabled
      extension {
        ...ExtensionFragment
      }
      height
      order
      setting {
        ...ExtensionElementSettingFragment
      }
    }
    width
  }
}
Variables
{"cabinetId": 4}
Response
{
  "data": {
    "getProjectExtension": {
      "id": "4",
      "cabinetId": 4,
      "elements": [ExtensionElement],
      "width": 987
    }
  }
}

getProjectLabelersDocumentStatus

Arguments
Name Description
input - GetProjectInput

Example

Query
query GetProjectLabelersDocumentStatus($input: GetProjectInput) {
  getProjectLabelersDocumentStatus(input: $input) {
    originId
    assignedLabelers {
      id
      user {
        ...UserFragment
      }
      userId
      role {
        ...TeamRoleFragment
      }
      invitationEmail
      invitationStatus
      invitationKey
      isDeleted
      joinedDate
      performance {
        ...TeamMemberPerformanceFragment
      }
      labelingAgent {
        ...LabelingAgentFragment
      }
      labelingAgentId
    }
    completedLabelers {
      id
      user {
        ...UserFragment
      }
      userId
      role {
        ...TeamRoleFragment
      }
      invitationEmail
      invitationStatus
      invitationKey
      isDeleted
      joinedDate
      performance {
        ...TeamMemberPerformanceFragment
      }
      labelingAgent {
        ...LabelingAgentFragment
      }
      labelingAgentId
    }
  }
}
Variables
{"input": GetProjectInput}
Response
{
  "data": {
    "getProjectLabelersDocumentStatus": [
      {
        "originId": "4",
        "assignedLabelers": [TeamMember],
        "completedLabelers": [TeamMember]
      }
    ]
  }
}

getProjectMetadataItems

Response

Returns a PaginatedProjectMetadataItem!

Arguments
Name Description
input - GetProjectMetadataItemsInput!

Example

Query
query GetProjectMetadataItems($input: GetProjectMetadataItemsInput!) {
  getProjectMetadataItems(input: $input) {
    totalCount
    pageInfo {
      prevCursor
      nextCursor
    }
    nodes {
      id
      teamId
      creatorId
      key
      value
      createdAt
      updatedAt
    }
  }
}
Variables
{"input": GetProjectMetadataItemsInput}
Response
{
  "data": {
    "getProjectMetadataItems": {
      "totalCount": 123,
      "pageInfo": PageInfo,
      "nodes": [ProjectMetadataItem]
    }
  }
}

getProjectReviewingStatus

Description

Returns reviewing status for a single project.

Response

Returns a ReviewingStatus!

Arguments
Name Description
input - GetProjectInput!

Example

Query
query GetProjectReviewingStatus($input: GetProjectInput!) {
  getProjectReviewingStatus(input: $input) {
    isCompleted
    statistic {
      numberOfDocuments
      numberOfLabeledDocuments
    }
  }
}
Variables
{"input": GetProjectInput}
Response
{
  "data": {
    "getProjectReviewingStatus": {
      "isCompleted": false,
      "statistic": ReviewingStatusStatistic
    }
  }
}

getProjectRowQuestionSet

Response

Returns a ProjectQuestionSet!

Arguments
Name Description
projectId - ID!

Example

Query
query GetProjectRowQuestionSet($projectId: ID!) {
  getProjectRowQuestionSet(projectId: $projectId) {
    questions {
      id
      internalId
      type
      name
      label
      required
      config {
        ...QuestionConfigFragment
      }
      bindToColumn
      activationConditionLogic
      targetEntity
    }
    signature
  }
}
Variables
{"projectId": 4}
Response
{
  "data": {
    "getProjectRowQuestionSet": {
      "questions": [Question],
      "signature": "xyz789"
    }
  }
}

getProjectSample

Description

Returns a single project identified by its ID.

Response

Returns a ProjectSample!

Arguments
Name Description
id - ID!

Example

Query
query GetProjectSample($id: ID!) {
  getProjectSample(id: $id) {
    id
    displayName
    exportableJSON
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "getProjectSample": {
      "id": 4,
      "displayName": "abc123",
      "exportableJSON": "xyz789"
    }
  }
}

getProjectSamples

Description

Returns a list of ProjectSample matching the given name

Response

Returns [ProjectSample!]!

Arguments
Name Description
displayName - String

Example

Query
query GetProjectSamples($displayName: String) {
  getProjectSamples(displayName: $displayName) {
    id
    displayName
    exportableJSON
  }
}
Variables
{"displayName": "xyz789"}
Response
{
  "data": {
    "getProjectSamples": [
      {
        "id": 4,
        "displayName": "abc123",
        "exportableJSON": "abc123"
      }
    ]
  }
}

getProjectSummaryReport

Response

Returns a ProjectSummaryReport!

Arguments
Name Description
teamId - ID!
projectId - ID!

Example

Query
query GetProjectSummaryReport(
  $teamId: ID!,
  $projectId: ID!
) {
  getProjectSummaryReport(
    teamId: $teamId,
    projectId: $projectId
  ) {
    projectId
    metrics {
      key
      value
    }
  }
}
Variables
{"teamId": "4", "projectId": 4}
Response
{
  "data": {
    "getProjectSummaryReport": {
      "projectId": "4",
      "metrics": [ProjectSummaryMetric]
    }
  }
}

getProjectTemplate

Please use getProjectTemplateV2 instead.
Response

Returns a ProjectTemplate!

Arguments
Name Description
id - ID!

Example

Query
query GetProjectTemplate($id: ID!) {
  getProjectTemplate(id: $id) {
    id
    name
    teamId
    team {
      id
      logoURL
      members {
        ...TeamMemberFragment
      }
      membersScalar
      name
      setting {
        ...TeamSettingFragment
      }
      owner {
        ...UserFragment
      }
      isExpired
      expiredAt
    }
    logoURL
    projectTemplateProjectSettingId
    projectTemplateTextDocumentSettingId
    projectTemplateProjectSetting {
      autoMarkDocumentAsComplete
      enableEditLabelSet
      enableEditSentence
      enableLabelerProjectCompletionNotificationThreshold
      enableReviewerEditSentence
      enablePrelabeledDraft
      hideLabelerNamesDuringReview
      hideLabelsFromInactiveLabelSetDuringReview
      hideOriginalSentencesDuringReview
      hideRejectedLabelsDuringReview
      shouldConfirmUnusedLabelSetItems
      labelerProjectCompletionNotificationThreshold
      selfAssignmentLimit {
        ...SelfAssignmentLimitFragment
      }
    }
    projectTemplateTextDocumentSetting {
      customScriptId
      fileTransformerId
      customTextExtractionAPIId
      sentenceSeparator
      mediaDisplayStrategy
      enableTabularMarkdownParsing
      firstRowAsHeader
      displayedRows
      kind
      kinds
      allTokensMustBeLabeled
      allowArcDrawing
      allowCharacterBasedLabeling
      allowMultiLabels
      textLabelMaxTokenLength
      ocrMethod
      transcriptMethod
      ocrProvider
      autoScrollWhenLabeling
      tokenizer
      editSentenceTokenizer
      viewer
      viewerConfig {
        ...TextDocumentViewerConfigFragment
      }
      hideBoundingBoxIfNoSpanOrArrowLabel
      enableAnonymization
      anonymizationEntityTypes
      anonymizationMaskingMethod
      anonymizationRegExps {
        ...RegularExpressionFragment
      }
    }
    labelSetTemplates {
      id
      name
      owner {
        ...UserFragment
      }
      type
      items {
        ...LabelSetTemplateItemFragment
      }
      count
      createdAt
      updatedAt
      leafOnlyOption
    }
    questionSets {
      name
      id
      creator {
        ...UserFragment
      }
      items {
        ...QuestionSetItemFragment
      }
      kinds
      createdAt
      updatedAt
    }
    createdAt
    updatedAt
    purpose
    creatorId
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "getProjectTemplate": {
      "id": 4,
      "name": "abc123",
      "teamId": "4",
      "team": Team,
      "logoURL": "abc123",
      "projectTemplateProjectSettingId": 4,
      "projectTemplateTextDocumentSettingId": "4",
      "projectTemplateProjectSetting": ProjectTemplateProjectSetting,
      "projectTemplateTextDocumentSetting": ProjectTemplateTextDocumentSetting,
      "labelSetTemplates": [LabelSetTemplate],
      "questionSets": [QuestionSet],
      "createdAt": "abc123",
      "updatedAt": "abc123",
      "purpose": "LABELING",
      "creatorId": "4"
    }
  }
}

getProjectTemplateV2

Response

Returns a ProjectTemplateV2!

Arguments
Name Description
id - ID!

Example

Query
query GetProjectTemplateV2($id: ID!) {
  getProjectTemplateV2(id: $id) {
    id
    name
    logoURL
    projectTemplateProjectSettingId
    projectTemplateTextDocumentSettingId
    projectTemplateProjectSetting {
      autoMarkDocumentAsComplete
      enableEditLabelSet
      enableEditSentence
      enableLabelerProjectCompletionNotificationThreshold
      enableReviewerEditSentence
      enablePrelabeledDraft
      hideLabelerNamesDuringReview
      hideLabelsFromInactiveLabelSetDuringReview
      hideOriginalSentencesDuringReview
      hideRejectedLabelsDuringReview
      shouldConfirmUnusedLabelSetItems
      labelerProjectCompletionNotificationThreshold
      selfAssignmentLimit {
        ...SelfAssignmentLimitFragment
      }
    }
    projectTemplateTextDocumentSetting {
      customScriptId
      fileTransformerId
      customTextExtractionAPIId
      sentenceSeparator
      mediaDisplayStrategy
      enableTabularMarkdownParsing
      firstRowAsHeader
      displayedRows
      kind
      kinds
      allTokensMustBeLabeled
      allowArcDrawing
      allowCharacterBasedLabeling
      allowMultiLabels
      textLabelMaxTokenLength
      ocrMethod
      transcriptMethod
      ocrProvider
      autoScrollWhenLabeling
      tokenizer
      editSentenceTokenizer
      viewer
      viewerConfig {
        ...TextDocumentViewerConfigFragment
      }
      hideBoundingBoxIfNoSpanOrArrowLabel
      enableAnonymization
      anonymizationEntityTypes
      anonymizationMaskingMethod
      anonymizationRegExps {
        ...RegularExpressionFragment
      }
    }
    labelSetTemplates {
      id
      name
      owner {
        ...UserFragment
      }
      type
      items {
        ...LabelSetTemplateItemFragment
      }
      count
      createdAt
      updatedAt
      leafOnlyOption
    }
    questionSets {
      name
      id
      creator {
        ...UserFragment
      }
      items {
        ...QuestionSetItemFragment
      }
      kinds
      createdAt
      updatedAt
    }
    createdAt
    updatedAt
    purpose
    creatorId
    type
    description
    imagePreviewURL
    videoURL
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "getProjectTemplateV2": {
      "id": 4,
      "name": "abc123",
      "logoURL": "abc123",
      "projectTemplateProjectSettingId": 4,
      "projectTemplateTextDocumentSettingId": 4,
      "projectTemplateProjectSetting": ProjectTemplateProjectSetting,
      "projectTemplateTextDocumentSetting": ProjectTemplateTextDocumentSetting,
      "labelSetTemplates": [LabelSetTemplate],
      "questionSets": [QuestionSet],
      "createdAt": "xyz789",
      "updatedAt": "abc123",
      "purpose": "LABELING",
      "creatorId": "4",
      "type": "CUSTOM",
      "description": "xyz789",
      "imagePreviewURL": "xyz789",
      "videoURL": "abc123"
    }
  }
}

getProjectTemplates

Please use getProjectTemplatesV2 instead.
Response

Returns [ProjectTemplate!]!

Arguments
Name Description
teamId - ID!

Example

Query
query GetProjectTemplates($teamId: ID!) {
  getProjectTemplates(teamId: $teamId) {
    id
    name
    teamId
    team {
      id
      logoURL
      members {
        ...TeamMemberFragment
      }
      membersScalar
      name
      setting {
        ...TeamSettingFragment
      }
      owner {
        ...UserFragment
      }
      isExpired
      expiredAt
    }
    logoURL
    projectTemplateProjectSettingId
    projectTemplateTextDocumentSettingId
    projectTemplateProjectSetting {
      autoMarkDocumentAsComplete
      enableEditLabelSet
      enableEditSentence
      enableLabelerProjectCompletionNotificationThreshold
      enableReviewerEditSentence
      enablePrelabeledDraft
      hideLabelerNamesDuringReview
      hideLabelsFromInactiveLabelSetDuringReview
      hideOriginalSentencesDuringReview
      hideRejectedLabelsDuringReview
      shouldConfirmUnusedLabelSetItems
      labelerProjectCompletionNotificationThreshold
      selfAssignmentLimit {
        ...SelfAssignmentLimitFragment
      }
    }
    projectTemplateTextDocumentSetting {
      customScriptId
      fileTransformerId
      customTextExtractionAPIId
      sentenceSeparator
      mediaDisplayStrategy
      enableTabularMarkdownParsing
      firstRowAsHeader
      displayedRows
      kind
      kinds
      allTokensMustBeLabeled
      allowArcDrawing
      allowCharacterBasedLabeling
      allowMultiLabels
      textLabelMaxTokenLength
      ocrMethod
      transcriptMethod
      ocrProvider
      autoScrollWhenLabeling
      tokenizer
      editSentenceTokenizer
      viewer
      viewerConfig {
        ...TextDocumentViewerConfigFragment
      }
      hideBoundingBoxIfNoSpanOrArrowLabel
      enableAnonymization
      anonymizationEntityTypes
      anonymizationMaskingMethod
      anonymizationRegExps {
        ...RegularExpressionFragment
      }
    }
    labelSetTemplates {
      id
      name
      owner {
        ...UserFragment
      }
      type
      items {
        ...LabelSetTemplateItemFragment
      }
      count
      createdAt
      updatedAt
      leafOnlyOption
    }
    questionSets {
      name
      id
      creator {
        ...UserFragment
      }
      items {
        ...QuestionSetItemFragment
      }
      kinds
      createdAt
      updatedAt
    }
    createdAt
    updatedAt
    purpose
    creatorId
  }
}
Variables
{"teamId": "4"}
Response