> This page is for Object Storage.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.dropboxapi.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.dropboxapi.com/_mcp/server.

# Configuration

Dropbox Object Storage is S3-compatible, which means you can use any AWS CLI or SDK to interact with your buckets over the internet.

## Prerequisites

Before you begin, you'll need:

* **Access Key ID**
* **Secret Access Key**
* **Endpoint URL** - `https://seal.dropboxapi.com`
* **Region** - Use `us-east-1` for all requests

The Access Key ID and Secret Access Key can be created on the [Dropbox Developer Console](https://www.dropbox.com/developers/console).
The Access Key ID and Secret Access Key credentials are used to provide access to buckets and objects associated with your account.
These credentials grant full read, write, and delete access across all buckets owned by your team. Console-created credentials cannot
be restricted to a single bucket or read-only access. See [Managing and Rotating Credentials](#managing-and-rotating-credentials) for more details.

## Configure Credentials

First, install the AWS CLI if you haven't already. See [AWS CLI installation instructions](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html) for your platform.

Then configure your credentials:

```bash
aws configure
```

When prompted, enter:

* **AWS Access Key ID**: Your Dropbox-provided access key
* **AWS Secret Access Key**: Your Dropbox-provided secret key
* **Default region name**: `us-east-1`
* **Default output format**: `json` (or press enter)

This creates `~/.aws/credentials` and `~/.aws/config` files that all AWS SDKs will automatically use.

**Alternative methods:**

Any method supported by AWS SDKs for configuring Access Key ID and Secret Access Key will work, including:

* **Environment variables**: Set `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, and `AWS_DEFAULT_REGION` (typically loaded from a file or secrets manager, not exported directly in shell)
* **Credentials file**: Manually edit `~/.aws/credentials` to add a profile

## Using the SDKs

Once credentials are configured, your code only needs to specify the Object Storage endpoint. The SDK automatically reads credentials from `~/.aws/credentials` or environment variables.

#### Python

```python
import boto3
from botocore.config import Config

# Create S3 client pointing to Object Storage
# Explicitly specify SigV4 for compatibility
# when generating pre-signed URLs
s3_client = boto3.client(
    's3',
    endpoint_url='https://seal.dropboxapi.com',
    region_name='us-east-1',
    config=Config(signature_version='s3v4')
)

# Test the connection
s3_client.head_bucket(Bucket='your-bucket-name')
print("Connected successfully!")
```

#### Node.js

```javascript
import { S3Client, HeadBucketCommand } from '@aws-sdk/client-s3';

// Create S3 client pointing to Object Storage
const s3Client = new S3Client({
  endpoint: 'https://seal.dropboxapi.com',
  region: 'us-east-1'
});

// Test the connection
const command = new HeadBucketCommand({
  Bucket: 'your-bucket-name'
});
await s3Client.send(command);
console.log('Connected successfully!');
```

#### Go

```go
package main

import (
    "fmt"
    "github.com/aws/aws-sdk-go/aws"
    "github.com/aws/aws-sdk-go/aws/session"
    "github.com/aws/aws-sdk-go/service/s3"
)

func main() {
    // Create S3 client pointing to Object Storage
    sess := session.Must(session.NewSession(&aws.Config{
        Endpoint: aws.String("https://seal.dropboxapi.com"),
        Region:   aws.String("us-east-1"),
    }))

    svc := s3.New(sess)

    // Test the connection
    _, err := svc.HeadBucket(&s3.HeadBucketInput{
        Bucket: aws.String("your-bucket-name"),
    })
    if err != nil {
        panic(err)
    }
    fmt.Println("Connected successfully!")
}
```

#### AWS CLI

```bash
# Test the connection
aws s3api head-bucket \
  --bucket your-bucket-name \
  --endpoint-url https://seal.dropboxapi.com
```

## Managing and Rotating Credentials

Credentials for Dropbox Object Storage can be managed on the [Dropbox Developer Console](https://dropbox.com/developers/console).

### Credential Scope and Permissions

The credentials created are an Access Key ID and a Secret Access Key.
These credentials are used to validate every request made to Dropbox Object Storage. Buckets and objects are tied to a team's account,
and only keys associated with that account will be able to perform operations, such as bucket creation, uploading objects, and downloading objects,
within the account. Any set of credentials grants full API access, including read, write, and delete operations on objects and buckets,
for all buckets, objects, and other resources owned by your team.

### Managing Credentials in the Console

On the **Credentials** tab of the console users can perform the following actions on credentials:

* Create
* Deactivate
* Reactivate (if deactivated)
* Delete (**WARNING: This action cannot be undone**)

Store the Secret Access Key securely. It is only shown when new credentials, consisting of an Access Key ID and Secret Access Key, are created.

### Rotating Credentials

Users can use the Dropbox Developer Console **Credentials** tab to rotate their own credentials by following the process below:

1. Create new credentials
2. Migrate all existing applications to use the new credentials
3. Deactivate the old, no longer used, credentials
4. After confirming the old credentials are no longer necessary, delete them.

## Next Steps

* [Get started with basic operations](/object-storage/docs/getting-started)
* [Review API compatibility](/object-storage/docs/api-compatibility)