Topics

Create a topic

Creates a topic, optionally under a parent topic, and returns it. Send an Idempotency-Key header so a retry within 24 hours never runs it twice.

POST/v1/projects/{project_id}/topics

Needs the prompts:write scope

Creates a topic, optionally under a parent topic, and returns it. Send an Idempotency-Key header so a retry within 24 hours never runs it twice.

Path parameters

Path parameters
Parameter
project_idstring (uuid)pathrequired

Headers

Headers
Parameter
Idempotency-Keystringheaderrequired

Request body

Request body
ParameterDescription
namestringbodyrequired
descriptionstringbody
Default""
parent_idstring (uuid) | nullbody

Response 201: Topic