# Shotstack

> Render videos from edits and templates, and ingest media into Shotstack.

App · 12 actions. Web page: https://docs.lodol.com/docs/integrations/shotstack

## Actions

### Create a video template

Save a Shotstack edit as a reusable video template.

**Inputs**

- Name (`name`, text, required): Name to show for the template.
- Template (`template`, object, required): Shotstack edit with its timeline and output settings.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "response": {
      "id": "example",
      "name": "example",
      "template": {}
    },
    "success": true
  }
}
```

### Delete a video template

Delete a saved template from your Shotstack environment.

**Inputs**

- Template (`template_id`, text, required): Template id.

**Outputs**

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

**Example output**

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

### Get a media source

Check ingest status and retrieve details about a media source.

**Inputs**

- Source ID (`source_id`, text, required): Source id.

**Outputs**

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

**Example output**

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

### Get a video template

Read the edit and merge fields for a template.

**Inputs**

- Template (`template_id`, text, required): Template id.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "response": {
      "id": "example",
      "name": "example",
      "template": {}
    },
    "success": true
  }
}
```

### Get render status

Check render progress and find the video URL when it is ready.

**Inputs**

- Render ID (`render_id`, text, required): Render id.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "message": "example",
    "response": {
      "id": "example",
      "status": "example",
      "url": "example"
    },
    "success": true
  }
}
```

### Import a media source

Ingest a publicly accessible video, audio or image by URL.

**Inputs**

- URL (`url`, text, required): Public URL of the source media.

**Outputs**

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

**Example output**

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

### List generation models

Browse models for generating media in Shotstack.

**Inputs**: None.

**Outputs**

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

**Example output**

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

### List media sources

Browse media previously imported into Shotstack.

**Inputs**: None.

**Outputs**

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

**Example output**

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

### List video templates

Browse video templates in your Shotstack environment.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "response": [
      {
        "id": "example",
        "name": "example"
      }
    ],
    "success": true
  }
}
```

### Rename a video template

Change the name while retaining the existing edit and merge fields.

**Inputs**

- Template (`template_id`, text, required): Template id.
- Name (`name`, text, required): New name for the template.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "response": {
      "id": "example",
      "name": "example",
      "template": {}
    },
    "success": true
  }
}
```

### Render a video

Start a render from a Shotstack timeline and output settings.

**Inputs**

- Timeline (`timeline`, object, required): Shotstack tracks and clips.
- Output (`output`, object, required): Output settings, including the format and resolution.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "message": "example",
    "response": {
      "id": "example",
      "status": "example",
      "url": "example"
    },
    "success": true
  }
}
```

### Render a video template

Start rendering an existing template with optional merge values.

**Inputs**

- Template (`template_id`, text, required): Video template to render.
- Merge (`merge`, list): Pairs of template placeholders and values.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "message": "example",
    "response": {
      "id": "example",
      "status": "example",
      "url": "example"
    },
    "success": true
  }
}
```
