# Vidyard

> Upload, organize, tag and share videos, and get personalized sharing links, in Vidyard.

App · 24 actions. Web page: https://docs.lodol.com/docs/integrations/vidyard

## Actions

### Add tag to player

Tag a player, creating the tag if it is new.

**Inputs**

- Player (`player_id`, number, required): The Vidyard player (the video as viewers see and share it).
- Tag (`name`, text, required): The tag, 2 to 100 characters.

**Outputs**

- `data` (object): The response from Vidyard.

**Example output**

```json
{
  "data": {
    "id": 1,
    "name": "example",
    "taggable_id": 1,
    "taggable_type": "example"
  }
}
```

### Add video to playlist

Add a video to a playlist player at a given position.

**Inputs**

- Playlist (`player_id`, number, required): The playlist player to add the video to.
- Video (`video_id`, number, required): The Vidyard video.
- Position (`position`, number, required): Where the video goes in the playlist: 0 for first, 1 for second, and so on. At least 0.

**Outputs**

- `data` (object): The response from Vidyard.

**Example output**

```json
{
  "data": {
    "created_at": 1,
    "id": 1,
    "player_id": 1,
    "position": 1,
    "updated_at": 1,
    "video_id": 1
  }
}
```

### Create personalized sharing link

Get a player's sharing link and embed codes tied to one viewer's email address, so Vidyard knows who watched.

**Inputs**

- Player (`player_id`, number, required): The Vidyard player (the video as viewers see and share it).
- Viewer email (`viewer_email`, text, required): The email address of the person you'll send the video to.
- Include branded sharing page (`include_branded_sharing_page`, true/false): Also return the link to the sharing page on your own branded domain.

**Outputs**

- `data` (object): The response from Vidyard.

**Example output**

```json
{
  "data": {
    "base_url": "example",
    "branded_sharing_page": "example",
    "iframe": "example",
    "inline": "example",
    "light_box": "example",
    "responsive_inline": "example",
    "responsive_lightbox": "example",
    "sharing_page": "example",
    "thumbnail": "example",
    "url": "example"
  }
}
```

### Create playlist

Create an empty playlist player, then add videos to it with Add video to playlist.

**Inputs**

- Name (`name`, text, required): The playlist's name.
- Description (`description`, text): A description shown with the playlist.

**Outputs**

- `data` (object): The response from Vidyard.

**Example output**

```json
{
  "data": {
    "access_setting": "example",
    "autoplay": true,
    "chapters_attributes": [
      {
        "created_at": 1,
        "id": 1,
        "player_id": 1,
        "position": 1,
        "updated_at": 1,
        "video_attributes": {
          "audio_gain": 1,
          "created_at": 1,
          "description": "example",
          "error_message": "example",
          "id": 1,
          "name": "example",
          "notes": "example",
          "status": "example",
          "sync": true,
          "updated_at": 1,
          "upload_url": "example",
          "uuid": "example",
          "webhook_url": "example"
        },
        "video_id": 1
      }
    ],
    "color": "example",
    "created_at": 1,
    "custom_sharing_link": "example",
    "description": "example",
    "embed_button": true,
    "expiry_date": 1,
    "height": 1,
    "id": 1,
    "length_in_seconds": 1,
    "mute_onload": true,
    "name": "example",
    "play_button": true,
    "release_date": 1,
    "sharing_page": true,
    "sharing_page_comments": true,
    "updated_at": 1,
    "uuid": "example",
    "viral_sharing": true,
    "viral_sharing_message": "example",
    "whitelisted_embed_domain": "example",
    "width": 1
  }
}
```

### Delete player

Delete a player and remove it from everywhere it is shared or embedded.

**Inputs**

- Player (`player_id`, number, required): The Vidyard player (the video as viewers see and share it).

**Outputs**

- `data` (object): The response from Vidyard.

**Example output**

```json
{
  "data": {}
}
```

### Delete tag

Delete a tag and remove it from every player and video that has it.

**Inputs**

- Tag (`tag_id`, number, required): The tag to delete everywhere.

**Outputs**

- `data` (object): The response from Vidyard.

**Example output**

```json
{
  "data": {}
}
```

### Get download links

Get the links to download each video file in a player, in its original and processed qualities.

**Inputs**

