Talk with Archie
API reference › Topics
Skills › Topics

Create a Topic in the Caller's Workspace

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
namestringRequired
The new topic's name, from 1 to 200 characters.
typestring · default client
Topic type: client | matter | process_period | advisory | compliance | internal (DB-enforced enum)
client_idstring
UUID of the client to bind
theme_colorstring
Hex like #DAFBE1; default applied server-side
Returns

Skill executed successfully

skillstringRequired
Example topic_create
outputobjectRequired
output.stub_fieldsarray of strings
output.warningsarray of strings
output.topic_idstring · default
The new topic's permakey (the public id).
output.permakeystring · default
The 7-char public topic id — THE id to show users and reuse in later topic_* calls (UUIDs are internal).
output.namestring · default
output.typestring · default
output.workspace_idstring · default
correlation_idstringRequired
Errors
StatusTypeWhen
401AUTH.TOKEN_INVALIDAuthentication required
403PERMISSION.CAPABILITY_DENIEDInsufficient permissions
404SKILL.NOT_FOUNDSkill not found
422VALIDATION.INVALID_FORMATValidation error
429RATE_LIMIT.USERRate limit exceeded
5XXINTERNAL.UNKNOWNInternal server error
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>"
  }
}
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "retry_after_seconds": "<integer>"
  }
}
{
  "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.