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

# Classify companies into smart verticals

> Start a workflow that classifies the given LinkedIn companies (1 to 1000) into the account's smart verticals. Returns immediately while the workflow runs in the background. By default, companies that already have a fresh classification are skipped — pass `force: true` to reclassify them.



## OpenAPI

````yaml /reference/openapi.yaml post /v2/smart-verticals/classify
openapi: 3.1.0
info:
  title: Tamtam Public API
  version: 2.0.0
servers:
  - url: https://api.tamtam.ai/api
security: []
paths:
  /v2/smart-verticals/classify:
    post:
      tags:
        - Smart Verticals
      summary: Classify companies into smart verticals
      description: >-
        Start a workflow that classifies the given LinkedIn companies (1 to
        1000) into the account's smart verticals. Returns immediately while the
        workflow runs in the background. By default, companies that already have
        a fresh classification are skipped — pass `force: true` to reclassify
        them.
      operationId: classify-smart-verticals
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ClassifySmartVerticalsInputBody'
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClassifySmartVerticalsOutputBody'
          description: Accepted
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Error
      security:
        - apikeyAuth: []
        - bearerAuth: []
components:
  schemas:
    ClassifySmartVerticalsInputBody:
      additionalProperties: false
      properties:
        force:
          description: If true, reclassify even companies that have a fresh classification
          type: boolean
        linkedin_ids:
          description: LinkedIn company IDs to classify (1 to 1000)
          examples:
            - - '104924588'
              - '1441'
          items:
            type: string
          type:
            - array
            - 'null'
        user_email:
          description: Email of the user triggering classification (for attribution)
          examples:
            - elliot@tamtam.ai
          type: string
      required:
        - linkedin_ids
      type: object
    ClassifySmartVerticalsOutputBody:
      additionalProperties: false
      properties:
        company_count:
          description: Number of companies submitted for classification
          format: int64
          type: integer
        status:
          description: '"running" once the classification workflow has been started'
          type: string
      required:
        - status
        - company_count
      type: object
    ErrorModel:
      additionalProperties: false
      properties:
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
  securitySchemes:
    apikeyAuth:
      description: Account API key passed in the Authorization header
      in: header
      name: Authorization
      type: apiKey
    bearerAuth:
      description: Bearer JWT obtained via the OAuth 2.1 authorization flow
      scheme: bearer
      type: http

````