- Player (`player_id`, number, required): The Vidyard player (the video as viewers see and share it).

**Outputs**

- `data` (list): The response from Vidyard.

**Example output**

```json
{
  "data": [
    {
      "chapter_id": "example",
      "download_links": {
        "hd": "example",
        "sd": "example",
        "source": "example"
      }
    }
  ]
}
```

### Get player

Get a player with its settings and the videos (chapters) it holds.

**Inputs**

- Player (`player_id`, number, required): The Vidyard player (the video as viewers see and share it).

**Outputs**

- `data` (object): The response from Vidyard.

**Example output**

```json
{
  "data": {
    "access_setting": "example",
    "autoplay": true,
    "chapters_attributes": [
      {
        "created_at": 1,
        "id": 1,
        "player_id": 1,
        "position": 1,
        "updated_at": 1,
        "video_attributes": {
          "audio_gain": 1,
          "created_at": 1,
          "description": "example",
          "error_message": "example",
          "id": 1,
          "name": "example",
          "notes": "example",
          "status": "example",
          "sync": true,
          "updated_at": 1,
          "upload_url": "example",
          "uuid": "example",
          "webhook_url": "example"
        },
        "video_id": 1
      }
    ],
    "color": "example",
    "created_at": 1,
    "custom_sharing_link": "example",
    "description": "example",
    "embed_button": true,
    "expiry_date": 1,
    "height": 1,
    "id": 1,
    "length_in_seconds": 1,
    "mute_onload": true,
    "name": "example",
    "play_button": true,
    "release_date": 1,
    "sharing_page": true,
    "sharing_page_comments": true,
    "updated_at": 1,
    "uuid": "example",
    "viral_sharing": true,
    "viral_sharing_message": "example",
    "whitelisted_embed_domain": "example",
    "width": 1
  }
}
```

### Get player tags

List the tags on a player.

**Inputs**

- Player (`player_id`, number, required): The Vidyard player (the video as viewers see and share it).

**Outputs**

- `data` (list): The response from Vidyard.

**Example output**

```json
{
  "data": [
    {
      "id": 1,
      "name": "example"
    }
  ]
}
```

### Get sharing links and embed codes

Get a player's sharing page link, thumbnail and the codes to embed it on a website.

**Inputs**

- Player (`player_id`, number, required): The Vidyard player (the video as viewers see and share it).
- Include branded sharing page (`include_branded_sharing_page`, true/false): Also return the link to the sharing page on your own branded domain.

**Outputs**

- `data` (object): The response from Vidyard.

**Example output**

```json
{
  "data": {
    "base_url": "example",
    "branded_sharing_page": "example",
    "iframe": "example",
    "inline": "example",
    "light_box": "example",
    "sharing_page": "example",
    "thumbnail": "example",
    "url": "example"
  }
}
```

### Get video

Get a video's name, description, notes and processing status.

**Inputs**

- Video (`video_id`, number, required): The Vidyard video.

**Outputs**

- `data` (object): The response from Vidyard.

**Example output**

```json
{
  "data": {
    "audio_gain": 1,
    "created_at": 1,
    "description": "example",
    "error_message": "example",
    "id": 1,
    "name": "example",
    "notes": "example",
    "status": "example",
    "sync": true,
    "updated_at": 1,
    "upload_url": "example",
    "uuid": "example",
    "webhook_url": "example"
  }
}
```

### Get video processing status

Check how far Vidyard has got processing a video, its length in seconds and its thumbnail.

**Inputs**

- Video (`video_id`, number, required): The Vidyard video.

**Outputs**

- `data` (object): The response from Vidyard.

**Example output**

```json
{
  "data": {
    "progress": {
      "progress": 1,
      "state": "example"
    },
    "thumbnail_url": "example",
    "video": {
      "seconds": 1,
      "status": "example"
    }
  }
}
```

### List folders

List the folders in your Vidyard account that the API token can reach.

**Inputs**

- Limit (`limit`, number): How many folders to return, up to 200. Leave empty for 50. From 1 to 200.
- Page (`page`, number): Which page to read, starting at 1. Use the next_page a previous step returned. At least 1.

**Outputs**

- `data` (object): The response from Vidyard.

**Example output**

