# Create a Topic in the Caller's Workspace

> Creates a new Topic in your workspace, for example one for a client's year-end work. It needs a name, and you can also set type (client by default)…

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

Creates a new Topic in your workspace, for example one for a client's year-end work. It needs a name, and you can also set type (client by default), client_id and theme_color. It returns the new topic's permakey, name, type and workspace, and the permakey is the id to use in every later topic call.

Body parameters

name string Required

The new topic's name, from 1 to 200 characters.

type string · default client

Topic type: client | matter | process_period | advisory | compliance | internal (DB-enforced enum)

client_id string

UUID of the client to bind

theme_color string

Hex like #DAFBE1; default applied server-side

Returns

Skill executed successfully

skill string Required

Example topic_create

output object Required

output.stub_fields array of strings

output.warnings array of strings

output.topic_id string · default

The new 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.name string · default

output.type string · default

output.workspace_id string · default

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

[Previous ← Ask a Question](https://heyarchie.com/en-gb/developers/api-reference/topics/ask-a-question/)[Next Soft-Delete a Topic →](https://heyarchie.com/en-gb/developers/api-reference/topics/soft-delete-a-topic/)

```
curl https://uk.heyarchie.com/api/v1/skills/topic.create/invoke \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "name": "string",
       "type": "string",
       "client_id": null,
       "theme_color": null
     }'
```

```
from heyarchie import Archie
archie = Archie(api_key="sk_...")
result = archie.skills.invoke(
    "topic.create",
    name="string",
    type="string",
    client_id=None,
    theme_color=None,
)
print(result)
```

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

const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("topic.create", {
  "name": "string",
  "type": "string",
  "client_id": null,
  "theme_color": null
});
console.log(result);
```

Response

```
{
  "skill": "topic_create",
  "output": {
    "name": "Northwind Trading Ltd - year-end 2026",
    "permakey": "K7M2QX9",
    "topic_id": "K7M2QX9",
    "type": "client",
    "workspace_id": "9a4e2c6b-8d10-4f37-b5a2-7e1c3d9f0a68"
  },
  "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.
