# Prezly

> Write and publish newsroom stories, keep your media contacts and log press coverage in Prezly.

App · 26 actions. Web page: https://docs.lodol.com/docs/integrations/prezly

## Actions

### Create contact

Add a person or organisation to your Prezly contacts.

**Inputs**

- Type (`contact_type`, text, required): Whether the contact is a person or an organisation. One of: `person`, `organisation`.
- First name (`first_name`, text): The person's first name.
- Last name (`last_name`, text): The person's last name.
- Organisation name (`company_name`, text): The organisation's name. Needed when the contact is an organisation.
- Job title (`function_name`, text): The person's job title.
- Email addresses (`emails`, list): The contact's email addresses.
- Works for (`organisations`, list): Names of the organisations the person works for.
- Tags (`tags`, list): Tags to give the contact.
- Languages (`languages`, list): Two-letter codes of the languages the contact uses, such as en or fr.
- Media types (`medium_types`, list): The kinds of media the contact works in. One or more of: `wire`, `print`, `radio`, `photo`, `newspaper`, `magazine`, `tv`, `blog`, `vlog`, `social`, and 7 more.
- City (`city`, text): The city the contact is in.
- Country (`country`, text): The country the contact is in.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "contact": {
      "address": {
        "city": "Ghent",
        "country": "BE",
        "region": "East Flanders"
      },
      "company_name": "",
      "contact_type": "person",
      "coverage_number": 2,
      "created_at": "2026-11-30T09:00:00+00:00",
      "display_name": "Jane Reporter",
      "emails": [
        "jane@news.example"
      ],
      "first_name": "Jane",
      "function_name": "Tech editor",
      "id": 1234,
      "is_bounced": false,
      "is_unsubscribed": false,
      "last_name": "Reporter",
      "medium_types": [
        "web"
      ],
      "modified_at": "2026-11-30T09:30:00+00:00",
      "organisations": [
        {
          "display_name": "Daily News",
          "id": 99
        }
      ],
      "primary_email": "jane@news.example",
      "tags": [
        "tech"
      ]
    }
  }
}
```

### Create story

Create a draft story in a newsroom from a title and HTML text.

**Inputs**

- Newsroom (`newsroom`, text, required): The newsroom to create the story in.
- Title (`title`, text, required): The story's title.
- Subtitle (`subtitle`, text): The story's subtitle.
- Text (`html`, text, required): The story's text as HTML, such as <p>Our news</p>. Images in it are uploaded to Prezly.
- Language (`culture`, text): The story's language code, such as en or en_US. Leave empty for the newsroom's default.
- Visibility (`visibility`, text): Who will be able to see the story once it is published. One of: `public`, `embargo` (Under embargo), `private`, `confidential`.
- Category IDs (`categories`, list): IDs of newsroom categories to file it under, from List newsroom categories.
- Tags (`tags`, list): Tags to give the story.
- Web address slug (`custom_slug`, text): The last part of the story's web address, such as acme-opens-office.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "story": {
      "author": {
        "display_name": "Jane Doe",
        "email": "jane@acme.example",
        "id": 42
      },
      "categories": [
        {
          "display_name": "Company news",
          "id": 7
        }
      ],
      "created_at": "2026-11-30T09:00:00+00:00",
      "is_draft": true,
      "is_published": false,
      "is_scheduled": false,
      "newsroom": {
        "display_name": "Acme Newsroom",
        "uuid": "9e0297b0-f37f-4492-a7c4-d98fffe86760"
      },
      "oembed": {
        "url": "https://acme.prezly.com/acme-opens-new-office"
      },
      "published_at": "2026-11-30T10:00:00+00:00",
      "scheduled_at": "2026-12-01T09:00:00+00:00",
      "slug": "acme-opens-new-office",
      "status": "draft",
      "subtitle": "The office opens in Ghent in March.",
      "thumbnail_url": "https://cdn.uc.assets.prezly.com/thumb.png",
      "title": "Acme opens new office",
      "updated_at": "2026-11-30T09:30:00+00:00",
      "uuid": "e6d26a4e-6e4c-4b5a-8d6a-0f2c3a1b9d10",
      "visibility": "public"
    }
  }
}
```

