Index S3 Bucket

Index all files from S3 bucket into a database. Database ID is looked up automatically from organization_id + database_name. 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: S3 bucket name containing files to index aws_access_key_id: AWS access key for S3 bucket aws_secret_access_key: AWS secret key for S3 bucket bucket_region: S3 bucket region Authentication: Requires valid API key in Authorization header

Headers

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

Request

This endpoint expects an object.
database_namestringRequired
bucket_namestringRequired
aws_access_key_idstringRequired
aws_secret_access_keystringRequired
bucket_regionstringOptionalDefaults to us-east-1
processing_tierstringOptionalDefaults to balanced
max_filesinteger or nullOptional
streamboolean or nullOptionalDefaults to false

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