CategoriesCreate

Create a category

Add a new category to the authenticated organization. Returns the new category id.

Creates a new category for the authenticated organization. Categories are org-scoped — every board in the org can use the new category once it exists.

Endpoint

POST https://api.productbridge.io/api/external/v1/categories/create

Arguments

body
api_keystring
Required

Your organization's public API key. See Authentication.

body
namestring
Required

The display name of the category. Must be between 1 and 30 characters. Must be unique within the organization.

body
descriptionstring

Optional human-readable description shown in the dashboard. Max 512 characters.

body
colorstring

Optional hex color string used as a visual badge in the dashboard (e.g. "#3B82F6"). Max 50 characters.

body
show_on_feedbackboolean

Whether this category should appear in feedback views. Defaults to true.

body
show_on_roadmapboolean

Whether this category should appear in roadmap views. Defaults to true.

Not supported in v1. Canny's boardID, parentID (sub-categories), and subscribeAdmins parameters have no equivalent here — categories are org-scoped, sub-categories aren't supported, and admin subscription is a dashboard-only setting.

Returns

A JSON object with the new category's id.

{ "id": "553c3ef8-b8cd-cd15-01ba-12bb12bb12bb" }

Example request

curl -X POST https://api.productbridge.io/api/external/v1/categories/create \
  -H 'Content-Type: application/json' \
  -d '{
    "api_key": "pb_YOUR_PUBLIC_API_KEY",
    "name": "Performance",
    "description": "Latency, throughput, and scaling concerns.",
    "color": "#F59E0B",
    "show_on_feedback": true,
    "show_on_roadmap": false
  }'

Example response

{
  "id": "773c3ef8-b8cd-cd15-01ba-99bb99bb99bb"
}

After creation, fetch the full category object via Retrieve if you need the auto-generated code, created_at, and other server-populated fields.

Errors

StatusBodyCause
401{"detail":{"error":"invalid api_key"}}Missing / unknown / inactive api_key.
422Validation error envelopeMissing name, name out of length bounds (1–30), or another field has the wrong type.

See Errors for the full envelope shape and a recommended client-side handler.

Was this page helpful?

Last updated 1 week ago

Built with Documentation.AI