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
Authorization
Captain API key for authentication
X-Organization-ID
Organization UUID
Request
This endpoint expects an object.
database_name
bucket_name
file_uri
service_account_json
processing_tier
Response
Successful Response
success
message
status
total_files
supported_files
unsupported_files
replaced_files
database_name
bucket_name
error
job_id