Index Gcs File
Index a single file from GCS bucket into a database.
Uses the same Step Function workflow as /index-gcs but targets a specific file.
Headers:
- Authorization: Bearer {api_key} - Captain API key for authentication
- X-Organization-ID: Organization UUID
Args:
database_name: Name of the database (looked up automatically)
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)
Authentication: Requires valid API key in Authorization header
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