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

# Get smart categories

> <Info>Access to Smart Categories is required to use this endpoint. Contact [support@peakmetrics.com](mailto:support@peakmetrics.com) if you do not have access.</Info>

Smart Categories are AI-powered classifiers that label your mentions, such as sentiment models, topic classifiers, or violent rhetoric detection. Their labels are used alongside all other mention metadata across the platform, in filters, analytics, exports, the GET APIs, and the MCP server.

This endpoint returns every Smart Category configured for your team, along with the labels each one can apply. Use it to look up the Smart Category and labels to send when overriding a label on a mention with `PUT /mentions/smartCategories`.

If your team has no Smart Categories yet, an empty array is returned. Contact support@peakmetrics.com to set one up.




## OpenAPI

````yaml /api/api_docs.yaml get /smartCategories
openapi: 3.1.0
info:
  title: PeakMetrics API
  description: >
    The PeakMetrics API provides programmatic access to narrative intelligence
    data.


    Access millions of mentions across news, social media, and online platforms,
    enriched with custom AI-powered

    smart categories and over 50 metadata properties. The API enables you to

    identify, analyze, and act on emerging narratives in real-time.
  version: 2.0.0
servers:
  - url: https://api.peakmetrics.com
    description: Main (production) server
security:
  - BearerAuth: []
tags:
  - name: Authorization
  - name: Workspaces
  - name: Explore
    description: >
      Run an ad-hoc [Explore](/help/get-started-with-peakmetrics/explore) query
      without creating a workspace, and get back Volume Over Time (`POST
      /explore/analytics/timeline`) or a Channel, Language, or Domain
      distribution (`POST /explore/analytics/distribution`).


      Both endpoints use the same Bearer JWT authentication as the rest of the
      API and take their parameters as a JSON body.


      ### Rate limits and quota


      - **5 queries per user per minute**, shared across both Explore endpoints.
      The minute is a fixed window of 60 seconds from the first request in the
      window. Exceeding it returns a `429` with `error: "rate_limited"` and
      `retryAfterSeconds`.

      - **1,000 queries per user per endpoint per month.** Each endpoint has its
      own monthly allowance, which resets at the start of each calendar month
      (UTC). Exceeding it returns a `429` with `error: "quota_exceeded"` and
      `retryAfterSeconds` set to the time until the reset.


      Every request counts toward the per-minute limit; only successful (`200`)
      requests count toward the monthly quota.


      Both limits are shared with the Explore tools in the [PeakMetrics MCP
      server](/mcp/capabilities), so queries your AI assistant runs there count
      toward the same totals.
  - name: Folders
  - name: Channels
  - name: Locations
    description: >
      PeakMetrics resolves a normalized location on mentions across every
      channel, using a

      six-level taxonomy: `region`, `subregion`, `country`, `state`, `county`,
      and `city`.

      `state` and `county` are United States only.


      Look locations up with `GET /locations`, read a mention's resolved
      location from the

      `location` object on `GET /workspaces/{workspaceId}/mentions`, filter the
      mentions,

      timeline, or distribution endpoints with the `locations.<level>`
      parameters, and

      break counts down with the matching `locations.<level>` `group_by` values.
  - name: Custom Channels
  - name: Enrichments
    description: >
      Smart Categories are AI-powered classifiers that label your mentions, such
      as sentiment models, topic classifiers, or violent rhetoric detection.
      List your team's Smart Categories and their labels with `GET
      /smartCategories`, and override a label the model applied to a mention
      with `PUT /mentions/smartCategories`.


      Custom enrichments let you push external context about mentions into
      PeakMetrics,

      attached to individual mentions and used alongside all other mention
      metadata across

      the platform. Once written, enrichment values feed into narrative
      analysis, workspace

      summaries, and notifications, and are available through the customer API
      and the MCP

      server.


      Your team manages its own custom enrichments through the API: create one
      with

      `POST /customEnrichments`, list them with `GET /customEnrichments`, rename
      one or

      replace its option list with `PUT /customEnrichments/{enrichmentId}`,
      retire one with

      `DELETE /customEnrichments/{enrichmentId}`, and push values for individual
      mentions

      with `PUT /mentions/customEnrichments`.
paths:
  /smartCategories:
    get:
      tags:
        - Enrichments
      summary: Get smart categories
      description: >
        <Info>Access to Smart Categories is required to use this endpoint.
        Contact [support@peakmetrics.com](mailto:support@peakmetrics.com) if you
        do not have access.</Info>


        Smart Categories are AI-powered classifiers that label your mentions,
        such as sentiment models, topic classifiers, or violent rhetoric
        detection. Their labels are used alongside all other mention metadata
        across the platform, in filters, analytics, exports, the GET APIs, and
        the MCP server.


        This endpoint returns every Smart Category configured for your team,
        along with the labels each one can apply. Use it to look up the Smart
        Category and labels to send when overriding a label on a mention with
        `PUT /mentions/smartCategories`.


        If your team has no Smart Categories yet, an empty array is returned.
        Contact support@peakmetrics.com to set one up.
      responses:
        '200':
          description: A JSON array of Smart Category definitions
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    enrichment_id:
                      type: integer
                      description: >-
                        The unique identifier for the Smart Category. Use this
                        value as `enrichment_id` when overriding labels via `PUT
                        /mentions/smartCategories`. It is the same identifier
                        that appears before the colon in `smart_categories`
                        filter values and in the `classification` of a mention's
                        `smartCategories`.
                      example: 244
                    name:
                      type: string
                      description: The human-readable name of the Smart Category.
                      example: Favorability
                    options:
                      type: array
                      description: The labels this Smart Category can apply to a mention.
                      items:
                        type: object
                        properties:
                          name:
                            type: string
                            description: Human-readable label.
                            example: Positive
                          value:
                            type: string
                            description: >-
                              The label's category key. Use this value as
                              `old_value` or `new_value` when overriding labels
                              via `PUT /mentions/smartCategories`. Combined with
                              `enrichment_id` as `{enrichment_id}:{value}`, it
                              matches the `smart_categories` filter values
                              returned by `GET
                              /workspaces/{workspaceId}/available-filters`.
                            example: c0
              examples:
                smart_categories:
                  summary: A Smart Category and its labels
                  value:
                    - enrichment_id: 244
                      name: Favorability
                      options:
                        - name: Positive
                          value: c0
                        - name: Neutral
                          value: c1
                        - name: Negative
                          value: c2
                empty:
                  summary: No Smart Categories configured
                  value: []
        '401':
          description: Missing or invalid access token.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              examples:
                unauthorized:
                  summary: Missing or invalid access token
                  value:
                    error: Missing or invalid access token
        '403':
          description: >-
            Your team does not have access to Smart Categories. Contact
            support@peakmetrics.com to request access.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              examples:
                forbidden:
                  summary: No access to Smart Categories
                  value:
                    error: User does not have access to smart categories
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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