### Delete contact

Delete a contact from Prezly.

**Inputs**

- Contact ID (`id`, text, required): The contact's ID, from List contacts or Create contact.

**Outputs**

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

**Example output**

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

### Delete coverage

Delete a coverage entry.

**Inputs**

- Coverage ID (`id`, text, required): The coverage entry's ID, from List coverage or Log coverage.

**Outputs**

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

**Example output**

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

### Get campaign

Get one email campaign's details and results.

**Inputs**

- Campaign ID (`id`, number, required): The campaign's ID, from List campaigns.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "campaign": {
      "author": {
        "display_name": "Jane Doe",
        "email": "jane@acme.example",
        "id": 42
      },
      "created_at": "2026-11-29T09:00:00+00:00",
      "id": 501,
      "lifecycle_status": "sent",
      "newsroom": {
        "display_name": "Acme Newsroom",
        "uuid": "9e0297b0-f37f-4492-a7c4-d98fffe86760"
      },
      "recipients_number": 120,
      "scheduled_at": "2026-11-30T08:00:00+00:00",
      "sent_at": "2026-11-30T08:00:00+00:00",
      "stats": {
        "bounces": 2,
        "clicks": 20,
        "clicks_rate": 0.17,
        "delivered": 118,
        "opens": 60,
        "opens_rate": 0.5,
        "recipients": 120,
        "replies": 3
      },
      "subject": "Acme opens new office",
      "updated_at": "2026-11-30T09:00:00+00:00"
    }
  }
}
```

### Get contact

Get one contact's details.

**Inputs**

- Contact ID (`id`, text, required): The contact's ID, from List contacts or Create contact.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "contact": {
      "address": {
        "city": "Ghent",
        "country": "BE",
        "region": "East Flanders"
      },
      "company_name": "",
      "contact_type": "person",
      "coverage_number": 2,
      "created_at": "2026-11-30T09:00:00+00:00",
      "display_name": "Jane Reporter",
      "emails": [
        "jane@news.example"
      ],
      "first_name": "Jane",
      "function_name": "Tech editor",
      "id": 1234,
      "is_bounced": false,
      "is_unsubscribed": false,
      "last_name": "Reporter",
      "medium_types": [
        "web"
      ],
      "modified_at": "2026-11-30T09:30:00+00:00",
      "organisations": [
        {
          "display_name": "Daily News",
          "id": 99
        }
      ],
      "primary_email": "jane@news.example",
      "tags": [
        "tech"
      ]
    }
  }
}
```

### Get coverage

Get one coverage entry's details.

**Inputs**

- Coverage ID (`id`, text, required): The coverage entry's ID, from List coverage or Log coverage.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "coverage": {
      "created_at": "2026-11-30T09:00:00+00:00",
      "display_name": "Acme opens new office - Daily News",
      "headline": "Acme opens new office",
      "newsroom": {
        "display_name": "Acme Newsroom",
        "uuid": "9e0297b0-f37f-4492-a7c4-d98fffe86760"
      },
      "published_at": "2026-11-30T08:00:00+00:00",
      "sentiment": "positive",
      "type": "online",
      "updated_at": "2026-11-30T09:30:00+00:00",
      "url": "https://news.example/acme-office",
      "user": {
        "display_name": "Jane Doe",
        "id": 42
      },
      "uuid": "0b6f3d5c-2b8e-4c7a-9a51-6f1d2e3c4b5a",
      "view_url": "https://news.example/acme-office"
    }
  }
}
```

### Get newsroom

Get one newsroom's details.

**Inputs**

- Newsroom (`newsroom_id`, text, required): The newsroom. Pick one, or use a newsroom ID from List newsrooms.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "newsroom": {
      "campaigns_number": 3,
      "display_name": "Acme Newsroom",
      "domain": "acme.prezly.com",
      "is_active": true,
      "is_archived": false,
      "is_hub": false,
      "is_multilingual": false,
      "is_online": true,
      "name": "Acme",
      "stories_number": 12,
      "subdomain": "acme",
      "timezone": "europe/brussels",
      "url": "https://acme.prezly.com",
      "uuid": "9e0297b0-f37f-4492-a7c4-d98fffe86760"
    }
  }
}
```

