View, create and delete call to actions.

Supported Formats

json

POST https://api.vidyard.com/dashboard/v1/ctas
Create a new call to action

Create a new call to action

Supported Formats

json

Errors

Code Description
400 Bad Request: body has wrong syntax or unable to handle request
401 Unauthorized: auth_token omitted or authentication failed
403 Forbidden: This action cannot be performed
404 Not Found: The requested resource could not be found
406 Not Acceptable: Accept or Content-Type headers must be application/json, text/csv or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
422 Unprocessable Entity: body has wrong attributes

Examples

REQUEST
Content-Type: application/json
{
  "chapter_id": 1024,
  "second": 145,
  "duration": 16,
  "auto_close": true,
  "width": 300,
  "html": "<div class=\"main\">Checkout my CTA!</div>"
}

RESPONSE
201 (Created)
{
  "chapter_id": 1024,
  "second": 145,
  "duration": 16,
  "auto_close": true,
  "width": 300,
  "html": "<div class=\"main\">Checkout my CTA!</div>",
  "id": 8192,
  "created_at": 1374261385,
  "updated_at": 1374261385
}

Params

Param name Description
auth_token
optional

API token needed to authorize requests
This can appear as an attribute in the body of the request or the query parameters on the URL

Validations:

  • Must be a String

chapter_id
required

The chapter this call to action will be added to. Not passing this parameter will create a default event.

Validations:

  • Parameter has to be Integer.

second
required

The start time of this call to action in seconds. Use -1 for Postroll CTAs.

Validations:

  • Parameter has to be Integer.

duration
optional

The duration this call to action will be displayed
This is required when auto_close is true, otherwise it is not used

Validations:

  • Parameter has to be Integer.

auto_close
optional

The call to action will automatically close after the set duration
Duration is required when auto_close is true
Default: true

Validations:

  • Parameter has to be Boolean.

width
required

Width in pixels of the call to action popout
Width can be between 100 and 500 pixels inclusive

Validations:

  • Parameter has to be Integer.

html
required

HTML this call to action will display. May include JavaScript and HTML forms.

Validations:

  • Must be a String


POST https://api.vidyard.com/dashboard/v1/ctas/default_email_gate
Create a default email gate call to action

Create a default email gate call to action

Supported Formats

json

Errors

Code Description
400 Bad Request: body has wrong syntax or unable to handle request
401 Unauthorized: auth_token omitted or authentication failed
403 Forbidden: This action cannot be performed
404 Not Found: The requested resource could not be found
406 Not Acceptable: Accept or Content-Type headers must be application/json, text/csv or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
422 Unprocessable Entity: body has wrong attributes

Examples

REQUEST
Content-Type: application/json
{
  "chapter_id": 1024
}

RESPONSE
201 (Created)
{
  "chapter_id": 1024,
  "second": 0,
  "duration": 1,
  "auto_close": false,
  "html": "<div class=\"main\">Enter your email to play the video</div>",
  "id": 8192,
  "created_at": 1374261385,
  "updated_at": 1374261385
}

Params

Param name Description
auth_token
optional

API token needed to authorize requests
This can appear as an attribute in the body of the request or the query parameters on the URL

Validations:

  • Must be a String

chapter_id
required

The chapter this call to action will be added to

Validations:

  • Parameter has to be Integer.

is_closeable
required

Is the email gate optional?

Validations:

  • Parameter has to be Boolean.

is_new_contact
required

Is the email gate only for new contacts?

Validations:

  • Parameter has to be Boolean.


PATCH https://api.vidyard.com/dashboard/v1/ctas/:id
Update a call to action

Update a call to action

Supported Formats

json

Errors

Code Description
400 Bad Request: body has wrong syntax or unable to handle request
401 Unauthorized: auth_token omitted or authentication failed
403 Forbidden: This action cannot be performed
404 Not Found: The requested resource could not be found
406 Not Acceptable: Accept or Content-Type headers must be application/json, text/csv or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
422 Unprocessable Entity: body has wrong attributes

Examples

REQUEST
Content-Type: application/json
{
  "second": 4,
  "duration": 4
}

RESPONSE
200 (OK)
{
  "chapter_id": 1024,
  "second": 4,
  "duration": 4,
  "auto_close": true,
  "width": 300,
  "html": "<div class=\"main\">Checkout my CTA!</div>",
  "id": 8192,
  "created_at": 1374261385,
  "updated_at": 1374261385
}

Params

Param name Description
auth_token
optional

API token needed to authorize requests
This can appear as an attribute in the body of the request or the query parameters on the URL

Validations:

  • Must be a String

id
required