```json
{
  "data": {
    "count": 1,
    "items": [
      {
        "account_id": 1,
        "created_at": 1,
        "id": 1,
        "name": "example",
        "org_type": "example",
        "parent_id": 1,
        "updated_at": 1
      }
    ],
    "next_page": 1,
    "page": 1,
    "total": 1
  }
}
```

### List hubs

List your Vidyard hubs, the video gallery websites you publish.

**Inputs**

- Limit (`limit`, number): How many hubs to return, up to 200. Leave empty for 50. From 1 to 200.
- Page (`page`, number): Which page to read, starting at 1. Use the next_page a previous step returned. At least 1.

**Outputs**

- `data` (object): The response from Vidyard.

**Example output**

```json
{
  "data": {
    "count": 1,
    "items": [
      {
        "base_url": "example",
        "created_at": 1,
        "description": "example",
        "hub_type": "example",
        "id": 1,
        "name": "example",
        "organization_id": 1,
        "route_type": "example",
        "subdomain": "example",
        "updated_at": 1
      }
    ],
    "next_page": 1,
    "page": 1,
    "total": 1
  }
}
```

### List players

List the players (videos as viewers see them) in the folder the API token belongs to.

**Inputs**

- Limit (`limit`, number): How many players to return, up to 200. Leave empty for 50. From 1 to 200.
- Page (`page`, number): Which page to read, starting at 1. Use the next_page a previous step returned. At least 1.
- Sort by (`order_by`, text): Sort the players by this. One of: `name`, `created_at` (Date created), `updated_at` (Date updated).
- Order (`direction`, text): Ascending (the default) or descending. One of: `asc` (Ascending (A to Z, oldest first)), `desc` (Descending (Z to A, newest first)).
- Search (`query`, text): Only players whose name, video names or tags contain this text.
- Include subfolders (`include_subgroups`, true/false): Include players in subfolders too.

**Outputs**

- `data` (object): The response from Vidyard.

**Example output**

```json
{
  "data": {
    "count": 1,
    "items": [
      {
        "access_setting": "example",
        "autoplay": true,
        "chapters_attributes": [
          {
            "created_at": 1,
            "id": 1,
            "player_id": 1,
            "position": 1,
            "updated_at": 1,
            "video_attributes": {
              "audio_gain": 1,
              "created_at": 1,
              "description": "example",
              "error_message": "example",
              "id": 1,
              "name": "example",
              "notes": "example",
              "status": "example",
              "sync": true,
              "updated_at": 1,
              "upload_url": "example",
              "uuid": "example",
              "webhook_url": "example"
            },
            "video_id": 1
          }
        ],
        "color": "example",
        "created_at": 1,
        "custom_sharing_link": "example",
        "description": "example",
        "embed_button": true,
        "expiry_date": 1,
        "height": 1,
        "id": 1,
        "length_in_seconds": 1,
        "mute_onload": true,
        "name": "example",
        "play_button": true,
        "release_date": 1,
        "sharing_page": true,
        "sharing_page_comments": true,
        "updated_at": 1,
        "uuid": "example",
        "viral_sharing": true,
        "viral_sharing_message": "example",
        "whitelisted_embed_domain": "example",
        "width": 1
      }
    ],
    "next_page": 1,
    "page": 1,
    "total": 1
  }
}
```

### List tags

List the tags used in your Vidyard folder.

**Inputs**

- Name (`name`, text): Only the tag with exactly this name.
- Limit (`limit`, number): How many tags to return, up to 200. Leave empty for 50. From 1 to 200.
- Page (`page`, number): Which page to read, starting at 1. Use the next_page a previous step returned. At least 1.

**Outputs**

- `data` (object): The response from Vidyard.

**Example output**

```json
{
  "data": {
    "count": 1,
    "items": [
      {
        "id": 1,
        "name": "example",
        "organization_id": 1
      }
    ],
    "next_page": 1,
    "page": 1,
    "total": 1
  }
}
```

### List teams

List the teams in your Vidyard account.

**Inputs**

- Search (`query`, text): Only teams whose name starts with this text.
- Include members (`include_members`, true/false): Also return each team's members and how many there are.

**Outputs**

- `data` (object): The response from Vidyard.

**Example output**

