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

# Post extract entities

> Extracts named entities from text and categorizes them. Costs 1 credit per request.



## OpenAPI

````yaml api-reference/openapi.json post /extract-entities
openapi: 3.0.1
info:
  title: Norns AI API
  description: API documentation for Norns AI services
  version: 1.0.0
servers:
  - url: https://www.norns.ai/api/v0
    description: Production server
security:
  - bearerAuth: []
paths:
  /extract-entities:
    post:
      description: >-
        Extracts named entities from text and categorizes them. Costs 1 credit
        per request.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExtractEntitiesRequest'
      responses:
        '200':
          description: Successful entity extraction response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExtractEntitiesResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ExtractEntitiesRequest:
      type: object
      required:
        - text
      properties:
        text:
          type: string
          description: The text to extract entities from
    ExtractEntitiesResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          type: object
          properties:
            entities:
              type: array
              items:
                type: object
                properties:
                  text:
                    type: string
                    description: The extracted entity text
                  type:
                    type: string
                    description: >-
                      The type of entity (e.g., person, organization, location,
                      product, date)
                  startIndex:
                    type: integer
                    description: >-
                      Starting character index of the entity in the original
                      text
                  endIndex:
                    type: integer
                    description: Ending character index of the entity in the original text
            usage:
              type: integer
              description: Number of credits consumed
            tokenCount:
              type: integer
              description: Number of tokens processed
    Error:
      type: object
      properties:
        error:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key authentication

````