### Get pitch

Get one email pitch's details and results.

**Inputs**

- Pitch ID (`id`, number, required): The pitch's ID, from List pitches.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "pitch": {
      "author": {
        "display_name": "Jane Doe",
        "email": "jane@acme.example",
        "id": 42
      },
      "created_at": "2026-11-29T09:00:00+00:00",
      "from": {
        "email_address": "jane@acme.example",
        "name": "Jane Doe"
      },
      "id": 77,
      "is_sent": true,
      "sent_at": "2026-11-30T08:00:00+00:00",
      "stats": {
        "bounces": 0,
        "clicks": 0,
        "delivered": 1,
        "opens": 1,
        "recipients": 1
      },
      "status": "sent",
      "subject": "Story idea: Acme's new office",
      "updated_at": "2026-11-30T09:00:00+00:00"
    }
  }
}
```

### Get story

Get one story's details.

**Inputs**

- Story ID (`story_id`, text, required): The story's ID, from List stories or Create story.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "story": {
      "author": {
        "display_name": "Jane Doe",
        "email": "jane@acme.example",
        "id": 42
      },
      "categories": [
        {
          "display_name": "Company news",
          "id": 7
        }
      ],
      "created_at": "2026-11-30T09:00:00+00:00",
      "is_draft": true,
      "is_published": false,
      "is_scheduled": false,
      "newsroom": {
        "display_name": "Acme Newsroom",
        "uuid": "9e0297b0-f37f-4492-a7c4-d98fffe86760"
      },
      "oembed": {
        "url": "https://acme.prezly.com/acme-opens-new-office"
      },
      "published_at": "2026-11-30T10:00:00+00:00",
      "scheduled_at": "2026-12-01T09:00:00+00:00",
      "slug": "acme-opens-new-office",
      "status": "draft",
      "subtitle": "The office opens in Ghent in March.",
      "thumbnail_url": "https://cdn.uc.assets.prezly.com/thumb.png",
      "title": "Acme opens new office",
      "updated_at": "2026-11-30T09:30:00+00:00",
      "uuid": "e6d26a4e-6e4c-4b5a-8d6a-0f2c3a1b9d10",
      "visibility": "public"
    }
  }
}
```

### List campaigns

List your email campaigns with how each did.

**Inputs**