```json
{
  "data": {
    "count": 1,
    "items": [
      {
        "account_id": 1,
        "created_at": 1,
        "id": 1,
        "is_admin": true,
        "member_count": 1,
        "members": [
          {
            "email": "example",
            "first_name": "example",
            "id": 1,
            "last_name": "example"
          }
        ],
        "name": "example",
        "updated_at": 1
      }
    ],
    "next_page": 1,
    "page": 1,
    "total": 1
  }
}
```

### List users

List the people in your Vidyard account.

**Inputs**

- Team (`team`, number): Only people in this team.
- Accepted invitations only (`invite_accepted_only`, true/false): Only people who have accepted their invitation.

**Outputs**

- `data` (object): The response from Vidyard.

**Example output**

```json
{
  "data": {
    "count": 1,
    "items": [
      {
        "created_at": 1,
        "email": "example",
        "first_name": "example",
        "id": 1,
        "last_name": "example",
        "last_sign_in_at": 1,
        "updated_at": 1
      }
    ],
    "next_page": 1,
    "page": 1,
    "total": 1
  }
}
```

### List videos

List the videos in the folder the API token belongs to, with their processing status.

**Inputs**

- Limit (`limit`, number): How many videos to return, up to 200. Leave empty for 50. From 1 to 200.
- Page (`page`, number): Which page to read, starting at 1. Use the next_page a previous step returned. At least 1.
- Sort by (`order_by`, text): Sort the videos by this. One of: `name`, `created_at` (Date created), `updated_at` (Date updated).
- Order (`direction`, text): Ascending (the default) or descending. One of: `asc` (Ascending (A to Z, oldest first)), `desc` (Descending (Z to A, newest first)).
- Search (`query`, text): Only videos whose player or video name, or tags, contain this text.
- Include subfolders (`include_descendants`, true/false): Include those in subfolders too.

**Outputs**

- `data` (object): The response from Vidyard.

**Example output**

```json
{
  "data": {
    "count": 1,
    "items": [
      {
        "audio_gain": 1,
        "created_at": 1,
        "description": "example",
        "error_message": "example",
        "id": 1,
        "name": "example",
        "notes": "example",
        "status": "example",
        "sync": true,
        "updated_at": 1,
        "upload_url": "example",
        "uuid": "example",
        "webhook_url": "example"
      }
    ],
    "next_page": 1,
    "page": 1,
    "total": 1
  }
}
```

### Remove tag from player

Take a tag off one player. The tag stays on other players.

**Inputs**

- Player (`player_id`, number, required): The Vidyard player (the video as viewers see and share it).
- Tag (`name`, text, required): The tag to remove.

**Outputs**

- `data` (object): The response from Vidyard.

**Example output**

```json
{
  "data": {}
}
```

### Remove video from playlist

