Skip to content

Beta

BetaIndexes

Get Index
client.Beta.Indexes.Get(ctx, indexID, query) (*BetaIndexGetResponse, error)
GET/api/v1/indexes/{index_id}
Delete Index
client.Beta.Indexes.Delete(ctx, indexID, body) error
DELETE/api/v1/indexes/{index_id}
Create Index
client.Beta.Indexes.New(ctx, params) (*BetaIndexNewResponse, error)
POST/api/v1/indexes
Sync Index
client.Beta.Indexes.Sync(ctx, indexID, body) (*BetaIndexSyncResponse, error)
POST/api/v1/indexes/{index_id}/sync
List Indexes
client.Beta.Indexes.List(ctx, query) (*PaginatedCursor[BetaIndexListResponse], error)
GET/api/v1/indexes

BetaRetrieval

Retrieve
client.Beta.Retrieval.Get(ctx, params) (*BetaRetrievalGetResponse, error)
POST/api/v1/retrieval/retrieve
Find Files
client.Beta.Retrieval.Find(ctx, params) (*PaginatedCursorPost[BetaRetrievalFindResponse], error)
POST/api/v1/retrieval/files/find
Grep File
client.Beta.Retrieval.Grep(ctx, params) (*PaginatedCursorPost[BetaRetrievalGrepResponse], error)
POST/api/v1/retrieval/files/grep
Read File
client.Beta.Retrieval.Read(ctx, params) (*BetaRetrievalReadResponse, error)
POST/api/v1/retrieval/files/read

BetaChat

List Sessions
client.Beta.Chat.List(ctx, query) (*PaginatedCursor[BetaChatListResponse], error)
GET/api/v1/chat
Create Session
client.Beta.Chat.New(ctx, params) (*BetaChatNewResponse, error)
POST/api/v1/chat
Get Full Session
client.Beta.Chat.Get(ctx, sessionID, query) (*BetaChatGetResponse, error)
GET/api/v1/chat/{session_id}
Delete Session
client.Beta.Chat.Delete(ctx, sessionID, body) error
DELETE/api/v1/chat/{session_id}
Get Session Summary
client.Beta.Chat.GetSummary(ctx, sessionID, query) (*BetaChatGetSummaryResponse, error)
GET/api/v1/chat/{session_id}/summary
Stream Messages
client.Beta.Chat.Stream(ctx, sessionID, params) (*BetaChatStreamResponse, error)
POST/api/v1/chat/{session_id}/messages/stream

BetaAgent Data

Get Agent Data
client.Beta.AgentData.Get(ctx, itemID, query) (*AgentData, error)
GET/api/v1/beta/agent-data/{item_id}
Update Agent Data
client.Beta.AgentData.Update(ctx, itemID, params) (*AgentData, error)
PUT/api/v1/beta/agent-data/{item_id}
Delete Agent Data
client.Beta.AgentData.Delete(ctx, itemID, body) (*BetaAgentDataDeleteResponse, error)
DELETE/api/v1/beta/agent-data/{item_id}
Create Agent Data
client.Beta.AgentData.New(ctx, params) (*AgentData, error)
POST/api/v1/beta/agent-data
Search Agent Data
client.Beta.AgentData.Search(ctx, params) (*PaginatedCursorPost[AgentData], error)
POST/api/v1/beta/agent-data/:search
Aggregate Agent Data
client.Beta.AgentData.Aggregate(ctx, params) (*PaginatedCursorPost[BetaAgentDataAggregateResponse], error)
POST/api/v1/beta/agent-data/:aggregate
Delete Agent Data By Query
client.Beta.AgentData.DeleteByQuery(ctx, params) (*BetaAgentDataDeleteByQueryResponse, error)
POST/api/v1/beta/agent-data/:delete
ModelsExpand Collapse
type AgentData struct{…}

API Result for a single agent data item

Data map[string, any]
DeploymentName string
ID stringoptional
Collection stringoptional
CreatedAt Timeoptional
ProjectID stringoptional
UpdatedAt Timeoptional

BetaSheets