- Page size (`limit`, number): How many records a page holds, from 1 to 1000. Prezly's default is 20. From 1 to 1000.
- Skip (`offset`, number): How many records to skip, to read later pages. Start at 0. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "campaigns": [
      {
        "author": {
          "display_name": "Jane Doe",
          "email": "jane@acme.example",
          "id": 42
        },
        "created_at": "2026-11-29T09:00:00+00:00",
        "id": 501,
        "lifecycle_status": "sent",
        "newsroom": {
          "display_name": "Acme Newsroom",
          "uuid": "9e0297b0-f37f-4492-a7c4-d98fffe86760"
        },
        "recipients_number": 120,
        "scheduled_at": "2026-11-30T08:00:00+00:00",
        "sent_at": "2026-11-30T08:00:00+00:00",
        "stats": {
          "bounces": 2,
          "clicks": 20,
          "clicks_rate": 0.17,
          "delivered": 118,
          "opens": 60,
          "opens_rate": 0.5,
          "recipients": 120,
          "replies": 3
        },
        "subject": "Acme opens new office",
        "updated_at": "2026-11-30T09:00:00+00:00"
      }
    ],
    "pagination": {
      "limit": 20,
      "matched_records_number": 1,
      "offset": 0,
      "total_records_number": 1
    }
  }
}
```

### List contacts

List the journalists, people and organisations in your Prezly contacts.

**Inputs**

- Search (`search`, text): Only records matching these words.
- Sort by (`sort`, text): The order to list contacts in. Leave empty for Prezly's own order. One of: `-created_at` (Newest first), `+created_at` (Oldest first), `-modified_at` (Recently changed first), `+display_name` (Name, A to Z), `-last_coverage_at` (Most recent coverage first).
- Page size (`limit`, number): How many records a page holds, from 1 to 1000. Prezly's default is 20. From 1 to 1000.
- Skip (`offset`, number): How many records to skip, to read later pages. Start at 0. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "contacts": [
      {
        "address": {
          "city": "Ghent",
          "country": "BE",
          "region": "East Flanders"
        },
        "company_name": "",
        "contact_type": "person",
        "coverage_number": 2,
        "created_at": "2026-11-30T09:00:00+00:00",
        "display_name": "Jane Reporter",
        "emails": [
          "jane@news.example"
        ],
        "first_name": "Jane",
        "function_name": "Tech editor",
        "id": 1234,
        "is_bounced": false,
        "is_unsubscribed": false,
        "last_name": "Reporter",
        "medium_types": [
          "web"
        ],
        "modified_at": "2026-11-30T09:30:00+00:00",
        "organisations": [
          {
            "display_name": "Daily News",
            "id": 99
          }
        ],
        "primary_email": "jane@news.example",
        "tags": [
          "tech"
        ]
      }
    ],
    "pagination": {
      "limit": 20,
      "matched_records_number": 1,
      "offset": 0,
      "total_records_number": 1
    }
  }
}
```

### List coverage

List the press coverage logged in Prezly.

**Inputs**

- Page size (`limit`, number): How many records a page holds, from 1 to 1000. Prezly's default is 20. From 1 to 1000.
- Skip (`offset`, number): How many records to skip, to read later pages. Start at 0. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "coverage": [
      {
        "created_at": "2026-11-30T09:00:00+00:00",
        "display_name": "Acme opens new office - Daily News",
        "headline": "Acme opens new office",
        "newsroom": {
          "display_name": "Acme Newsroom",
          "uuid": "9e0297b0-f37f-4492-a7c4-d98fffe86760"
        },
        "published_at": "2026-11-30T08:00:00+00:00",
        "sentiment": "positive",
        "type": "online",
        "updated_at": "2026-11-30T09:30:00+00:00",
        "url": "https://news.example/acme-office",
        "user": {
          "display_name": "Jane Doe",
          "id": 42
        },
        "uuid": "0b6f3d5c-2b8e-4c7a-9a51-6f1d2e3c4b5a",
        "view_url": "https://news.example/acme-office"
      }
    ],
    "pagination": {
      "limit": 20,
      "matched_records_number": 1,
      "offset": 0,
      "total_records_number": 1
    }
  }
}
```

### List newsroom categories

List the categories stories can be filed under in a newsroom.

**Inputs**

- Newsroom (`newsroom_id`, text, required): The newsroom. Pick one, or use a newsroom ID from List newsrooms.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "categories": [
      {
        "display_description": "News about Acme.",
        "display_name": "Company news",
        "id": 7,
        "stories_number": 4
      }
    ]
  }
}
```

### List newsroom subscribers

List the people subscribed to a newsroom's updates, newest first.

**Inputs**

