# Submagic

> Generate captions, clips and edits for your videos.

App · 15 actions. Web page: https://docs.lodol.com/docs/integrations/submagic

## Actions

### Check health

Check whether the Submagic API is available.

**Inputs**: None.

**Outputs**

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

**Example output**

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

### Create magic clips

Generate short clips from a YouTube video.

**Inputs**

- Title (`title`, text, required): Title.
- Language (`language`, text, required): Language.
- Youtube URL (`youtube_url`, text, required): Youtube URL.
- Template (`template`, text): Template.
- Face tracking (`face_tracking`, true/false): Face tracking.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "downloadUrl": "example",
    "id": "example",
    "language": "example",
    "status": "example",
    "title": "example",
    "transcript": {}
  }
}
```

### Create project

Create a captioned video project from a public video URL.

**Inputs**

- Title (`title`, text, required): Title.
- Language (`language`, text, required): Language.
- Video URL (`video_url`, text, required): Video URL.
- Template (`template`, text): Template.
- Preset (`preset_id`, text): Preset ID.
- Auto export (`auto_export`, true/false): Auto export.
- Magic zooms (`magic_zooms`, true/false): Magic zooms.
- Magic brolls (`magic_brolls`, true/false): Magic brolls.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "downloadUrl": "example",
    "id": "example",
    "language": "example",
    "status": "example",
    "title": "example",
    "transcript": {}
  }
}
```

### Export project

Render a video project for download.

**Inputs**

- Project ID (`project_id`, text, required): Project ID.

**Outputs**

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

**Example output**

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

### Get brand kit

Get saved colors, fonts and logos for one brand.

**Inputs**

- Brand kit ID (`brand_kit_id`, text, required): Brand kit ID.

**Outputs**

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

**Example output**

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

### Get preset

Get one video preset.

**Inputs**

- Preset ID (`preset_id`, text, required): Preset ID.

**Outputs**

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

**Example output**

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

### Get project

Get a video project and check its processing status.

**Inputs**

- Project ID (`project_id`, text, required): Project ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "downloadUrl": "example",
    "id": "example",
    "language": "example",
    "status": "example",
    "title": "example",
    "transcript": {}
  }
}
```

### List brand kits

List your saved brand kits.

**Inputs**: None.

**Outputs**

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

**Example output**

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

### List hook title templates

List hook title styles.

**Inputs**: None.

**Outputs**

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

**Example output**

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

### List iris templates

List templates for the Iris video editor.

**Inputs**: None.

**Outputs**

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

**Example output**

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

### List languages

List supported transcription languages.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "languages": [
      {
        "code": "example",
        "name": "example"
      }
    ]
  }
}
```

### List media

List media in your Submagic library.

**Inputs**: None.

**Outputs**

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

**Example output**

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

### List presets

List your saved video presets.

**Inputs**

- Limit (`limit`, number): Limit. From 1 to 50.
- Cursor (`cursor`, text): Cursor.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "id": "example",
        "name": "example"
      }
    ],
    "pagination": {
      "hasMore": true,
      "nextCursor": "example"
    }
  }
}
```

### List published projects

List projects published to social platforms.

**Inputs**

- Platform (`platform`, text): Platform. One of: `youtube`, `tiktok`, `instagram`, `twitter`, `facebook`, `linkedin`.
- Start time (`start_time`, date and time): Start time.
- End time (`end_time`, date and time): End time.

**Outputs**

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

**Example output**

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

### List templates

List built-in video style templates.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "templates": [
      "example"
    ]
  }
}
```