Create Spreadsheet Job
client.Beta.Sheets.New(ctx, params) (*SheetsJob, error)
POST/api/v1/beta/sheets/jobs
List Spreadsheet Jobs
client.Beta.Sheets.List(ctx, query) (*PaginatedCursor[SheetsJob], error)
GET/api/v1/beta/sheets/jobs
Get Spreadsheet Job
client.Beta.Sheets.Get(ctx, spreadsheetJobID, query) (*SheetsJob, error)
GET/api/v1/beta/sheets/jobs/{spreadsheet_job_id}
Get Result Region
client.Beta.Sheets.GetResultTable(ctx, regionType, params) (*PresignedURL, error)
GET/api/v1/beta/sheets/jobs/{spreadsheet_job_id}/regions/{region_id}/result/{region_type}
Delete Spreadsheet Job
client.Beta.Sheets.DeleteJob(ctx, spreadsheetJobID, body) (*BetaSheetDeleteJobResponse, error)
DELETE/api/v1/beta/sheets/jobs/{spreadsheet_job_id}
ModelsExpand Collapse
type SheetsJob struct{…}

A spreadsheet parsing job.

ID string

The ID of the job

Configuration SheetsParsingConfig

Configuration applied to the parsing job (inline or resolved from a saved preset).

ExtractionRange stringoptional

A1 notation of the range to extract a single region from. If None, the entire sheet is used.

FlattenHierarchicalTables booloptional

Return a flattened dataframe when a detected table is recognized as hierarchical.

GenerateAdditionalMetadata booloptional

Whether to generate additional metadata (title, description) for each extracted region.

IncludeHiddenCells booloptional

Whether to include hidden cells when extracting regions from the spreadsheet.

SheetNames []stringoptional

The names of the sheets to extract regions from. If empty, all sheets will be processed.

Specialization stringoptional

Optional specialization mode for domain-specific extraction. Supported values: ‘financial-standard’, ‘financial-enhanced’, ‘financial-precise’. Default None uses the general-purpose pipeline.

TableMergeSensitivity SheetsParsingConfigTableMergeSensitivityoptional

Influences how likely similar-looking regions are merged into a single table. Useful for spreadsheets that either have sparse tables (strong merging) or many distinct tables close together (weak merging).

One of the following:
const SheetsParsingConfigTableMergeSensitivityStrong SheetsParsingConfigTableMergeSensitivity = "strong"
const SheetsParsingConfigTableMergeSensitivityWeak SheetsParsingConfigTableMergeSensitivity = "weak"
UseExperimentalProcessing booloptional

Enables experimental processing. Accuracy may be impacted.

CreatedAt string

When the job was created

FileID string

The ID of the input file

formatuuid
ProjectID string

The ID of the project

formatuuid
Status SheetsJobStatus

The status of the parsing job

One of the following:
const SheetsJobStatusPending SheetsJobStatus = "PENDING"
const SheetsJobStatusSuccess SheetsJobStatus = "SUCCESS"
const SheetsJobStatusError SheetsJobStatus = "ERROR"
const SheetsJobStatusPartialSuccess SheetsJobStatus = "PARTIAL_SUCCESS"
const SheetsJobStatusCancelled SheetsJobStatus = "CANCELLED"
UpdatedAt string

When the job was last updated

UserID string

The ID of the user

DeprecatedConfig SheetsParsingConfigoptional

Configuration for spreadsheet parsing and region extraction

ExtractionRange stringoptional

A1 notation of the range to extract a single region from. If None, the entire sheet is used.

FlattenHierarchicalTables booloptional

Return a flattened dataframe when a detected table is recognized as hierarchical.

GenerateAdditionalMetadata booloptional

Whether to generate additional metadata (title, description) for each extracted region.

IncludeHiddenCells booloptional

Whether to include hidden cells when extracting regions from the spreadsheet.

SheetNames []stringoptional

The names of the sheets to extract regions from. If empty, all sheets will be processed.

Specialization stringoptional

Optional specialization mode for domain-specific extraction. Supported values: ‘financial-standard’, ‘financial-enhanced’, ‘financial-precise’. Default None uses the general-purpose pipeline.

TableMergeSensitivity SheetsParsingConfigTableMergeSensitivityoptional

Influences how likely similar-looking regions are merged into a single table. Useful for spreadsheets that either have sparse tables (strong merging) or many distinct tables close together (weak merging).

One of the following:
const SheetsParsingConfigTableMergeSensitivityStrong SheetsParsingConfigTableMergeSensitivity = "strong"
const SheetsParsingConfigTableMergeSensitivityWeak SheetsParsingConfigTableMergeSensitivity = "weak"
UseExperimentalProcessing booloptional

