Skip to main content
PUT
Replace CORS origins

Authorizations

Authorization
string
header
required

Use Authorization: Bearer end_sk_* for partner API keys (e.g. end_sk_AbCd_example_api_key).

Body

application/json
cors_origins
string[]
required

The complete allow-list. Replaces the previous list; send an empty array to remove all origins.

Maximum array length: 50

An exact origin (https://brand.example), a subdomain wildcard (https://*.brand.example, matching any subdomain depth), or a port wildcard (http://localhost:*, matching any port on that host). One wildcard per entry. Port wildcards are intended for local development; remove them before going live.

Required string length: 1 - 255

Response

The saved allowed origins.

cors_origins
string[]
required

Origins allowed to call the API from a browser, in canonical form.

Example: