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

# Token classification



## OpenAPI

````yaml /api-reference/openapi.json post /v1/classifications/token
openapi: 3.1.0
info:
  title: SynapsAI Inference API
  version: 1.0.0
servers:
  - url: https://api.synapsai.cloud
    description: Production server
security: []
paths:
  /v1/classifications/token:
    post:
      summary: Token classification
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TokenClassificationRequest'
      responses:
        '200':
          description: >-
            Token classification results (list of dicts with
            word/score/entity/index/start/end)
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    word:
                      type: string
                    score:
                      type: number
                    entity:
                      type: string
                    index:
                      type: integer
                    start:
                      type: integer
                    end:
                      type: integer
components:
  schemas:
    TokenClassificationRequest:
      allOf:
        - type: object
          description: Request to perform token-level classification (NER / POS style).
          properties:
            inputs:
              oneOf:
                - type: string
                - type: array
                  items:
                    type: string
              description: >-
                Text string or list of strings for token classification.
                Required.
          required:
            - inputs

````