POST
/v1/delivery?squid={squid_hash}Configure Amazon S3 Delivery
Export squid run results directly to an AWS S3 bucketConfigure Amazon S3 delivery to export run results directly to an AWS S3 bucket. Results will be automatically uploaded to your specified bucket and path when runs complete.
Authentication Options
You can authenticate with S3 in two ways:
- AWS Credentials: Provide
aws_access_keyandaws_secret_keyin the request - Bucket Policy: If you don't provide credentials, ensure your bucket policy allows public WRITE permissions
Headers
| Key | Value | Required |
|---|---|---|
| Authorization | Token YOUR_API_KEY | Yes |
| Content-Type | application/json | Yes |
Request Body
s3_fields.bucketstring
RequiredExample: my-bucket
s3_fields.is_activeboolean
RequiredExample: true
s3_fields.target_pathstring
RequiredExample: exports
s3_fields.aws_access_keystring
OptionalExample: AKIAIOSFODNN7EXAMPLE
s3_fields.aws_secret_keystring
OptionalExample: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Response Field Explanations
s3_fields.bucket
string
Example: my-bucket
s3_fields.is_active
boolean
Example: true
s3_fields.target_path
string
Example: exports
s3_fields.aws_access_key
string
Example: AKIAIOSFODNN7EXAMPLE
s3_fields.aws_secret_key
string
Example: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Parameters
squidstring
RequiredExample:
c106a44a98044ef18acc59986ae10967Warning
If you don't provide AWS credentials, your bucket policy MUST allow public WRITE permissions for Lobstr to upload files.
Pro Tip
For better security, provide AWS credentials instead of making your bucket publicly writable. Use IAM users with limited permissions.
Note
The target_path creates a folder structure in your bucket. Results will be uploaded to s3://bucket/target_path/filename.csv
Pro Tip
Use the Test S3 endpoint to verify your bucket permissions and credentials before activating automatic delivery.
Warning
AWS credentials are stored and returned in API responses. Ensure you're using HTTPS and handle responses securely.