Skip to main content
POST
POST /webarchive/destinations saves a bucket, an optional prefix and the credentials to write to it, validates the bucket with a real test upload and returns the destination with its id.
What create does depends on auth_mode:
  • access_keys, service_account_key, shared_key, sas_token: validated before it is stored. On failure nothing is stored: 422 destination_validation_failed, 503 destination_validation_unavailable or 429 destination_validation_busy.
  • assume_role: stored first, then validated in the same request (up to about 75 seconds). Always 200; check validation.status.
Each create makes a new destination, even with an identical body. Don’t retry a create blindly after a timeout: list your destinations first.
To use an IAM role, allow arn:aws:iam::422310177405:role/brd.ec2.zs-dca-delivery to call sts:AssumeRole in the trust policy of the role, and require your Bright Data Account ID from Account Settings as the external ID:
The role needs s3:PutObject and s3:AbortMultipartUpload on the bucket.
An account can hold up to 100 destinations. Create is limited to 10 requests per minute and 60 per hour.

Authorizations

Authorization
string
header
required

Use your Bright Data API Key as a Bearer token in the Authorization header.

How to authenticate:

  1. Obtain your API Key from the Bright Data account settings at https://brightdata.com/cp/setting/users
  2. Include the API Key in the Authorization header of your requests
  3. Format: Authorization: Bearer YOUR_API_KEY

Example:

Learn how to get your Bright Data API key: https://docs.brightdata.com/api-reference/authentication

Body

application/json
name
string
required

Printable ASCII, up to 80 characters.

Required string length: 1 - 80
Example:

"archive snapshots"

bucket
string
required

Bucket name only, without /. For Azure, the container name.

Pattern: ^[^/]+$
Example:

"my-bucket"

provider
enum<string>
default:s3

Storage provider.

Available options:
s3,
gcs,
azure,
oci,
ali_oss
auth_mode
enum<string>

s3: access_keys (default) or assume_role. gcs: service_account_key (required). azure: shared_key or sas_token (required). oci and ali_oss: access_keys (default).

Available options:
access_keys,
assume_role,
service_account_key,
shared_key,
sas_token
account
string

Azure only, required. Storage account name: the <account> of https://<account>.blob.core.windows.net.

Example:

"mystorageaccount"

namespace
string

OCI only, required. Object Storage namespace of your tenancy.

Example:

"mytenancyns"

region
string

OCI and Alibaba Cloud OSS only, required. OCI region identifier, for example us-ashburn-1, or OSS region ID with its oss- prefix, for example oss-cn-hangzhou.

Example:

"us-ashburn-1"

prefix
string

Default folder of the deliveries. Must not end with /. Can't be changed later.

Maximum string length: 1024
Example:

"brightdata/archive"

role_arn
string

assume_role only, required. The IAM role Bright Data assumes, with your Bright Data Account ID as the external ID.

Pattern: ^arn:aws:iam::[0-9]{12}:role/.+$
Example:

"arn:aws:iam::123456789012:role/brightdata-delivery"

region_hint
string

S3 only. With access_keys, where the region lookup starts. With assume_role, the bucket region until a validation finds the real one; it sets the price of deliveries until then.

Example:

"eu-west-1"

credentials
Access keys (S3, OCI, Alibaba OSS) · object

Required for every auth_mode except assume_role. Up to 8 KiB. Stored encrypted and never returned. On update, replaced as a whole.

Response

Destination created. For assume_role, a 200 response does not mean the bucket is valid: check validation.status.

id
string

Destination ID

Example:

"dst_0123456789abcdef0123456789abcdef"

customer_id
string

Your Bright Data Account ID

name
string
target
object

Where Bright Data writes. Credentials are never returned.

validation
object

Result of the last test upload.

firehose_validation
object

assume_role only. Result of the same test with the Bright Data Data Firehose role. For information only: it doesn't change validation.status.

target_revision
integer

Increases when the target changes

auth_revision
integer

Increases when the credentials or role change

next_validation_at
string<date-time>

Earliest time of the next validation

created_at
string<date-time>
updated_at
string<date-time>