> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sequenzy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Publish to Public Archive

> List a sent email campaign in your public newsletter archive

Publish a sent email campaign to your [public newsletter archive](https://docs.sequenzy.com/api-reference/public-archive/get.md). The issue is listed as soon as the workspace archive is enabled with [Update Public Archive](https://docs.sequenzy.com/api-reference/public-archive/update.md).

Historical campaigns imported through the API with `status: "sent"` and a past `sentAt` can be published and are listed under that original date.

The issue's URL slug is generated from the email subject the first time you publish (merge tags are stripped, and a collision adds `-2`, `-3` and so on). Later calls reuse it, and so does republishing after [Unpublish from Public Archive](https://docs.sequenzy.com/api-reference/campaigns/public-archive-unpublish.md), so the URL never changes. The call is idempotent.

Archive pages are cached by a CDN for up to 60 seconds, so a newly published issue can take that long to show.

Sent email campaigns with a send date only. Drafts, scheduled, recurring and RSS templates, cancelled or rejected campaigns, sent campaigns with no send date, and non-email campaigns return `400`.

Requires the `campaigns:write` scope.

## Request

**campaignId** `string` *required*

Campaign ID.

This endpoint does not accept a request body.

```bash theme={null}
curl -X POST "https://api.sequenzy.com/api/v1/campaigns/camp_abc123/public-archive" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Response fields

**campaignId** `string`

The campaign ID.

**publicArchive** `boolean`

`true` after this call.

**archiveSlug** `string | null`

The issue's URL slug.

**archiveUrl** `string | null`

Where the issue is or will be listed at `https://sequenzy.com/lp/archive/{companyId}/{postSlug}`.

**archiveLive** `boolean`

Whether the archive is on and the campaign is published and sent. It is `false` while the archive is off. It does not tell you whether your account is in good standing, which the public page also needs.

The same three fields (`publicArchive`, `archiveUrl`, `archiveLive`) are returned on every campaign from [List Campaigns](https://docs.sequenzy.com/api-reference/campaigns/list.md) and [Get Campaign](https://docs.sequenzy.com/api-reference/campaigns/get.md).

```json 200 theme={null}
{
  "success": true,
  "campaignId": "camp_abc123",
  "publicArchive": true,
  "archiveSlug": "april-launch",
  "archiveUrl": "https://sequenzy.com/lp/archive/comp_abc123/april-launch",
  "archiveLive": true
}
```

```json 200 (archive off) theme={null}
{
  "success": true,
  "campaignId": "camp_abc123",
  "publicArchive": true,
  "archiveSlug": "april-launch",
  "archiveUrl": "https://sequenzy.com/lp/archive/comp_abc123/april-launch",
  "archiveLive": false
}
```

```json 400 theme={null}
{
  "success": false,
  "error": "Only sent email campaigns with a send date can be published to the archive."
}
```

```json 401 theme={null}
{
  "success": false,
  "error": "Unauthorized"
}
```

```json 403 theme={null}
{
  "success": false,
  "error": "API key is missing required scope: campaigns:write"
}
```

```json 404 theme={null}
{
  "success": false,
  "error": "Campaign not found"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.