Skip to main content
POST
The category name must be unique among the agent’s attached categories. Add dispositions to the category with the Create Disposition endpoint, passing this category’s id as category_id.
By default a new category runs after every call. Send a start rule (min_duration_s, skip_voicemail) to skip calls it shouldn’t read, or the three follow-up fields (parent_disposition_id, match_mode, match_values) to run it after another category’s answer. A combination that can’t hold is refused with 400 and a message to show as is; see Run rules.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agent_id
string<uuid>
required

The agent the category is attached to.

Body

application/json

Category to create.

Request body for creating an extraction category. The category is attached to the agent in the URL path; attaching a category gives the agent all of the category's dispositions.

name
string
required

Category name. Must be unique among the agent's attached categories.

Example:

"Lead Quality"

model
enum<string>
required

LLM model for the category's extraction pass.

Available options:
gpt-4.1-mini,
gpt-4.1-nano,
gpt-4o-mini,
gpt-5-mini,
gpt-5-nano,
gpt-5.4-mini,
gpt-5.6-luna,
gpt-6-luna,
azure/gpt-4.1-mini,
azure/gpt-4.1-nano,
azure/gpt-4o-mini,
azure/gpt-5-mini,
azure/gpt-5.4-mini,
azure/gpt-5.4-nano,
azure/gpt-5.6-luna,
gemini-3.5-flash,
gemini-3.5-flash-lite
Example:

"gpt-4.1-mini"

managed_by
enum<string>

Whose LLM key runs the category's pass, bolna (Bolna's) or user (the account's own).

Available options:
bolna,
user
min_duration_s
integer | null

Start rule. Skip the category on calls shorter than this many seconds, measured as the duration shown in call history. Omit for no minimum. Not allowed on a follow-up.

Required range: 1 <= x <= 86400
skip_voicemail
boolean
default:false

Start rule. true skips the category on calls that ended on voicemail, caught by Bolna's voicemail detection or the carrier's answering-machine detection. Not allowed on a follow-up.

parent_disposition_id
string<uuid> | null

Makes the category a follow-up. The id of an objective disposition (is_objective true) in another of the agent's categories; the category runs after that disposition's category, depending on its answer. Requires match_mode and match_values.

match_mode
enum<string> | null

Follow-ups only. in runs the category only when the parent's objective answer is one of match_values; not_in skips it when it is. In either mode a follow-up never runs when the parent's category was skipped or failed or the answer is null.

Available options:
in,
not_in
match_values
string[] | null

Follow-ups only. Answers to check, matched exactly. Each must be one of the parent disposition's objective_options values, sub-options included. A listed value also covers the sub-options under it.

Minimum array length: 1

Response

Category created and attached to the agent

A named set of dispositions evaluated together in a single LLM pass. The category owns the model used for that pass.

id
string<uuid>

Unique identifier for the category.

Example:

"9b2e8f10-4c7d-4e2a-9f31-6a8d5c1b0e42"

name
string

Category name. Unique among the categories attached to the same agent.

Example:

"Lead Quality"

model
string

LLM model used for the category's extraction pass. Applies to every disposition in the category.

Example:

"gpt-4.1-mini"

agent_id
string<uuid>

The agent this category is attached to.

Example:

"123e4567-e89b-12d3-a456-426614174000"

created_at
string<date-time>

ISO timestamp when the category was created.

Example:

"2026-03-01T10:00:00Z"

updated_at
string<date-time>

ISO timestamp when the category was last updated.

Example:

"2026-03-15T14:30:00Z"

min_duration_s
integer | null

Start rule. The category is skipped on calls shorter than this many seconds. null when not set.

Example:

null

skip_voicemail
boolean

Start rule. true skips the category on calls that ended on voicemail, caught by Bolna's voicemail detection or the carrier's answering-machine detection. false when not set.

Example:

false

parent_disposition_id
string<uuid> | null

Follow-ups only. The objective disposition, in another of the agent's categories, that this category runs after. null for a starting category.

Example:

"3fa85f64-5717-4562-b3fc-2c963f66afa6"

match_mode
enum<string> | null

Follow-ups only. in runs the category only when the parent's answer is one of match_values; not_in skips it when it is. null for a starting category.

Available options:
in,
not_in
Example:

"not_in"

match_values
string[] | null

Follow-ups only. The parent answers match_mode checks. null for a starting category.

Example: