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

# Create an index

> Create a new index to organize entities



## OpenAPI

````yaml api-reference/openapi.json post /api/indexes
openapi: 3.1.0
info:
  title: Neode API
  description: >-
    A knowledge graph API for storing, querying, and generating triples. Use
    Neode as a triples store for your LLM applications - store facts, query
    knowledge, and generate new triples from any context.
  version: 1.0.0
  contact:
    name: Neode
servers:
  - url: https://www.neode.ai
    description: Production server
  - url: http://localhost:5173
    description: Local development
security:
  - BearerAuth: []
tags:
  - name: Search
    description: Semantic search across your knowledge graph
  - name: Triples
    description: Store and query knowledge as subject-predicate-object triples
  - name: Entities
    description: Manage entities (subjects and objects) with automatic disambiguation
  - name: Graphs
    description: Organize triples into graphs
  - name: Generation
    description: AI-powered triple generation from natural language
  - name: Indexes
    description: Organize entities into indexes
paths:
  /api/indexes:
    post:
      tags:
        - Indexes
      summary: Create an index
      description: Create a new index to organize entities
      operationId: createIndex
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IndexCreate'
      responses:
        '200':
          description: Successfully created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IndexResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    IndexCreate:
      type: object
      required:
        - name
      properties:
        name:
          type: string
        description:
          type: string
    IndexResponse:
      type: object
      description: Response containing a single index
      properties:
        success:
          type: boolean
        data:
          $ref: '#/components/schemas/Index'
    Index:
      type: object
      description: An index for organizing and disambiguating entities
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        description:
          type: string
        is_public:
          type: boolean
        preferred_predicates:
          type: array
          items:
            type: string
          description: Preferred predicate types for this index
        rules:
          type: string
          description: Custom rules or instructions for triple generation in this index
        item_count:
          type: integer
          description: Number of entities in this index
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
        details:
          type: string
  responses:
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key for authentication

````