> ## Documentation Index
> Fetch the complete documentation index at: https://docs.useboom.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Test Classify comment labels

> Run up to 50 comments through a Classify comment step's labels and see where each would go: the label (or Unsure), the confidence and the per-label probabilities. Same AI call and threshold as a live run. Point at a step in a draft (`journeyId` + `nodeId`), or send `labels` (+ optional `minConfidence`) to try wording before saving it. For a longer list, loop over it in batches of 50; results come back in input order with `index`. Limits per organization: 10 calls a minute and 2000 comments a day; over either the call is refused with `rate_limited` or `daily_cap_reached` and a message saying how many seconds to wait (REST: HTTP 429 with a `retryAfterSeconds` field). The daily budget is a rolling 24 hours, so it comes back gradually; the wait is an estimate. Each comment is at most 1000 characters, and an over-limit request is refused, never cut; like a live run, the AI reads the first 500 characters of each. Comments are not stored or logged.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/journeys/classify-comment/test
openapi: 3.1.0
info:
  title: Boom API
  version: 1.0.0
  description: >-
    Boom's public REST API — one uniform surface over every platform capability.
    CDP: upsert people and custom objects, define object and relationship types,
    link and unlink relationships, and record behavioral events — one record per
    request or up to 1000 per request via the `/batch` endpoints. Segments: read
    (list, read, membership) and full authoring — discover the filterable
    catalog, validate a filter, create and update segments, preview match
    counts, and trigger evaluation. Initiatives: create and configure outreach
    initiatives, link WhatsApp templates, drive the lifecycle (launch, cancel,
    archive), and read collected-data summaries. Participants: enroll people
    into an active initiative, track their status, read conversation
    transcripts, and stop outreach. Journeys: read-only access to always-on
    message flows and their metrics. WhatsApp templates: list your WhatsApp
    numbers and list, read, and create message templates. The same capabilities
    are exposed as MCP tools with identical schemas.
servers:
  - url: https://www.useboom.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /api/v1/journeys/classify-comment/test:
    post:
      tags:
        - Journeys
      summary: Test Classify comment labels
      description: >-
        Run up to 50 comments through a Classify comment step's labels and see
        where each would go: the label (or Unsure), the confidence and the
        per-label probabilities. Same AI call and threshold as a live run. Point
        at a step in a draft (`journeyId` + `nodeId`), or send `labels` (+
        optional `minConfidence`) to try wording before saving it. For a longer
        list, loop over it in batches of 50; results come back in input order
        with `index`. Limits per organization: 10 calls a minute and 2000
        comments a day; over either the call is refused with `rate_limited` or
        `daily_cap_reached` and a message saying how many seconds to wait (REST:
        HTTP 429 with a `retryAfterSeconds` field). The daily budget is a
        rolling 24 hours, so it comes back gradually; the wait is an estimate.
        Each comment is at most 1000 characters, and an over-limit request is
        refused, never cut; like a live run, the AI reads the first 500
        characters of each. Comments are not stored or logged.
      operationId: journeys_classify_comment_test
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              properties:
                journeyId:
                  description: >-
                    A draft journey id, or its initiative id. With `nodeId`; not
                    with `labels`.
                  type: string
                  minLength: 1
                nodeId:
                  description: The Classify comment step in that draft.
                  type: string
                  minLength: 1
                labels:
                  description: >-
                    Labels to try instead of a saved step: 1 to 8, each { name,
                    description }. The AI decides from both, so be specific.
                  minItems: 1
                  maxItems: 8
                  type: array
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                        minLength: 1
                        maxLength: 40
                      description:
                        type: string
                        minLength: 1
                        maxLength: 200
                    required:
                      - name
                      - description
                minConfidence:
                  description: >-
                    Below this the comment is Unsure. 0.5 to 0.95; defaults to
                    the step's, else 0.7.
                  type: number
                  minimum: 0.5
                  maximum: 0.95
                comments:
                  minItems: 1
                  maxItems: 50
                  type: array
                  items:
                    type: string
                    maxLength: 1000
                  description: 1 to 50 comment texts, each at most 1000 characters.
              required:
                - comments
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: https://json-schema.org/draft/2020-12/schema
                type: object
                properties:
                  minConfidence:
                    type: number
                    description: The threshold that was applied.
                  results:
                    type: array
                    items:
                      type: object
                      properties:
                        index:
                          type: integer
                          minimum: -9007199254740991
                          maximum: 9007199254740991
                          description: Position of the comment in `comments`.
                        label:
                          anyOf:
                            - type: string
                            - type: 'null'
                          description: >-
                            The label name the run would take; null means
                            Unsure.
                        labelId:
                          anyOf:
                            - type: string
                            - type: 'null'
                          description: That label’s id; null for Unsure.
                        confidence:
                          anyOf:
                            - type: number
                            - type: 'null'
                          description: >-
                            The AI’s confidence in its pick, 0 to 1. Null if it
                            failed.
                        probabilities:
                          anyOf:
                            - type: object
                              propertyNames:
                                type: string
                              additionalProperties:
                                type: number
                            - type: 'null'
                          description: >-
                            Per label name, plus `none` (no label fits). Null if
                            the classifier failed.
                        reason:
                          description: Why it is Unsure. Absent when a label was taken.
                          type: string
                          enum:
                            - below_confidence
                            - no_label_fits
                            - classification_unavailable
                      required:
                        - index
                        - label
                        - labelId
                        - confidence
                        - probabilities
                      additionalProperties: false
                required:
                  - minConfidence
                  - results
                additionalProperties: false
        '400':
          description: Validation failed or the request cannot proceed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code (snake_case).
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
        '401':
          description: Missing, malformed, or revoked API key.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code (snake_case).
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
        '403':
          description: >-
            The key belongs to a partner workspace (`partner_workspace`); use a
            key from the brand.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code (snake_case).
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
        '404':
          description: The resource does not exist in this organization.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code (snake_case).
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
        '409':
          description: >-
            Conflicts with the current state (duplicates, wrong lifecycle
            state).
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code (snake_case).
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
        '422':
          description: The request is well-formed but semantically invalid.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code (snake_case).
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
        '429':
          description: Rate limit exceeded — retry after `Retry-After`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code (snake_case).
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code (snake_case).
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
        '503':
          description: Transient error — retry with a narrower request.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Stable machine-readable error code (snake_case).
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Organization API key, sent as `Authorization: Bearer boom_org_...`.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.