- Newsroom (`newsroom_id`, text, required): The newsroom. Pick one, or use a newsroom ID from List newsrooms.
- Search (`search`, text): Only records matching these words.
- Page size (`limit`, number): How many records a page holds, from 1 to 1000. Prezly's default is 20. From 1 to 1000.
- Skip (`offset`, number): How many records to skip, to read later pages. Start at 0. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "pagination": {
      "limit": 20,
      "matched_records_number": 1,
      "offset": 0,
      "total_records_number": 1
    },
    "subscriptions": [
      {
        "created_at": "2026-11-30T09:00:00+00:00",
        "is_active": true,
        "subscriber": {
          "email_address": "reader@example.com",
          "first_name": "Sam",
          "id": "sub_1",
          "last_name": "Reader"
        }
      }
    ]
  }
}
```

### List newsrooms

List the newsrooms you can reach in Prezly.

**Inputs**

- Search (`search`, text): Only records matching these words.
- Page size (`limit`, number): How many records a page holds, from 1 to 1000. Prezly's default is 20. From 1 to 1000.
- Skip (`offset`, number): How many records to skip, to read later pages. Start at 0. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "newsrooms": [
      {
        "campaigns_number": 3,
        "display_name": "Acme Newsroom",
        "domain": "acme.prezly.com",
        "is_active": true,
        "is_archived": false,
        "is_hub": false,
        "is_multilingual": false,
        "is_online": true,
        "name": "Acme",
        "stories_number": 12,
        "subdomain": "acme",
        "timezone": "europe/brussels",
        "url": "https://acme.prezly.com",
        "uuid": "9e0297b0-f37f-4492-a7c4-d98fffe86760"
      }
    ],
    "pagination": {
      "limit": 20,
      "matched_records_number": 1,
      "offset": 0,
      "total_records_number": 1
    }
  }
}
```

### List pitches

List the one-to-one email pitches sent to journalists.

**Inputs**

- Search (`search`, text): Only records matching these words.
- Page size (`limit`, number): How many pitches a page holds, from 1 to 100. Prezly's default is 20. From 1 to 100.
- Skip (`offset`, number): How many records to skip, to read later pages. Start at 0. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "pagination": {
      "limit": 20,
      "offset": 0
    },
    "pitches": [
      {
        "author": {
          "display_name": "Jane Doe",
          "email": "jane@acme.example",
          "id": 42
        },
        "created_at": "2026-11-29T09:00:00+00:00",
        "from": {
          "email_address": "jane@acme.example",
          "name": "Jane Doe"
        },
        "id": 77,
        "is_sent": true,
        "sent_at": "2026-11-30T08:00:00+00:00",
        "stats": {
          "bounces": 0,
          "clicks": 0,
          "delivered": 1,
          "opens": 1,
          "recipients": 1
        },
        "status": "sent",
        "subject": "Story idea: Acme's new office",
        "updated_at": "2026-11-30T09:00:00+00:00"
      }
    ]
  }
}
```

### List stories

List stories and press releases across your newsrooms.

**Inputs**

- Search (`search`, text): Only records matching these words.
- Sort by (`sort`, text): The order to list stories in. Leave empty for Prezly's own order. One of: `-created_at` (Newest first), `+created_at` (Oldest first), `-published_at` (Recently published first), `-modified_at` (Recently changed first), `+title` (Title, A to Z).
- Page size (`limit`, number): How many records a page holds, from 1 to 1000. Prezly's default is 20. From 1 to 1000.
- Skip (`offset`, number): How many records to skip, to read later pages. Start at 0. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "pagination": {
      "limit": 20,
      "matched_records_number": 1,
      "offset": 0,
      "total_records_number": 1
    },
    "stories": [
      {
        "author": {
          "display_name": "Jane Doe",
          "email": "jane@acme.example",
          "id": 42
        },
        "categories": [
          {
            "display_name": "Company news",
            "id": 7
          }
        ],
        "created_at": "2026-11-30T09:00:00+00:00",
        "is_draft": true,
        "is_published": false,
        "is_scheduled": false,
        "newsroom": {
          "display_name": "Acme Newsroom",
          "uuid": "9e0297b0-f37f-4492-a7c4-d98fffe86760"
        },
        "oembed": {
          "url": "https://acme.prezly.com/acme-opens-new-office"
        },
        "published_at": "2026-11-30T10:00:00+00:00",
        "scheduled_at": "2026-12-01T09:00:00+00:00",
        "slug": "acme-opens-new-office",
        "status": "draft",
        "subtitle": "The office opens in Ghent in March.",
        "thumbnail_url": "https://cdn.uc.assets.prezly.com/thumb.png",
        "title": "Acme opens new office",
        "updated_at": "2026-11-30T09:30:00+00:00",
        "uuid": "e6d26a4e-6e4c-4b5a-8d6a-0f2c3a1b9d10",
        "visibility": "public"
      }
    ]
  }
}
```

