Eder Labs Query API

Retrieving memory via RAG and structured insights

Operations 2

POST /users/{user_id}/rag/query RAG query #
POST /users/{user_id}/ask Ask for structured insights #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/eder-labs-query-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

eder-labs-query-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Persona Ingestion Query API
  version: 1.0.0
  description: 'Persona is an open-source (MIT) user-memory system for AI agents, built by Eder Labs. It ingests raw content (conversations, notes) for a user, extracts a Graph-Vector hybrid memory (Neo4j graph + vector embeddings), and answers natural-language RAG queries or returns structured insights over that memory. This specification is transcribed faithfully from the published FastAPI router source (server/routers/graph_api.py) and the docs/API.md reference of github.com/saxenauts/persona. Persona is self-hosted: the base URL below is the documented local default; deploy behind your own host and auth layer.'
  license:
    name: MIT
    url: https://github.com/saxenauts/persona/blob/main/LICENSE
  contact:
    name: Persona (Eder Labs)
    url: https://docs.buildpersona.ai/
    email: utkarsh@buildpersona.ai
  x-apievangelist:
    source: https://github.com/saxenauts/persona/blob/main/server/routers/graph_api.py
    docs: https://docs.buildpersona.ai/
    method: searched
servers:
- url: http://localhost:8000/api/v1
  description: Documented self-hosted local default (uvicorn / docker compose)
tags:
- name: Query
  description: Retrieving memory via RAG and structured insights
paths:
  /users/{user_id}/rag/query:
    post:
      operationId: rag_query
      summary: RAG query
      description: Runs a retrieval-augmented-generation query over the user's memory and returns a natural-language answer. Query max length is 1000 characters.
      tags:
      - Query
      parameters:
      - $ref: '#/components/parameters/UserId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RAGQuery'
      responses:
        '200':
          description: RAG answer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RAGResponse'
        '400':
          description: Missing or too-long query
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: User not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '502':
          description: External service (LLM) error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Database (Neo4j) connection error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /users/{user_id}/ask:
    post:
      operationId: ask_insights
      summary: Ask for structured insights
      description: Asks a question over the user's memory and returns a structured result, optionally shaped by a caller-provided output_schema.
      tags:
      - Query
      parameters:
      - $ref: '#/components/parameters/UserId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AskRequest'
      responses:
        '200':
          description: Structured insight result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AskResponse'
        '400':
          description: Missing request body or query
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: User not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '502':
          description: External service (LLM) error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Database (Neo4j) connection error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    AskResponse:
      type: object
      properties:
        result:
          type: object
          additionalProperties: true
          example:
            preferences:
            - remote work
            - morning meetings
            summary: User prefers flexible work arrangements
    AskRequest:
      type: object
      required:
      - query
      properties:
        query:
          type: string
          example: What are my preferences?
        output_schema:
          type: object
          description: Optional caller-provided shape for the structured result.
          additionalProperties: true
    RAGResponse:
      type: object
      properties:
        answer:
          type: string
          example: Based on your memories, you're working on the Q4 roadmap...
    RAGQuery:
      type: object
      required:
      - query
      properties:
        query:
          type: string
          maxLength: 1000
          example: What projects am I working on?
    Error:
      type: object
      description: FastAPI default error envelope.
      properties:
        detail:
          type: string
          example: User alice not found
  parameters:
    UserId:
      name: user_id
      in: path
      required: true
      description: The unique identifier for the user. Pattern ^[a-zA-Z0-9_-]+$.
      schema:
        type: string
        pattern: ^[a-zA-Z0-9_-]+$