Index GCS File

Index a single file from GCS bucket into a database. Headers: - Authorization: Bearer {api_key} - Captain API key for authentication - X-Organization-ID: Organization UUID Args: database_name: Name of the database bucket_name: GCS bucket name containing the file file_uri: GCS URI of the file (format: gs://bucket-name/path/to/file.pdf) service_account_json: Service Account JSON credentials (as string) Returns: Job ID for tracking indexing progress

Headers

AuthorizationstringRequired
Captain API key for authentication
X-Organization-IDstringRequired
Organization UUID

Request

This endpoint expects an object.
database_namestringRequired
bucket_namestringRequired
file_uristringRequired
service_account_jsonstringRequired
processing_tierstringOptionalDefaults to balanced

Response

Successful Response
successboolean
messagestring
statusstring
total_filesinteger
supported_filesinteger
unsupported_filesinteger
replaced_filesinteger
database_namestring
bucket_namestring
errorstring or null
job_idstring or null

Errors