Remove one chapter (a video's place in a playlist) from its player. The video itself is kept.

**Inputs**

- Chapter ID (`chapter_id`, number, required): The chapter's ID, as Add video to playlist or Get player returns it.

**Outputs**

- `data` (object): The response from Vidyard.

**Example output**

```json
{
  "data": {
    "created_at": 1,
    "id": 1,
    "player_id": 1,
    "position": 1,
    "updated_at": 1,
    "video_id": 1
  }
}
```

### Search players

Find players by name, description, tags or internal notes. A player must match every filter you fill in.

**Inputs**

- Name (`name`, text): Words in the player's name. Only the first 50 characters are used.
- Description (`description`, text): Text the player's description contains.
- Tags (`tags`, list): Only players with every one of these tags.
- Internal notes (`internal_notes`, text): Text the player's internal notes contain.
- Include subfolders (`include_descendants`, true/false): Include those in subfolders too.
- Limit (`limit`, number): How many players to return, up to 200. Leave empty for 50. From 1 to 200.
- Page (`page`, number): Which page to read, starting at 1. Use the next_page a previous step returned. At least 1.

**Outputs**

- `data` (object): The response from Vidyard.

**Example output**

```json
{
  "data": {
    "count": 1,
    "items": [
      {
        "created_at": 1,
        "description": "example",
        "duration": 1,
        "id": 1,
        "internal_notes": [
          "example"
        ],
        "name": "example",
        "organization_id": 1,
        "player_type": "example",
        "status": "example",
        "tags": [
          "example"
        ],
        "updated_at": 1,
        "uuid": "example"
      }
    ],
    "next_page": 1,
    "page": 1,
    "total": 1
  }
}
```

### Update player

Change a player's name, description, sharing settings or availability dates, or move it to another folder. Anything left empty stays as it is.

**Inputs**

- Player (`player_id`, number, required): The Vidyard player (the video as viewers see and share it).
- Name (`name`, text): The new name.
- Description (`description`, text): The new description.
- Sharing page (`sharing_page`, true/false): Turn the player's sharing page on or off.
- Sharing page comments (`sharing_page_comments`, true/false): Let viewers comment on the sharing page.
- Share button (`viral_sharing`, true/false): Show a share button so viewers can share the video on social networks and by email.
- Embed button (`embed_button`, true/false): Show the embed button on the player.
- Autoplay (`autoplay`, true/false): Start playing as soon as the page loads.
- Start muted (`mute_onload`, true/false): Start muted, with a prompt to click for sound.
- Allowed websites (`whitelisted_embed_domain`, text): Only allow the player on these websites, separated by commas, such as `*.example.com,example.org`.
- Available from (`release_date`, date and time): When the player becomes available to viewers.
- Available until (`expiry_date`, date and time): When the player stops being available to viewers.
- Move to folder (`folder_id`, number): Move the player and its video to this folder in the same account.

**Outputs**

- `data` (object): The response from Vidyard.

**Example output**

```json
{
  "data": {
    "access_setting": "example",
    "autoplay": true,
    "chapters_attributes": [
      {
        "created_at": 1,
        "id": 1,
        "player_id": 1,
        "position": 1,
        "updated_at": 1,
        "video_attributes": {
          "audio_gain": 1,
          "created_at": 1,
          "description": "example",
          "error_message": "example",
          "id": 1,
          "name": "example",
          "notes": "example",
          "status": "example",
          "sync": true,
          "updated_at": 1,
          "upload_url": "example",
          "uuid": "example",
          "webhook_url": "example"
        },
        "video_id": 1
      }
    ],
    "color": "example",
    "created_at": 1,
    "custom_sharing_link": "example",
    "description": "example",
    "embed_button": true,
    "expiry_date": 1,
    "height": 1,
    "id": 1,
    "length_in_seconds": 1,
    "mute_onload": true,
    "name": "example",
    "play_button": true,
    "release_date": 1,
    "sharing_page": true,
    "sharing_page_comments": true,
    "updated_at": 1,
    "uuid": "example",
    "viral_sharing": true,
    "viral_sharing_message": "example",
    "whitelisted_embed_domain": "example",
    "width": 1
  }
}
```

### Upload video from URL

Upload a video from a public web address. Vidyard creates a player for it and processes the video, which can take a few minutes.

**Inputs**

- Video file URL (`video_url`, text, required): A public web address of the video file, such as an .mp4 link.
- Name (`name`, text, required): The video's name.
- Description (`description`, text): A description shown with the video.

**Outputs**

- `data` (object): The response from Vidyard.

**Example output**

```json
{
  "data": {
    "access_setting": "example",
    "autoplay": true,
    "chapters_attributes": [
      {
        "created_at": 1,
        "id": 1,
        "player_id": 1,
        "position": 1,
        "updated_at": 1,
        "video_attributes": {
          "audio_gain": 1,
          "created_at": 1,
          "description": "example",
          "error_message": "example",
          "id": 1,
          "name": "example",
          "notes": "example",
          "status": "example",
          "sync": true,
          "updated_at": 1,
          "upload_url": "example",
          "uuid": "example",
          "webhook_url": "example"
        },
        "video_id": 1
      }
    ],
    "color": "example",
    "created_at": 1,
    "custom_sharing_link": "example",
    "description": "example",
    "embed_button": true,
    "expiry_date": 1,
    "height": 1,
    "id": 1,
    "length_in_seconds": 1,
    "mute_onload": true,
    "name": "example",
    "play_button": true,
    "release_date": 1,
    "sharing_page": true,
    "sharing_page_comments": true,
    "updated_at": 1,
    "uuid": "example",
    "viral_sharing": true,
    "viral_sharing_message": "example",
    "whitelisted_embed_domain": "example",
    "width": 1
  }
}
```