### Log coverage

Log an article or broadcast that covered you.

**Inputs**

- Type (`type`, text, required): Where the coverage appeared. One of: `online`, `social` (Social media), `print`, `radio`, `television`.
- Web address (`url`, text): The article's web address.
- Headline (`headline`, text): The article's headline.
- Author (`author`, text): The journalist's name. Prezly finds or adds them as a contact.
- Outlet (`organisation`, text): The outlet's name. Prezly finds or adds it as a contact.
- Sentiment (`sentiment`, text): The coverage's tone. One of: `positive`, `neutral`, `negative`.
- Newsroom (`newsroom`, text): The newsroom the coverage is for.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "coverage": {
      "created_at": "2026-11-30T09:00:00+00:00",
      "display_name": "Acme opens new office - Daily News",
      "headline": "Acme opens new office",
      "newsroom": {
        "display_name": "Acme Newsroom",
        "uuid": "9e0297b0-f37f-4492-a7c4-d98fffe86760"
      },
      "published_at": "2026-11-30T08:00:00+00:00",
      "sentiment": "positive",
      "type": "online",
      "updated_at": "2026-11-30T09:30:00+00:00",
      "url": "https://news.example/acme-office",
      "user": {
        "display_name": "Jane Doe",
        "id": 42
      },
      "uuid": "0b6f3d5c-2b8e-4c7a-9a51-6f1d2e3c4b5a",
      "view_url": "https://news.example/acme-office"
    }
  }
}
```

### Publish story

Publish a story in its newsroom now.

**Inputs**

- Story ID (`story_id`, text, required): The story's ID, from List stories or Create story.
- Visibility (`visibility`, text): Who can see the published story. One of: `public`, `private`, `confidential`.
- Publication date (`published_at`, date and time): The date and time to show as the story's publication date. Leave empty for now.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "story": {
      "author": {
        "display_name": "Jane Doe",
        "email": "jane@acme.example",
        "id": 42
      },
      "categories": [
        {
          "display_name": "Company news",
          "id": 7
        }
      ],
      "created_at": "2026-11-30T09:00:00+00:00",
      "is_draft": true,
      "is_published": false,
      "is_scheduled": false,
      "newsroom": {
        "display_name": "Acme Newsroom",
        "uuid": "9e0297b0-f37f-4492-a7c4-d98fffe86760"
      },
      "oembed": {
        "url": "https://acme.prezly.com/acme-opens-new-office"
      },
      "published_at": "2026-11-30T10:00:00+00:00",
      "scheduled_at": "2026-12-01T09:00:00+00:00",
      "slug": "acme-opens-new-office",
      "status": "draft",
      "subtitle": "The office opens in Ghent in March.",
      "thumbnail_url": "https://cdn.uc.assets.prezly.com/thumb.png",
      "title": "Acme opens new office",
      "updated_at": "2026-11-30T09:30:00+00:00",
      "uuid": "e6d26a4e-6e4c-4b5a-8d6a-0f2c3a1b9d10",
      "visibility": "public"
    }
  }
}
```

### Replace story text

Replace a story's title and text with new HTML.

**Inputs**