Validations:

  • Parameter has to be Integer.

second
optional

The start time of this call to action in seconds

Validations:

  • Parameter has to be Integer.

duration
optional

The duration this call to action will be displayed
This is required when auto_close is true, otherwise it is not used

Validations:

  • Parameter has to be Integer.

auto_close
optional

The call to action will automatically close after the set duration
Duration is required when auto_close is true
Default: true

Validations:

  • Parameter has to be Boolean.

width
optional

Width in pixels of the call to action popout
Width can be between 100 and 500 pixels inclusive

Validations:

  • Parameter has to be Integer.

html
optional

HTML this call to action will display. May include JavaScript and HTML forms.

Validations:

  • Must be a String


GET https://api.vidyard.com/dashboard/v1/ctas/:id
Get a single call to action

Get a single call to action

Supported Formats

json

Errors

Code Description
400 Bad Request: body has wrong syntax or unable to handle request
401 Unauthorized: auth_token omitted or authentication failed
403 Forbidden: This action cannot be performed
404 Not Found: The requested resource could not be found
406 Not Acceptable: Accept or Content-Type headers must be application/json, text/csv or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

Examples

REQUEST
Accept: application/json

RESPONSE
200 (OK)
{
  "chapter_id": 1024,
  "second": 145,
  "duration": 16,
  "auto_close": true,
  "width": 300,
  "html": "<div class=\"main\">Checkout my CTA!</div>",
  "id": 8192,
  "created_at": 1374261385,
  "updated_at": 1374261385
}

Params

Param name Description
auth_token
optional

API token needed to authorize requests
This can appear as an attribute in the body of the request or the query parameters on the URL

Validations:

  • Must be a String

id
required

Used to uniquely identify a call to action

Validations:

  • Parameter has to be Integer.


GET https://api.vidyard.com/dashboard/v1/chapters/:id/ctas
Get all popout call to actions for a chapter

Get all popout call to actions for a chapter

Supported Formats

json

Errors

Code Description
400 Bad Request: body has wrong syntax or unable to handle request
401 Unauthorized: auth_token omitted or authentication failed
403 Forbidden: This action cannot be performed
404 Not Found: The requested resource could not be found
406 Not Acceptable: Accept or Content-Type headers must be application/json, text/csv or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

Examples

REQUEST
Accept: application/json

RESPONSE
{
  "ctas": [
    {
      "chapter_id": 1024,
      "second": 0,
      "duration": 4,
      "auto_close": true,
      "width": 250,
      "html": "<div class=\"main\">Enjoy the video</div>",
      "id": 8233,
      "created_at": 1374726233,
      "updated_at": 1374835343
    },
    {
      "chapter_id": 1024,
      "second": 145,
      "duration": 16,
      "auto_close": true,
      "width": 300,
      "html": "<div class=\"main\">Checkout my CTA!</div>",
      "id": 8192,
      "created_at": 1374261385,
      "updated_at": 1374261385
    }
  ],
  "summary": {
    "page": 1,
    "per_page": 2,
    "count": 100
  }
}

Params

Param name Description
auth_token
optional

API token needed to authorize requests
This can appear as an attribute in the body of the request or the query parameters on the URL

Validations:

  • Must be a String

per_page
optional

The number of items to show per page
Maximum: 200

Validations:

  • Parameter has to be Integer.

page
optional

The page number to include in the response
Only applies when per_page used
Default: 1

Validations:

  • Parameter has to be Integer.


GET https://api.vidyard.com/dashboard/v1/players/:id/ctas
Get all popout call to actions for a player

Get all popout call to actions for a player

Supported Formats

json

Errors

Code Description
400 Bad Request: body has wrong syntax or unable to handle request
401 Unauthorized: auth_token omitted or authentication failed
403 Forbidden: This action cannot be performed
404 Not Found: The requested resource could not be found
406 Not Acceptable: Accept or Content-Type headers must be application/json, text/csv or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

Examples

REQUEST
Accept: application/json

RESPONSE
{
  "ctas": [
    {
      "chapter_id": 1024,
      "second": 0,
      "duration": 4,
      "auto_close": true,
      "width": 250,
      "html": "<div class=\"main\">Enjoy the video</div>",
      "id": 8233,
      "created_at": 1374726233,
      "updated_at": 1374835343
    },
    {
      "chapter_id": 1027,
      "second": 145,
      "duration": 16,
      "auto_close": true,
      "width": 300,
      "html": "<div class=\"main\">Checkout my CTA!</div>",
      "id": 7359,
      "created_at": 1374261385,
      "updated_at": 1374261385
    }
  ],
  "summary": {
    "page": 1,
    "per_page": 2,
    "count": 100
  }
}

