Langbase Memory API

The Memory API from Langbase — 5 operation(s) for memory.

Operations 8

POST /v1/memory V1 memory create #
GET /v1/memory V1 memory list #
POST /v1/memory/retrieve V1 memory retrieve #
DELETE /v1/memory/{memoryName} V1 memory delete #
POST /v1/memory/documents V1 memory document upload #
GET /v1/memory/{memoryName}/documents V1 memory documents list #
GET /v1/memory/{memoryName}/documents/{documentName}/embeddings/retry V1 memory document embeddings retry #
DELETE /v1/memory/{memoryName}/documents/{documentName} Beta memory document delete #

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/langbase:langbase-memory-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

langbase-memory-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Langbase Memory API
  version: 1.0.0
servers:
- url: https://api.langbase.com
  description: Production
tags:
- name: Memory
paths:
  /v1/memory:
    post:
      operationId: v1MemoryCreate
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                description:
                  type: string
                embedding_model:
                  type: string
                  enum:
                  - openai:text-embedding-3-large
                  - cohere:embed-v4.0
                  - cohere:embed-multilingual-v3.0
                  - cohere:embed-multilingual-light-v3.0
                  - google:text-embedding-004
                  default: openai:text-embedding-3-large
                chunk_size:
                  type: integer
                  minimum: 1024
                  maximum: 30000
                  default: 10000
                chunk_overlap:
                  type: integer
                  minimum: 256
                  default: 2048
                top_k:
                  type: integer
                  minimum: 1
                  maximum: 100
                  default: 3
              required:
              - name
      responses:
        '200':
          description: 'Langbase: Create memory v1'
          content:
            application/json:
              schema:
                type: object
                properties:
                  name:
                    type: string
                    minLength: 1
                  description:
                    type: string
                  owner_login:
                    type: string
                  embedding_model:
                    type: string
                    enum:
                    - openai:text-embedding-3-large
                    - cohere:embed-v4.0
                    - cohere:embed-multilingual-v3.0
                    - cohere:embed-multilingual-light-v3.0
                    - google:text-embedding-004
                  chunk_size:
                    type: integer
                    minimum: 1024
                    maximum: 30000
                  chunk_overlap:
                    type: integer
                    minimum: 256
                  url:
                    type: string
                required:
                - name
                - owner_login
                - embedding_model
                - chunk_size
                - chunk_overlap
                - url
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      status:
                        type: string
                      message:
                        type: string
                      docs:
                        type: string
                    required:
                    - code
                    - status
                    - message
                    - docs
                required:
                - success
                - error
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  error:
                    type: string
                  code:
                    type: string
                required:
                - success
                - error
                - code
      tags:
      - Memory
      summary: V1 memory create
      x-summary-source: derived
    get:
      operationId: v1MemoryList
      security:
      - bearerAuth: []
      responses:
        '200':
          description: 'Langbase: List all memory v1'
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    name:
                      type: string
                    description:
                      type: string
                    owner_login:
                      type: string
                    url:
                      type: string
                  required:
                  - name
                  - owner_login
                  - url
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      status:
                        type: string
                      message:
                        type: string
                      docs:
                        type: string
                    required:
                    - code
                    - status
                    - message
                    - docs
                required:
                - success
                - error
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  error:
                    type: string
                  code:
                    type: string
                required:
                - success
                - error
                - code
      tags:
      - Memory
      summary: V1 memory list
      x-summary-source: derived
  /v1/memory/retrieve:
    post:
      operationId: v1MemoryRetrieve
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                memory:
                  type: array
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                        minLength: 1
                      filters: {}
                    required:
                    - name
                  minItems: 1
                query:
                  type: string
                  minLength: 1
                topK:
                  type: integer
                  minimum: 1
                  maximum: 100
                  default: 20
              required:
              - memory
              - query
      responses:
        '200':
          description: 'Langbase: Memory retrieve v1'
          content:
            application/json:
              schema:
                type: object
                properties:
                  chunks:
                    type: array
                    items:
                      type: object
                      properties:
                        text:
                          type: string
                        similarity:
                          type: number
                        meta:
                          allOf:
                          - type: object
                            properties:
                              docName:
                                type: string
                            required:
                            - docName
                          - type: object
                            additionalProperties:
                              type: string
                              minLength: 1
                      required:
                      - text
                      - similarity
                      - meta
                required:
                - chunks
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      status:
                        type: string
                      message:
                        type: string
                      docs:
                        type: string
                    required:
                    - code
                    - status
                    - message
                    - docs
                required:
                - success
                - error
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  error:
                    type: string
                  code:
                    type: string
                required:
                - success
                - error
                - code
      tags:
      - Memory
      summary: V1 memory retrieve
      x-summary-source: derived
  /v1/memory/{memoryName}:
    delete:
      operationId: v1MemoryDelete
      security:
      - bearerAuth: []
      parameters:
      - schema:
          type: string
          minLength: 1
        required: true
        name: memoryName
        in: path
      responses:
        '200':
          description: 'Langbase: Delete memory v1'
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                required:
                - success
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      status:
                        type: string
                      message:
                        type: string
                      docs:
                        type: string
                    required:
                    - code
                    - status
                    - message
                    - docs
                required:
                - success
                - error
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  error:
                    type: string
                  code:
                    type: string
                required:
                - success
                - error
                - code
      tags:
      - Memory
      summary: V1 memory delete
      x-summary-source: derived
  /v1/memory/documents:
    post:
      operationId: v1MemoryDocumentUpload
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                memoryName:
                  type: string
                  minLength: 1
                documentName:
                  type: string
                fileName:
                  type: string
              required:
              - memoryName
      responses:
        '200':
          description: 'Langbase: Memory document upload v1'
          content:
            application/json:
              schema:
                type: object
                properties:
                  signedUrl:
                    type: string
                required:
                - signedUrl
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      status:
                        type: string
                      message:
                        type: string
                      docs:
                        type: string
                    required:
                    - code
                    - status
                    - message
                    - docs
                required:
                - success
                - error
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  error:
                    type: string
                  code:
                    type: string
                required:
                - success
                - error
                - code
      tags:
      - Memory
      summary: V1 memory document upload
      x-summary-source: derived
  /v1/memory/{memoryName}/documents:
    get:
      operationId: v1MemoryDocumentsList
      security:
      - bearerAuth: []
      parameters:
      - schema:
          type: string
          minLength: 1
        required: true
        name: memoryName
        in: path
      responses:
        '200':
          description: 'Langbase: Memory documents list v1'
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    name:
                      type: string
                    status:
                      type: string
                    status_message:
                      type: string
                    metadata:
                      type: object
                      properties:
                        size:
                          type: number
                        type:
                          type: string
                      required:
                      - size
                      - type
                    enabled:
                      type: boolean
                    owner_login:
                      type: string
                    chunk_size:
                      type: number
                    chunk_overlap:
                      type: number
                  required:
                  - name
                  - status
                  - metadata
                  - enabled
                  - owner_login
                  - chunk_size
                  - chunk_overlap
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      status:
                        type: string
                      message:
                        type: string
                      docs:
                        type: string
                    required:
                    - code
                    - status
                    - message
                    - docs
                required:
                - success
                - error
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  error:
                    type: string
                  code:
                    type: string
                required:
                - success
                - error
                - code
      tags:
      - Memory
      summary: V1 memory documents list
      x-summary-source: derived
  /v1/memory/{memoryName}/documents/{documentName}/embeddings/retry:
    get:
      operationId: v1MemoryDocumentEmbeddingsRetry
      security:
      - bearerAuth: []
      parameters:
      - schema:
          type: string
          minLength: 1
        required: true
        name: memoryName
        in: path
      - schema:
          type: string
          minLength: 1
        required: true
        name: documentName
        in: path
      responses:
        '200':
          description: 'Langbase: Memory document retry generate embeddings v1'
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      success:
                        type: boolean
                    required:
                    - success
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      status:
                        type: string
                      message:
                        type: string
                      docs:
                        type: string
                    required:
                    - code
                    - status
                    - message
                    - docs
                required:
                - data
                - error
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      status:
                        type: string
                      message:
                        type: string
                      docs:
                        type: string
                    required:
                    - code
                    - status
                    - message
                    - docs
                required:
                - success
                - error
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  error:
                    type: string
                  code:
                    type: string
                required:
                - success
                - error
                - code
      tags:
      - Memory
      summary: V1 memory document embeddings retry
      x-summary-source: derived
  /v1/memory/{memoryName}/documents/{documentName}:
    delete:
      operationId: betaMemoryDocumentDelete
      security:
      - bearerAuth: []
      parameters:
      - schema:
          type: string
          minLength: 1
        required: true
        name: memoryName
        in: path
      - schema:
          type: string
          minLength: 1
        required: true
        name: documentName
        in: path
      responses:
        '200':
          description: 'Langbase: Delete memory document v1'
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                required:
                - success
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      status:
                        type: string
                      message:
                        type: string
                      docs:
                        type: string
                    required:
                    - code
                    - status
                    - message
                    - docs
                required:
                - success
                - error
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  error:
                    type: string
                  code:
                    type: string
                required:
                - success
                - error
                - code
      tags:
      - Memory
      summary: Beta memory document delete
      x-summary-source: derived
components:
  securitySchemes:
    bearerAuth:
      bearerFormat: Langbase-API-Key
      type: http
      scheme: bearer
      description: 'Enter your Langbase API key with format: Bearer Langbase-API-Key'
x-provenance:
  method: harvested
  publisher: Langbase
  source: https://api.langbase.com/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)