- Story ID (`story_id`, text, required): The story's ID, from List stories or Create story.
- Text (`html`, text, required): The story's new text as HTML. Images in it are uploaded to Prezly.
- Title (`title`, text): The story's title, used when the HTML doesn't start with a heading.
- Subtitle (`subtitle`, text): The story's subtitle.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "story": {
      "author": {
        "display_name": "Jane Doe",
        "email": "jane@acme.example",
        "id": 42
      },
      "categories": [
        {
          "display_name": "Company news",
          "id": 7
        }
      ],
      "created_at": "2026-11-30T09:00:00+00:00",
      "is_draft": true,
      "is_published": false,
      "is_scheduled": false,
      "newsroom": {
        "display_name": "Acme Newsroom",
        "uuid": "9e0297b0-f37f-4492-a7c4-d98fffe86760"
      },
      "oembed": {
        "url": "https://acme.prezly.com/acme-opens-new-office"
      },
      "published_at": "2026-11-30T10:00:00+00:00",
      "scheduled_at": "2026-12-01T09:00:00+00:00",
      "slug": "acme-opens-new-office",
      "status": "draft",
      "subtitle": "The office opens in Ghent in March.",
      "thumbnail_url": "https://cdn.uc.assets.prezly.com/thumb.png",
      "title": "Acme opens new office",
      "updated_at": "2026-11-30T09:30:00+00:00",
      "uuid": "e6d26a4e-6e4c-4b5a-8d6a-0f2c3a1b9d10",
      "visibility": "public"
    }
  }
}
```

### Schedule story

Set a story to publish at a later time.

**Inputs**

- Story ID (`story_id`, text, required): The story's ID, from List stories or Create story.
- Publish at (`publish_at`, date and time, required): When to publish the story.
- Visibility (`visibility`, text): Public, or under embargo until the time you set. One of: `public`, `embargo` (Under embargo).

**Outputs**

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

**Example output**

```json
{
  "data": {
    "story": {
      "author": {
        "display_name": "Jane Doe",
        "email": "jane@acme.example",
        "id": 42
      },
      "categories": [
        {
          "display_name": "Company news",
          "id": 7
        }
      ],
      "created_at": "2026-11-30T09:00:00+00:00",
      "is_draft": true,
      "is_published": false,
      "is_scheduled": false,
      "newsroom": {
        "display_name": "Acme Newsroom",
        "uuid": "9e0297b0-f37f-4492-a7c4-d98fffe86760"
      },
      "oembed": {
        "url": "https://acme.prezly.com/acme-opens-new-office"
      },
      "published_at": "2026-11-30T10:00:00+00:00",
      "scheduled_at": "2026-12-01T09:00:00+00:00",
      "slug": "acme-opens-new-office",
      "status": "draft",
      "subtitle": "The office opens in Ghent in March.",
      "thumbnail_url": "https://cdn.uc.assets.prezly.com/thumb.png",
      "title": "Acme opens new office",
      "updated_at": "2026-11-30T09:30:00+00:00",
      "uuid": "e6d26a4e-6e4c-4b5a-8d6a-0f2c3a1b9d10",
      "visibility": "public"
    }
  }
}
```

### Subscribe to newsroom

Subscribe an email address to a newsroom's updates, without a confirmation email.

**Inputs**

- Newsroom (`newsroom_id`, text, required): The newsroom. Pick one, or use a newsroom ID from List newsrooms.
- Email (`email_address`, text, required): The email address to subscribe.
- Language (`locale`, text): The language code of the updates they get, such as en.

**Outputs**

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

**Example output**

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

### Unpublish story

Take a published story back to a draft.

**Inputs**

- Story ID (`story_id`, text, required): The story's ID, from List stories or Create story.
- Visibility (`visibility`, text): The visibility the draft keeps. One of: `public`, `private`, `confidential`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "story": {
      "author": {
        "display_name": "Jane Doe",
        "email": "jane@acme.example",
        "id": 42
      },
      "categories": [
        {
          "display_name": "Company news",
          "id": 7
        }
      ],
      "created_at": "2026-11-30T09:00:00+00:00",
      "is_draft": true,
      "is_published": false,
      "is_scheduled": false,
      "newsroom": {
        "display_name": "Acme Newsroom",
        "uuid": "9e0297b0-f37f-4492-a7c4-d98fffe86760"
      },
      "oembed": {
        "url": "https://acme.prezly.com/acme-opens-new-office"
      },
      "published_at": "2026-11-30T10:00:00+00:00",
      "scheduled_at": "2026-12-01T09:00:00+00:00",
      "slug": "acme-opens-new-office",
      "status": "draft",
      "subtitle": "The office opens in Ghent in March.",
      "thumbnail_url": "https://cdn.uc.assets.prezly.com/thumb.png",
      "title": "Acme opens new office",
      "updated_at": "2026-11-30T09:30:00+00:00",
      "uuid": "e6d26a4e-6e4c-4b5a-8d6a-0f2c3a1b9d10",
      "visibility": "public"
    }
  }
}
```