Enables experimental processing. Accuracy may be impacted.

ConfigurationID stringoptional

The saved product configuration ID used at create time, if any.

Errors []stringoptional

Any errors encountered

DeprecatedFile Fileoptional

Schema for a file.

ID string

Unique identifier

formatuuid
Name string
ProjectID string

The ID of the project that the file belongs to

formatuuid
CreatedAt Timeoptional

Creation datetime

formatdate-time
DataSourceID stringoptional

The ID of the data source that the file belongs to

formatuuid
ExpiresAt Timeoptional

The expiration date for the file. Files past this date can be deleted.

formatdate-time
ExternalFileID stringoptional

The ID of the file in the external system

FileSize int64optional

Size of the file in bytes

minimum0
FileType stringoptional

File type (e.g. pdf, docx, etc.)

maxLength3000
minLength1
LastModifiedAt Timeoptional

The last modified time of the file

formatdate-time
PermissionInfo map[string, FilePermissionInfoUnion]optional

Permission information for the file

One of the following:
type FilePermissionInfoMap map[string, any]
type FilePermissionInfoArray []any
string
float64
bool
Purpose stringoptional

The intended purpose of the file (e.g., ‘user_data’, ‘parse’, ‘extract’, ‘split’, ‘classify’)

ResourceInfo map[string, FileResourceInfoUnion]optional

Resource information for the file

One of the following:
type FileResourceInfoMap map[string, any]
type FileResourceInfoArray []any
string
float64
bool
UpdatedAt Timeoptional

Update datetime

formatdate-time
MetadataStateTransitions map[string, any]optional

Per-status entry timestamps. Returned only when requested via ?expand=metadata_state_transitions.

Parameters SheetsJobParametersoptional

Job-time parameters such as webhook configurations.

WebhookConfigurations []SheetsJobParametersWebhookConfigurationoptional

Webhook configurations for job status notifications.

WebhookEvents []stringoptional

Events to subscribe to (e.g. ‘parse.success’, ‘extract.error’). If null, all events are delivered.

One of the following:
const SheetsJobParametersWebhookConfigurationWebhookEventExtractPending SheetsJobParametersWebhookConfigurationWebhookEvent = "extract.pending"
const SheetsJobParametersWebhookConfigurationWebhookEventExtractSuccess SheetsJobParametersWebhookConfigurationWebhookEvent = "extract.success"
const SheetsJobParametersWebhookConfigurationWebhookEventExtractError SheetsJobParametersWebhookConfigurationWebhookEvent = "extract.error"
const SheetsJobParametersWebhookConfigurationWebhookEventExtractPartialSuccess SheetsJobParametersWebhookConfigurationWebhookEvent = "extract.partial_success"
const SheetsJobParametersWebhookConfigurationWebhookEventExtractCancelled SheetsJobParametersWebhookConfigurationWebhookEvent = "extract.cancelled"
const SheetsJobParametersWebhookConfigurationWebhookEventParsePending SheetsJobParametersWebhookConfigurationWebhookEvent = "parse.pending"
const SheetsJobParametersWebhookConfigurationWebhookEventParseRunning SheetsJobParametersWebhookConfigurationWebhookEvent = "parse.running"
const SheetsJobParametersWebhookConfigurationWebhookEventParseSuccess SheetsJobParametersWebhookConfigurationWebhookEvent = "parse.success"
const SheetsJobParametersWebhookConfigurationWebhookEventParseError SheetsJobParametersWebhookConfigurationWebhookEvent = "parse.error"
const SheetsJobParametersWebhookConfigurationWebhookEventParsePartialSuccess SheetsJobParametersWebhookConfigurationWebhookEvent = "parse.partial_success"
const SheetsJobParametersWebhookConfigurationWebhookEventParseCancelled SheetsJobParametersWebhookConfigurationWebhookEvent = "parse.cancelled"
const SheetsJobParametersWebhookConfigurationWebhookEventClassifyPending SheetsJobParametersWebhookConfigurationWebhookEvent = "classify.pending"
const SheetsJobParametersWebhookConfigurationWebhookEventClassifyRunning SheetsJobParametersWebhookConfigurationWebhookEvent = "classify.running"
const SheetsJobParametersWebhookConfigurationWebhookEventClassifySuccess SheetsJobParametersWebhookConfigurationWebhookEvent = "classify.success"
const SheetsJobParametersWebhookConfigurationWebhookEventClassifyError SheetsJobParametersWebhookConfigurationWebhookEvent = "classify.error"
const SheetsJobParametersWebhookConfigurationWebhookEventClassifyPartialSuccess SheetsJobParametersWebhookConfigurationWebhookEvent = "classify.partial_success"
const SheetsJobParametersWebhookConfigurationWebhookEventClassifyCancelled SheetsJobParametersWebhookConfigurationWebhookEvent = "classify.cancelled"
const SheetsJobParametersWebhookConfigurationWebhookEventSheetsPending SheetsJobParametersWebhookConfigurationWebhookEvent = "sheets.pending"
const SheetsJobParametersWebhookConfigurationWebhookEventSheetsSuccess SheetsJobParametersWebhookConfigurationWebhookEvent = "sheets.success"
const SheetsJobParametersWebhookConfigurationWebhookEventSheetsError SheetsJobParametersWebhookConfigurationWebhookEvent = "sheets.error"
const SheetsJobParametersWebhookConfigurationWebhookEventSheetsPartialSuccess SheetsJobParametersWebhookConfigurationWebhookEvent = "sheets.partial_success"
const SheetsJobParametersWebhookConfigurationWebhookEventSheetsCancelled SheetsJobParametersWebhookConfigurationWebhookEvent = "sheets.cancelled"
const SheetsJobParametersWebhookConfigurationWebhookEventUnmappedEvent SheetsJobParametersWebhookConfigurationWebhookEvent = "unmapped_event"
WebhookHeaders map[string, string]optional

