# Transistor

> Manage podcasts, episodes and private subscribers, and track downloads.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/transistor

## Actions

### Add subscriber

Add a subscriber to a private podcast.

**Inputs**

- Show (`show_id`, text, required): Show ID.
- Email (`email`, text, required): Email.
- Skip welcome email (`skip_welcome_email`, true/false): Skip welcome email.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {},
      "id": "example",
      "relationships": {},
      "type": "example"
    }
  }
}
```

### Add subscribers

Add multiple subscribers to a private podcast.

**Inputs**

- Show (`show_id`, text, required): Show ID.
- Emails (`emails`, list, required): Emails.
- Skip welcome email (`skip_welcome_email`, true/false): Skip welcome email.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "attributes": {},
        "id": "example",
        "relationships": {},
        "type": "example"
      }
    ],
    "meta": {
      "currentPage": 1,
      "totalCount": 1,
      "totalPages": 1
    }
  }
}
```

### Create episode

Create a draft episode in a podcast.

**Inputs**

- Show (`show_id`, text, required): Show ID.
- Title (`title`, text): Title.
- Summary (`summary`, text): Summary.
- Description (`description`, text): Description.
- Author (`author`, text): Author.
- Audio URL (`audio_url`, text): Audio URL.
- Image URL (`image_url`, text): Image URL.
- Transcript text (`transcript_text`, text): Transcript text.
- Number (`number`, number): Number. At least 1.
- Season (`season`, number): Season. At least 1.
- Type (`type`, text): Type. One of: `full`, `trailer`, `bonus`.
- Explicit (`explicit`, true/false): Explicit.
- Video URL (`video_url`, text): Video URL.
- Youtube URL (`youtube_url`, text): Youtube URL.
- Increment number (`increment_number`, true/false): Increment number.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {},
      "id": "example",
      "relationships": {},
      "type": "example"
    }
  }
}
```

### Delete subscriber

Remove a subscriber from a private podcast.

**Inputs**

- Subscriber ID (`subscriber_id`, text, required): Subscriber ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {},
      "id": "example",
      "relationships": {},
      "type": "example"
    }
  }
}
```

### Get account

Get the Transistor account connected to your API key.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {},
      "id": "example",
      "relationships": {},
      "type": "example"
    }
  }
}
```

### Get all episode downloads

Get daily all episode downloads.

**Inputs**

- Show (`show_id`, text, required): Show ID.
- Start date (`start_date`, date): Start date.
- End date (`end_date`, date): End date.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {},
      "id": "example",
      "relationships": {},
      "type": "example"
    }
  }
}
```

### Get episode

Get an episode and its publishing details.

**Inputs**

- Episode ID (`episode_id`, text, required): Episode ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {},
      "id": "example",
      "relationships": {},
      "type": "example"
    }
  }
}
```

### Get episode downloads

Get daily episode downloads.

**Inputs**

- Episode ID (`episode_id`, text, required): Episode ID.
- Start date (`start_date`, date): Start date.
- End date (`end_date`, date): End date.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {},
      "id": "example",
      "relationships": {},
      "type": "example"
    }
  }
}
```

### Get show

Get a podcast by ID or slug.

**Inputs**

- Show (`show_id`, text, required): Show ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {},
      "id": "example",
      "relationships": {},
      "type": "example"
    }
  }
}
```

### Get show downloads

Get daily show downloads.

**Inputs**

- Show (`show_id`, text, required): Show ID.
- Start date (`start_date`, date): Start date.
- End date (`end_date`, date): End date.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {},
      "id": "example",
      "relationships": {},
      "type": "example"
    }
  }
}
```

### Get subscriber

Get a private subscriber by ID.

**Inputs**

- Subscriber ID (`subscriber_id`, text, required): Subscriber ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {},
      "id": "example",
      "relationships": {},
      "type": "example"
    }
  }
}
```

### List episodes

List episodes by show, search text and publishing status.

**Inputs**

- Show (`show_id`, text): Show ID.
- Query (`query`, text): Query.
- Status (`status`, text): Status. One of: `draft`, `scheduled`, `published`.
- Order (`order`, text): Order. One of: `asc`, `desc`.
- Page (`page`, number): Page. At least 0.
- Per page (`per_page`, number): Per page. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "attributes": {},
        "id": "example",
        "relationships": {},
        "type": "example"
      }
    ],
    "meta": {
      "currentPage": 1,
      "totalCount": 1,
      "totalPages": 1
    }
  }
}
```

### List shows

List podcasts you can access.

**Inputs**

- Page (`page`, number): Page. At least 0.
- Per page (`per_page`, number): Per page. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "attributes": {},
        "id": "example",
        "relationships": {},
        "type": "example"
      }
    ],
    "meta": {
      "currentPage": 1,
      "totalCount": 1,
      "totalPages": 1
    }
  }
}
```

### List subscribers

List subscribers to a private podcast.

**Inputs**

- Show (`show_id`, text, required): Show ID.
- Page (`page`, number): Page. At least 0.
- Per page (`per_page`, number): Per page. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "attributes": {},
        "id": "example",
        "relationships": {},
        "type": "example"
      }
    ],
    "meta": {
      "currentPage": 1,
      "totalCount": 1,
      "totalPages": 1
    }
  }
}
```

### List webhooks

List webhook subscriptions for a podcast.

**Inputs**

- Show (`show_id`, text, required): Show ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "attributes": {},
        "id": "example",
        "relationships": {},
        "type": "example"
      }
    ]
  }
}
```

### Set episode status

Publish or schedule an episode, or return it to draft.

**Inputs**

- Episode ID (`episode_id`, text, required): Episode ID.
- Status (`status`, text, required): Status. One of: `draft`, `scheduled`, `published`.
- Published at (`published_at`, date and time): Published at.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {},
      "id": "example",
      "relationships": {},
      "type": "example"
    }
  }
}
```

### Subscribe webhook

Subscribe a URL to events for a podcast.

**Inputs**

- Event name (`event_name`, text, required): Event name. One of: `episode_created` (Episode created), `episode_published` (Episode published), `subscriber_created` (Subscriber created), `subscriber_deleted` (Subscriber deleted).
- Show (`show_id`, text, required): Show ID.
- Url (`url`, text, required): Url.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {},
      "id": "example"
    }
  }
}
```

### Unsubscribe webhook

Remove a webhook subscription.

**Inputs**

- Webhook ID (`webhook_id`, text, required): Webhook ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {},
      "id": "example"
    }
  }
}
```

### Update episode

Update selected information on an episode.

**Inputs**

- Episode ID (`episode_id`, text, required): Episode ID.
- Title (`title`, text): Title.
- Summary (`summary`, text): Summary.
- Description (`description`, text): Description.
- Author (`author`, text): Author.
- Audio URL (`audio_url`, text): Audio URL.
- Image URL (`image_url`, text): Image URL.
- Transcript text (`transcript_text`, text): Transcript text.
- Number (`number`, number): Number. At least 1.
- Season (`season`, number): Season. At least 1.
- Type (`type`, text): Type. One of: `full`, `trailer`, `bonus`.
- Explicit (`explicit`, true/false): Explicit.
- Video URL (`video_url`, text): Video URL.
- Youtube URL (`youtube_url`, text): Youtube URL.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {},
      "id": "example",
      "relationships": {},
      "type": "example"
    }
  }
}
```

### Update subscriber

Change a private subscriber’s email address.

**Inputs**

- Subscriber ID (`subscriber_id`, text, required): Subscriber ID.
- Email (`email`, text, required): Email.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {},
      "id": "example",
      "relationships": {},
      "type": "example"
    }
  }
}
```