### Update contact

Change a contact's details.

**Inputs**

- Contact ID (`id`, text, required): The contact's ID, from List contacts or Create contact.
- First name (`first_name`, text): The person's first name.
- Last name (`last_name`, text): The person's last name.
- Organisation name (`company_name`, text): The organisation's name. Needed when the contact is an organisation.
- Job title (`function_name`, text): The person's job title.
- Email addresses (`emails`, list): The contact's email addresses.
- Works for (`organisations`, list): Names of the organisations the person works for.
- Tags (`tags`, list): The contact's tags. This replaces the tags it has.
- Languages (`languages`, list): Two-letter codes of the languages the contact uses, such as en or fr.
- Media types (`medium_types`, list): The kinds of media the contact works in. One or more of: `wire`, `print`, `radio`, `photo`, `newspaper`, `magazine`, `tv`, `blog`, `vlog`, `social`, and 7 more.
- City (`city`, text): The city the contact is in.
- Country (`country`, text): The country the contact is in.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "contact": {
      "address": {
        "city": "Ghent",
        "country": "BE",
        "region": "East Flanders"
      },
      "company_name": "",
      "contact_type": "person",
      "coverage_number": 2,
      "created_at": "2026-11-30T09:00:00+00:00",
      "display_name": "Jane Reporter",
      "emails": [
        "jane@news.example"
      ],
      "first_name": "Jane",
      "function_name": "Tech editor",
      "id": 1234,
      "is_bounced": false,
      "is_unsubscribed": false,
      "last_name": "Reporter",
      "medium_types": [
        "web"
      ],
      "modified_at": "2026-11-30T09:30:00+00:00",
      "organisations": [
        {
          "display_name": "Daily News",
          "id": 99
        }
      ],
      "primary_email": "jane@news.example",
      "tags": [
        "tech"
      ]
    }
  }
}
```

### Update story

Change a story's language, visibility, categories, tags or web address.

**Inputs**

- Story ID (`story_id`, text, required): The story's ID, from List stories or Create story.
- Language (`culture`, text): The story's language code, such as en or en_US.
- Visibility (`visibility`, text): Who can see the story. One of: `public`, `embargo` (Under embargo), `private`, `confidential`.
- Category IDs (`categories`, list): IDs of newsroom categories to file it under. This replaces its categories.
- Tags (`tags`, list): The story's tags. This replaces the tags it has.
- Web address slug (`custom_slug`, text): The last part of the story's web address.
- Social media text (`social_text`, text): The text shown when the story is shared on social media.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "story": {
      "author": {
        "display_name": "Jane Doe",
        "email": "jane@acme.example",
        "id": 42
      },
      "categories": [
        {
          "display_name": "Company news",
          "id": 7
        }
      ],
      "created_at": "2026-11-30T09:00:00+00:00",
      "is_draft": true,
      "is_published": false,
      "is_scheduled": false,
      "newsroom": {
        "display_name": "Acme Newsroom",
        "uuid": "9e0297b0-f37f-4492-a7c4-d98fffe86760"
      },
      "oembed": {
        "url": "https://acme.prezly.com/acme-opens-new-office"
      },
      "published_at": "2026-11-30T10:00:00+00:00",
      "scheduled_at": "2026-12-01T09:00:00+00:00",
      "slug": "acme-opens-new-office",
      "status": "draft",
      "subtitle": "The office opens in Ghent in March.",
      "thumbnail_url": "https://cdn.uc.assets.prezly.com/thumb.png",
      "title": "Acme opens new office",
      "updated_at": "2026-11-30T09:30:00+00:00",
      "uuid": "e6d26a4e-6e4c-4b5a-8d6a-0f2c3a1b9d10",
      "visibility": "public"
    }
  }
}
```