Custom HTTP headers sent with each webhook request (e.g. auth tokens)

WebhookOutputFormat stringoptional

Response format sent to the webhook: ‘string’ (default) or ‘json’

WebhookURL stringoptional

URL to receive webhook POST notifications

Regions []SheetsJobRegionoptional

All extracted regions (populated when job is complete)

Location string

Location of the region in the spreadsheet

RegionType string

Type of the extracted region

SheetName string

Worksheet name where region was found

Description stringoptional

Generated description for the region

RegionID stringoptional

Unique identifier for this region within the file

Title stringoptional

Generated title for the region

Success booloptional

Whether the job completed successfully

WorksheetMetadata []SheetsJobWorksheetMetadataoptional

Metadata for each processed worksheet (populated when job is complete)

SheetName string

Name of the worksheet

Description stringoptional

Generated description of the worksheet

Title stringoptional

Generated title for the worksheet

type SheetsParsingConfig struct{…}

Configuration for spreadsheet parsing and region extraction

ExtractionRange stringoptional

A1 notation of the range to extract a single region from. If None, the entire sheet is used.

FlattenHierarchicalTables booloptional

Return a flattened dataframe when a detected table is recognized as hierarchical.

GenerateAdditionalMetadata booloptional

Whether to generate additional metadata (title, description) for each extracted region.

IncludeHiddenCells booloptional

Whether to include hidden cells when extracting regions from the spreadsheet.

SheetNames []stringoptional

The names of the sheets to extract regions from. If empty, all sheets will be processed.

Specialization stringoptional

Optional specialization mode for domain-specific extraction. Supported values: ‘financial-standard’, ‘financial-enhanced’, ‘financial-precise’. Default None uses the general-purpose pipeline.

TableMergeSensitivity SheetsParsingConfigTableMergeSensitivityoptional

Influences how likely similar-looking regions are merged into a single table. Useful for spreadsheets that either have sparse tables (strong merging) or many distinct tables close together (weak merging).

One of the following:
const SheetsParsingConfigTableMergeSensitivityStrong SheetsParsingConfigTableMergeSensitivity = "strong"
const SheetsParsingConfigTableMergeSensitivityWeak SheetsParsingConfigTableMergeSensitivity = "weak"
UseExperimentalProcessing booloptional

Enables experimental processing. Accuracy may be impacted.

BetaDirectories

Create Directory
client.Beta.Directories.New(ctx, params) (*BetaDirectoryNewResponse, error)
POST/api/v1/beta/directories
List Directories
client.Beta.Directories.List(ctx, query) (*PaginatedCursor[BetaDirectoryListResponse], error)
GET/api/v1/beta/directories
Get Directory
client.Beta.Directories.Get(ctx, directoryID, query) (*BetaDirectoryGetResponse, error)
GET/api/v1/beta/directories/{directory_id}
Update Directory
client.Beta.Directories.Update(ctx, directoryID, params) (*BetaDirectoryUpdateResponse, error)
PATCH/api/v1/beta/directories/{directory_id}
Delete Directory
client.Beta.Directories.Delete(ctx, directoryID, body) error
DELETE/api/v1/beta/directories/{directory_id}

