# Create a context (/api-reference/contexts/create-a-context)

Create a new context with the specified type, id, and data. Returns 409 if context already exists.
      **type** and **id** are required fields, **data** is optional, if the context already exists, it returns the 409 response

{/* 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/contexts","method":"post"}]} webhooks={[]} hasHead={false} />
