Allowed Domains

Create Allowed Domain

Changed on

Creates an allowed domain for the account.

Requires api token with one of the following permissions

Read, update & delete anything

Tokens with the "Act with a team member's permissions" permission (all:delegate_to_contact_permissions scope) can also be used. Requests made with such a token are authorized using the permissions of the contact assigned to the token.

An expiring access token created with the all:delegate_to_contact_permissions scope and an account authorization granting the manage-allowed-domains permission can also be used.

post/allowed_domains

Request

  • Base URL
    https://api.wistia.com/modern
  • URL
    https://api.wistia.com/modern/allowed_domains
  • Auth
    HTTP bearer

Headers

X-Wistia-API-Versionstring required

Request body

domainstring required

The domain name to add (www will be automatically stripped)

Example request

{
  "domain": "example.com"
}

Response

Allowed domain created successfully (or already exists)

domainstring required

The allowed domain name.

created_atstring date-time required

The date that the allowed domain was originally created.

cursorstring nullable

A cursor for stable pagination based on current sort_by order. You can pass this to cursor[before] or cursor[after] as a parameter to fetch the records before or after this record in the same sort order. This is only populated if records were fetched with cursor[enabled], or cursor[before] or cursor[after].

Example response

{
  "domain": "example.com",
  "created_at": "2010-08-13T18:47:39+00:00"
}

Changes