BetaDirectoriesFiles

Add Directory File
client.Beta.Directories.Files.Add(ctx, directoryID, params) (*BetaDirectoryFileAddResponse, error)
POST/api/v1/beta/directories/{directory_id}/files
List Directory Files
client.Beta.Directories.Files.List(ctx, directoryID, query) (*PaginatedCursor[BetaDirectoryFileListResponse], error)
GET/api/v1/beta/directories/{directory_id}/files
Get Directory File
client.Beta.Directories.Files.Get(ctx, directoryFileID, params) (*BetaDirectoryFileGetResponse, error)
GET/api/v1/beta/directories/{directory_id}/files/{directory_file_id}
Update Directory File
client.Beta.Directories.Files.Update(ctx, directoryFileID, params) (*BetaDirectoryFileUpdateResponse, error)
PATCH/api/v1/beta/directories/{directory_id}/files/{directory_file_id}
Delete Directory File
client.Beta.Directories.Files.Delete(ctx, directoryFileID, params) error
DELETE/api/v1/beta/directories/{directory_id}/files/{directory_file_id}
Upload File To Directory
client.Beta.Directories.Files.Upload(ctx, directoryID, params) (*BetaDirectoryFileUploadResponse, error)
POST/api/v1/beta/directories/{directory_id}/files/upload

BetaBatch

Create Batch Job
client.Beta.Batch.New(ctx, params) (*BetaBatchNewResponse, error)
POST/api/v1/beta/batch-processing
List Batch Jobs
client.Beta.Batch.List(ctx, query) (*PaginatedBatchItems[BetaBatchListResponse], error)
GET/api/v1/beta/batch-processing
Get Batch Job Status
client.Beta.Batch.GetStatus(ctx, jobID, query) (*BetaBatchGetStatusResponse, error)
GET/api/v1/beta/batch-processing/{job_id}
Cancel Batch Job
client.Beta.Batch.Cancel(ctx, jobID, params) (*BetaBatchCancelResponse, error)
POST/api/v1/beta/batch-processing/{job_id}/cancel

BetaBatchJob Items

List Batch Job Items
client.Beta.Batch.JobItems.List(ctx, jobID, query) (*PaginatedBatchItems[BetaBatchJobItemListResponse], error)
GET/api/v1/beta/batch-processing/{job_id}/items
Get Item Processing Results
client.Beta.Batch.JobItems.GetProcessingResults(ctx, itemID, query) (*BetaBatchJobItemGetProcessingResultsResponse, error)
GET/api/v1/beta/batch-processing/items/{item_id}/processing-results

BetaSplit

Create Split Job
client.Beta.Split.New(ctx, params) (*BetaSplitNewResponse, error)
POST/api/v1/beta/split/jobs
List Split Jobs
client.Beta.Split.List(ctx, query) (*PaginatedCursor[BetaSplitListResponse], error)
GET/api/v1/beta/split/jobs
Get Split Job
client.Beta.Split.Get(ctx, splitJobID, query) (*BetaSplitGetResponse, error)
GET/api/v1/beta/split/jobs/{split_job_id}
ModelsExpand Collapse
type SplitCategory struct{…}

Category definition for document splitting.

Name string

Name of the category.

maxLength200
minLength1
Description stringoptional

Optional description of what content belongs in this category.

maxLength2000
minLength1
type SplitDocumentInput struct{…}

Document input specification for beta API.

Type string

Type of document input. Valid values are: file_id

Value string

Document identifier.

type SplitResultResponse struct{…}

Result of a completed split job.

List of document segments.

Category string

Category name this split belongs to.

ConfidenceCategory string

Categorical confidence level. Valid values are: high, medium, low.

Pages []int64

1-indexed page numbers in this split.

type SplitSegmentResponse struct{…}

A segment of the split document.

Category string

Category name this split belongs to.

ConfidenceCategory string

Categorical confidence level. Valid values are: high, medium, low.

Pages []int64

1-indexed page numbers in this split.