Params

Param name Description
auth_token
optional

API token needed to authorize requests
This can appear as an attribute in the body of the request or the query parameters on the URL

Validations:

  • Must be a String

id
required

Used to uniquely identify a player

Validations:

  • Parameter has to be Integer.

include_defaults
optional

Determines whether regular and default CTAs should both be returned.

Validations:

  • Parameter has to be Boolean.

per_page
optional

The number of items to show per page
Maximum: 200

Validations:

  • Parameter has to be Integer.

page
optional

The page number to include in the response
Only applies when per_page used
Default: 1

Validations:

  • Parameter has to be Integer.


GET https://api.vidyard.com/dashboard/v1/players/uuid=:uuid/ctas
Get all popout call to actions for a player by UUID

Also see "GET CTAs for a player" for examples.

Get all popout call to actions for a player by UUID

Supported Formats

json

Errors

Code Description
400 Bad Request: body has wrong syntax or unable to handle request
401 Unauthorized: auth_token omitted or authentication failed
403 Forbidden: This action cannot be performed
404 Not Found: The requested resource could not be found
406 Not Acceptable: Accept or Content-Type headers must be application/json, text/csv or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

Params

Param name Description
auth_token
optional

API token needed to authorize requests
This can appear as an attribute in the body of the request or the query parameters on the URL

Validations:

  • Must be a String

uuid
required

Used to uniquely identify a player

Validations:

  • Must be a String

include_defaults
optional

Determines whether regular and default CTAs should both be returned.

Validations:

  • Parameter has to be Boolean.

per_page
optional

The number of items to show per page
Maximum: 200

Validations:

  • Parameter has to be Integer.

page
optional

The page number to include in the response
Only applies when per_page used
Default: 1

Validations:

  • Parameter has to be Integer.


DELETE https://api.vidyard.com/dashboard/v1/ctas/:id
Delete a call to action

Delete a call to action

Supported Formats

json

Errors

Code Description
400 Bad Request: body has wrong syntax or unable to handle request
401 Unauthorized: auth_token omitted or authentication failed
403 Forbidden: This action cannot be performed
404 Not Found: The requested resource could not be found
406 Not Acceptable: Accept or Content-Type headers must be application/json, text/csv or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

Examples

REQUEST
Accept: application/json

RESPONSE
{
  "chapter_id": 1024,
  "second": 0,
  "duration": 4,
  "auto_close": true,
  "width": 250,
  "html": "<div class=\"main\">Enjoy the video</div>",
  "id": 8233,
  "created_at": 1374726233,
  "updated_at": 1374835343
}

Params

Param name Description
auth_token
optional

API token needed to authorize requests
This can appear as an attribute in the body of the request or the query parameters on the URL

Validations:

  • Must be a String

id
required

Used to uniquely identify a call to action

Validations:

  • Parameter has to be Integer.


GET https://api.vidyard.com/dashboard/v1/players/:id/cta_meta
Get popout call to action meta data for a player

Get popout call to action meta data for a player

Supported Formats

json

Errors

Code Description
400 Bad Request: body has wrong syntax or unable to handle request
401 Unauthorized: auth_token omitted or authentication failed
403 Forbidden: This action cannot be performed
404 Not Found: The requested resource could not be found
406 Not Acceptable: Accept or Content-Type headers must be application/json, text/csv or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

Examples

REQUEST
Accept: application/json

RESPONSE
{
  "max_cta_width": 350,
  "num_public_ctas": 11,
  "num_draft_ctas": 2
}

Params

Param name Description
auth_token
optional

API token needed to authorize requests
This can appear as an attribute in the body of the request or the query parameters on the URL

Validations:

  • Must be a String

id
required

Used to uniquely identify a player

Validations:

  • Parameter has to be Integer.


GET https://api.vidyard.com/dashboard/v1/players/uuid=:uuid/cta_meta
Get popout call to action meta data for a player by UUID

Also see "GET CTA meta data" for examples.

Get popout call to action meta data for a player by UUID

Supported Formats

json

Errors

Code Description
400 Bad Request: body has wrong syntax or unable to handle request
401 Unauthorized: auth_token omitted or authentication failed
403 Forbidden: This action cannot be performed
404 Not Found: The requested resource could not be found
406 Not Acceptable: Accept or Content-Type headers must be application/json, text/csv or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

Params

Param name Description
auth_token
optional

API token needed to authorize requests
This can appear as an attribute in the body of the request or the query parameters on the URL

Validations:

  • Must be a String

uuid
required

Used to uniquely identify a player

Validations:

  • Must be a String