indexing
Index R2 Bucket
Index all files from a Cloudflare R2 bucket into a collection.
R2 is S3-compatible. Provide your R2 API token's Access Key ID and Secret Access Key.
Headers:
- Authorization: Bearer {api_key} - Captain API key for authentication
- X-Organization-ID: Organization UUID
- Idempotency-Key: UUID for request deduplication (optional)
Args: collection_name: Name of the collection (path parameter) body: R2 bucket configuration
Returns: { job_id, status: "pending" }
post/v2/collections/{collection_name}/index/r2
Path parameters
collection_namestring required
Headers
authorizationstring nullable
Request body
Response
Successful Response
Changes
No recorded changes to this endpoint across all 1 revision of this API.