# Create a topic (/api-reference/topics/create-a-topic)

Creates a new topic if it does not exist, or updates an existing topic if it already exists. Use ?failIfExists=true to prevent updates.

{/* This file was generated by scripts\/generate-docs.mjs. Do not edit this file directly. Regenerate with pnpm run build:docs. */}

<APIPage document={"content/openapi/novu-spec.json"} operations={[{"path":"/v2/topics","method":"post"}]} webhooks={[]} hasHead={false} />
