Relevance AI User Memory API

The user-memory API from Relevance AI — 3 operation(s) for user-memory.

Operations 3

POST /user-memory/upsert UpsertUserMemory #
POST /user-memory/delete DeleteUserMemory #
POST /user-memory/list ListUserMemories #

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/relevance-ai-user-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

relevance-ai-user-memory-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Relevance AI Endpoints
  title: Relevance AI Endpoints User Memory API
  version: latest
  contact:
    email: dev@tryrelevance.com
servers:
- url: /latest
security:
- AuthorizationHeader:
  - Authorization
tags:
- name: user memory
paths:
  /user-memory/upsert:
    post:
      summary: UpsertUserMemory
      tags:
      - user memory
      description: 'Create or update a user-level memory for an agent


        ### Required permissions

        > [

        {

        "actions": [

        "agents:read"

        ]

        }

        ]'
      operationId: UpsertUserMemory
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpsertUserMemoryInput'
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpsertUserMemoryOutput'
  /user-memory/delete:
    post:
      summary: DeleteUserMemory
      tags:
      - user memory
      description: 'Delete a user-level memory


        ### Required permissions

        > [

        {

        "actions": [

        "agents:read"

        ]

        }

        ]'
      operationId: DeleteUserMemory
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteUserMemoryInput'
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteUserMemoryOutput'
  /user-memory/list:
    post:
      summary: ListUserMemories
      tags:
      - user memory
      description: 'List user-level memories for an agent


        ### Required permissions

        > [

        {

        "actions": [

        "agents:read"

        ]

        }

        ]'
      operationId: ListUserMemories
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListUserMemoriesInput'
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListUserMemoriesOutput'
components:
  schemas:
    ListUserMemoriesInput:
      type: object
      properties:
        agent_id:
          type: string
          description: Agent ID
        page:
          type: number
          default: 1
        page_size:
          type: number
          default: 50
          maximum: 100
      required:
      - agent_id
      additionalProperties: false
    ListUserMemoriesOutput:
      type: object
      properties:
        memories:
          type: array
          items:
            type: object
            properties:
              memory_id:
                type: string
                description: Unique memory identifier
              text:
                type: string
                description: Memory content
              category:
                type: string
                enum:
                - preference
                - fact
                - instruction
              importance:
                type: string
                enum:
                - high
                - medium
                - low
              reasoning:
                type: string
                description: Why this memory was saved
              created_at:
                type: string
                format: date-time
              updated_at:
                type: string
                format: date-time
            required:
            - memory_id
            - text
            - category
            - importance
            additionalProperties: false
        total:
          type: number
      required:
      - memories
      - total
      additionalProperties: false
    DeleteUserMemoryInput:
      type: object
      properties:
        memory_id:
          type: string
          description: Memory ID to delete
      required:
      - memory_id
      additionalProperties: false
    UpsertUserMemoryOutput:
      type: object
      properties:
        success:
          type: boolean
        memory_id:
          type: string
      required:
      - success
      - memory_id
      additionalProperties: false
    DeleteUserMemoryOutput:
      type: object
      properties:
        success:
          type: boolean
      required:
      - success
      additionalProperties: false
    UpsertUserMemoryInput:
      type: object
      properties:
        agent_id:
          type: string
          description: Agent ID
        memory_id:
          type: string
          description: Memory ID (optional, will generate UUID if not provided)
        text:
          type: string
          minLength: 1
          description: Memory content
        category:
          type: string
          enum:
          - preference
          - fact
          - instruction
          default: fact
        importance:
          type: string
          enum:
          - high
          - medium
          - low
          default: medium
        reasoning:
          type: string
          description: Why this memory is being saved
      required:
      - agent_id
      - text
      additionalProperties: false
  securitySchemes:
    AuthorizationHeader:
      type: apiKey
      in: header
      name: Authorization
      description: 'Authorization credentials. Header authorization should be in the form of: project:api_key'