# Archive a Topic

> Archives a Topic you have finished with, so it drops out of the default list of active topics. It needs topic_id and returns the topic's permakey and its…

POST /api/v1/skills/topic.archive/invoke

Archives a Topic you have finished with, so it drops out of the default list of active topics. It needs topic_id and returns the topic's permakey and its new status, archived. An archived topic cannot be archived again, and topic.update with status active restores it.

Body parameters

topic_id string Required

Topic permakey (preferred) or UUID

Returns

Skill executed successfully

skill string Required

Example topic_archive

output object Required

output.stub_fields array of strings

output.warnings array of strings

output.topic_id string · default

The topic's permakey (the public id).

output.permakey string · default

The 7-char public topic id — THE id to show users and reuse in later topic_* calls (UUIDs are internal).

output.status string · default archived

The topic's new status

correlation_id string Required

Errors

Status Type When

401 AUTH.TOKEN_INVALID Authentication required

403 PERMISSION.CAPABILITY_DENIED Insufficient permissions

404 SKILL.NOT_FOUND Skill not found

422 VALIDATION.INVALID_FORMAT Validation error

429 RATE_LIMIT.USER Rate limit exceeded

5XX INTERNAL.UNKNOWN Internal server error

[Next Ask a Question →](https://heyarchie.com/en-gb/developers/api-reference/topics/ask-a-question/)

```
curl https://uk.heyarchie.com/api/v1/skills/topic.archive/invoke \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "topic_id": "string"
     }'
```

```
from heyarchie import Archie
archie = Archie(api_key="sk_...")
result = archie.skills.invoke(
    "topic.archive",
    topic_id="string",
)
print(result)
```

```
import { Archie } from "heyarchie";

const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("topic.archive", {
  "topic_id": "string"
});
console.log(result);
```

Response

```
{
  "skill": "topic_archive",
  "output": {
    "permakey": "K7M2QX9",
    "status": "archived",
    "topic_id": "K7M2QX9"
  },
  "correlation_id": "<string>"
}
```

```
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "retry_after_seconds": "<integer>"
  }
}
```

Every response also carries X-Request-ID. Quote it if you write to us about a call.
