---
title: "Restore an archived topic."
method: POST
path: "/topics/{topicId}/restore"
tags: ["Topics"]
---

# Restore an archived topic.

`POST /topics/{topicId}/restore`

## Request

- Base URL: `https://api.maildroppa.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.maildroppa.com/topics/{topicId}/restore`
- Auth: API key in header `X-API-Key`

Reactivates the topic; the response names how many subscriptions become effective again.

## Path parameters

- `topicId` string, uuid, required

## Response `200`

Topic restored.

- TopicRestore: Restored topic with the number of subscriptions that became effective again.
  - `topic` Topic: Subscription topic that readers can subscribe to and unsubscribe from individually.
    - `id` string, uuid
    - `label` string: Label shown to readers on forms and the preference page.
    - `description` string: Optional description shown to readers.
    - `position` integer: Catalog position; gaps are allowed.
    - `status` 'ACTIVE' | 'ARCHIVED'
    - `archivedAtUtc` string, date-time
    - `defaultTopic` boolean: Whether this is the tenant default topic.
    - `subscribedCount` integer: Subscribers currently subscribed to the topic.
    - `optedOutCount` integer: Subscribers who opted out of the topic themselves.
    - `enrollmentRunning` boolean: Whether existing subscribers are currently being enrolled into the topic.
    - `enrollment` TopicEnrollmentDto
      - `status` 'RUNNING' | 'COMPLETED' | 'FAILED'
      - `startedAtUtc` string, date-time
      - `addedSubscriberCount` integer
  - `reactivatedSubscriptionCount` integer

## Other responses

- `400`: Invalid topic state or active topic limit reached.
- `401`: Not Authorized
- `403`: Not Allowed
- `404`: Topic not found in this account.
- `409`: Subscriber bulk operation prevents catalog changes.
- `428`: Accept the customer agreements in the app before using API keys.

---

[API](https://skmtc.dev/maildroppa/apis/maildroppa-api-beta.md) · [All operations](https://skmtc.dev/maildroppa/apis/maildroppa-api-beta/llms.txt) · [OpenAPI document](https://skmtc.dev/maildroppa/apis/maildroppa-api-beta/revisions/a9f5a3fd1fb0?raw)
