Skip to main content
POST
Authorize Cloud Service

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Body

application/json
code
string

OAuth authorization code (required for Google Drive and Dropbox providers).

provider
enum<string>

Cloud storage provider to connect.

Available options:
drive,
s3,
b2,
dropbox,
hf
Example:

"s3"

user_given_name
string

User-supplied name for this connection (required for all providers except Dropbox, which uses the name from the OAuth flow).

secret_access_key
string

Secret Access Key (required for S3 and HF).

access_key
string

Access Key ID (required for S3 and HF; HF keys must begin with HFAK).

namespace
string

Hugging Face user or organization namespace as one safe URL path segment (required for HF).

application_key
string

Backblaze Application Key secret (required for B2 provider).

key_id
string

Backblaze Application Key ID (required for B2 provider).

state
string

OAuth state parameter returned from Dropbox redirect (required for Dropbox provider).

Response

Success (Dropbox): {"success": true, "msg": "Dropbox Authenticated"}

success
boolean

Always true

msg
string

Confirmation message (e.g. "Dropbox Authenticated")