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

# Search Knowledge Graph

> Perform advanced semantic search with graph traversal capabilities.
Supports temporal filtering, entity type filtering, and relevance scoring.




## OpenAPI

````yaml /openapi.json post /api/v1/search
openapi: 3.0.3
info:
  title: CORE API
  version: 1.0.0
  description: >
    CORE is a memory sharing platform for LLMs with graph-based storage,
    temporal facts, and comprehensive search capabilities.


    ## Authentication


    CORE supports multiple authentication methods:

    - **Bearer Token**: Personal API tokens or OAuth2 access tokens

    - **OAuth2**: Full OAuth2 authorization code flow with PKCE support

    - **Session Cookies**: For web interface access


    Most API endpoints support Bearer token authentication via the Authorization
    header:

    ```

    Authorization: Bearer YOUR_TOKEN_HERE

    ```


    ## Features


    - **Temporal Knowledge Graph**: Store and query facts with temporal validity

    - **Labels**: Organize knowledge with workspace-scoped tags

    - **Search**: Advanced semantic search with graph traversal

    - **Ingestion**: Process and extract facts from various data sources  

    - **Integrations**: Connect with external platforms via OAuth2

    - **MCP Support**: Model Context Protocol for AI assistant integration

    - **Webhooks**: Real-time notifications for data changes
  contact:
    name: Core
    url: https://github.com/redplanethq/core
servers:
  - url: '{protocol}://{domain}'
    description: Configurable CORE server
    variables:
      protocol:
        default: https
        enum:
          - http
          - https
        description: The protocol to use
      domain:
        default: app.getcore.me
        description: The CORE API domain
security:
  - bearerAuth: []
  - oauth2: []
paths:
  /api/v1/search:
    post:
      summary: Search Knowledge Graph
      description: >
        Perform advanced semantic search with graph traversal capabilities.

        Supports temporal filtering, entity type filtering, and relevance
        scoring.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchRequest'
      responses:
        '200':
          description: Search results
          content:
            application/json:
              schema:
                type: object
                properties:
                  results:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        content:
                          type: string
                        score:
                          type: number
                        metadata:
                          type: object
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
      security:
        - bearerAuth: []
components:
  schemas:
    SearchRequest:
      type: object
      required:
        - query
      properties:
        query:
          type: string
          description: Search query text
        startTime:
          type: string
          format: date-time
          description: Filter facts after this timestamp
        endTime:
          type: string
          format: date-time
          description: Filter facts before this timestamp
        labelIds:
          type: array
          items:
            type: string
          default: []
          description: Filter results to specific labels
        limit:
          type: integer
          minimum: 1
          maximum: 1000
          description: Maximum number of results
        maxBfsDepth:
          type: integer
          minimum: 1
          maximum: 10
          description: Maximum graph traversal depth
        includeInvalidated:
          type: boolean
          default: false
          description: Include invalidated facts
        entityTypes:
          type: array
          items:
            type: string
          description: Filter by entity types
        scoreThreshold:
          type: number
          minimum: 0
          maximum: 1
          description: Minimum relevance score
        minResults:
          type: integer
          minimum: 1
          description: Minimum number of results to return
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error code or message
        error_description:
          type: string
          description: Human-readable error description
        details:
          type: array
          description: Validation error details
          items:
            type: object
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: |
        Bearer token authentication supports:
        - Personal API tokens (PATs)
        - OAuth2 access tokens
        - JWT tokens

        Example: `Authorization: Bearer your_token_here`
    oauth2:
      type: oauth2
      description: |
        OAuth2 authorization code flow with PKCE support.
        Supports scopes: read, write, mcp, integration, oauth
      flows:
        authorizationCode:
          authorizationUrl: /oauth/authorize
          tokenUrl: /oauth/token
          refreshUrl: /oauth/token
          scopes:
            read: Read access to user data
            write: Write access to user data
            mcp: MCP (Model Context Protocol) access
            integration: Access to integrations
            oauth: OAuth client management

````