Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

An Account secret key (sk_…) sent as Authorization: Bearer <key>.

Body

application/json
domain
string
required

Browser origin to authorize. A bare host defaults to HTTPS. Paths, query strings, fragments, user information, and wildcards are not accepted.

Minimum string length: 1

Response

The authorized web domain.

id
string
required
Pattern: ^wd_[0-9A-Za-z]{14}$
object
enum<string>
required
Available options:
web_domain
domain
string
required

Canonical browser origin.

Example:

"https://shop.example.com"

livemode
boolean
required
apple_pay
object
required
created_at
integer<int64>

Unix epoch seconds.