Mem0

Learn how to use Mem0 with Composio

Overview

Enum

MEM0

Description

Mem0 assists with AI-driven note-taking, knowledge recall, and productivity tools, allowing users to organize, search, and generate content from stored information

Authentication Details

api_key
stringRequired

Actions

Retrieve a list of projects for a specific organization.

Action Parameters

org_id
stringRequired

Action Response

data
object
successful
boolean
error

Create a new project within an organization.

Action Parameters

org_id
stringRequired
name
stringRequired

Action Response

data
object
successful
boolean
error

Get all memories

Action Parameters

filters
object
org_name
string
project_name
string
org_id
string
project_id
string
page
integer
page_size
integer

Action Response

data
object
successful
boolean
error

Retrieves the list of available filters for entities in the mem0 system. this endpoint allows developers to fetch predefined filters that can be used to query and manage entities within the b2b saas integration platform. it’s particularly useful when you need to understand what filtering options are available for narrowing down entity searches or for implementing advanced data synchronization logic. the endpoint returns a comprehensive list of filters, which may include options for filtering by entity type, creation date, modification date, or other relevant attributes specific to mem0’s entity structure. use this endpoint when you need to build dynamic filtering interfaces or when you want to explore the available filtering capabilities of the mem0 platform. note that this endpoint only provides the filter definitions and does not apply any filters to the actual entity data.

Action Parameters

Action Response

data
object
successful
boolean
error

Add a new member to a specific project within an organization.

Action Parameters

org_id
stringRequired
project_id
stringRequired
username
stringRequired
role
stringRequired

Action Response

data
object
successful
boolean
error

Get or update or delete a memory.

Action Parameters

memory_id
stringRequired
text
string

Action Response

data
object
successful
boolean
error

Update a specific project’s settings.

Action Parameters

org_id
stringRequired
project_id
stringRequired
name
string
description
string
custom_instructions
array
custom_categories
array

Action Response

data
object
successful
boolean
error

This endpoint removes a specified member from an organization within the mem0 b2b saas integration platform. it should be used when an organization administrator needs to revoke a user’s access to the organization, such as when an employee leaves the company or changes roles. the endpoint requires the organization id (specified in the path) and the username of the member to be removed. it’s important to note that this action is irreversible and will immediately terminate the user’s access to all organization resources. the endpoint does not provide any information about the success or failure of the operation in the schema, so proper error handling should be implemented in the client application.

Action Parameters

org_id
stringRequired
username
stringRequired

Action Response

data
object
successful
boolean
error

Get the latest memory export.

Action Parameters

user_id
string
run_id
string
session_id
string
app_id
string
org_id
string
project_id
string

Action Response

data
object
successful
boolean
error

Get a organization.

Action Parameters

org_id
stringRequired

Action Response

data
object
successful
boolean
error

Get a memory.

Action Parameters

memory_id
stringRequired

Action Response

data
object
successful
boolean
error

Create a new organization.

Action Parameters

name
stringRequired

Action Response

data
object
successful
boolean
error

Get or update or delete a memory.

Action Parameters

memory_id
stringRequired

Action Response

data
object
successful
boolean
error

This endpoint returns a paginated list of events associated with the authenticated user. you can filter the events by event type, start date, and end date. query parameters: - event type: filter by event type (add or search) - start date: filter events after this date (format: yyyy-mm-dd) - end date: filter events before this date (format: yyyy-mm-dd) - page: page number for pagination - page size: number of items per page (default: 50, max: 100)

Action Parameters

Action Response

data
object
successful
boolean
error

Delete a specific project and its related data.

Action Parameters

org_id
stringRequired
project_id
stringRequired

Action Response

data
object
successful
boolean
error

Delete memories

Action Parameters

user_id
string
agent_id
string
app_id
string
run_id
string
metadata
object
org_name
string
project_name
string
org_id
string
project_id
string

Action Response

data
object
successful
boolean
error

Retrieve a list of members for a specific organization.

Action Parameters

org_id
stringRequired

Action Response

data
object
successful
boolean
error

Perform a semantic search on memories.

Action Parameters

query
stringRequired
agent_id
string
user_id
string
app_id
string
run_id
string
top_k
integerDefaults to 10
fields
array
rerank
boolean
output_format
string
org_name
string
project_name
string
org_id
string
project_id
string
filter_memories
boolean
categories
array
only_metadata_based_search
boolean

Action Response

data
object
successful
boolean
error

Retrieves detailed information about a specific entity within the mem0 platform. this endpoint is used to fetch comprehensive data related to a particular entity, identified by its type and unique id. it’s particularly useful when you need to access or verify the current state, attributes, or configuration of an entity in your integration or workflow setup. the endpoint should be used when detailed information about a single entity is required, rather than for bulk data retrieval or updates. note that the specific details returned may vary depending on the entity type, and some information might be subject to user permissions or data privacy settings within mem0.

Action Parameters

entity_type
stringRequired
entity_id
stringRequired

Action Response

data
object
successful
boolean
error

Create a new agent run.

Action Parameters

run_id
stringRequired
name
string

Action Response

data
object
successful
boolean
error

Retrieve the history of a memory.

Action Parameters

memory_id
stringRequired

Action Response

data
object
successful
boolean
error

Update the role of an existing member in a specific organization.

Action Parameters

org_id
stringRequired
username
stringRequired
role
stringRequired

Action Response

data
object
successful
boolean
error

Add memories

Action Parameters

messages
array
agent_id
string
user_id
string
app_id
string
run_id
string
includes
string
excludes
string
infer
booleanDefaults to True
output_format
string
org_name
string
project_name
string
org_id
string
project_id
string

Action Response

data
object
successful
boolean
error

Create a new user.

Action Parameters

user_id
stringRequired

Action Response

data
object
successful
boolean
error

Retrieve a list of members for a specific project.

Action Parameters

org_id
stringRequired
project_id
stringRequired

Action Response

data
object
successful
boolean
error

Retrieves a list of entities from the mem0 b2b saas integration platform. this endpoint allows developers to fetch all available entities, which can represent various data objects or resources within the system. it should be used when a comprehensive view of all entities is required, such as for data synchronization, inventory checks, or generating reports. the endpoint returns a collection of entity objects, likely including their identifiers and key attributes. however, it may not provide detailed information for each entity, and there might be limitations on the number of entities returned in a single request. for more specific entity data or filtered results, additional api calls or parameters may be necessary.

Action Parameters

org_name
string
project_name
string
org_id
string
project_id
string

Action Response

data
object
successful
boolean
error

Create a new agent.

Action Parameters

agent_id
stringRequired
name
string

Action Response

data
object
successful
boolean
error

Add a new member to a specific organization.

Action Parameters

org_id
stringRequired
username
stringRequired
role
stringRequired

Action Response

data
object
successful
boolean
error

Create a structured export of memories based on a provided schema.

Action Parameters

user_id
string
run_id
string
session_id
string
app_id
string
org_id
string
project_id
string

Action Response

data
object
successful
boolean
error

Removes a member from a specific project within an organization in the mem0 b2b saas integration platform. this endpoint is used to revoke a user’s access to a particular project, which may be necessary when team members change roles, leave the organization, or no longer require access to the project. it’s important to note that this action only affects the user’s membership in the specified project and does not remove them from the organization entirely. use this endpoint carefully, as it immediately terminates the user’s ability to interact with the project through the mem0 platform.

Action Parameters

org_id
stringRequired
project_id
stringRequired
username
stringRequired

Action Response

data
object
successful
boolean
error

Delete an organization by its id.

Action Parameters

org_id
stringRequired

Action Response

data
object
successful
boolean
error

Retrieves all memories associated with a specific entity in the mem0 platform. this endpoint is used to access stored information, such as user preferences, chat history, or any other type of data that has been saved as a “memory” for the given entity. it’s particularly useful for retrieving context or historical data related to a user or a specific interaction. the endpoint should be used when you need to recall or analyze previously stored information for a particular entity. it does not create, update, or delete memories; it only retrieves existing ones. the response will likely include all memories associated with the specified entity, but the exact structure and content of the memories are not detailed in this schema.

Action Parameters

entity_type
stringRequired
entity_id
stringRequired

Action Response

data
object
successful
boolean
error

Deletes a specific entity from the mem0 system based on the provided entity type and id. this endpoint should be used when you need to permanently remove an entity, such as a user, agent, app, or run, from the system. the operation is irreversible, so it should be used with caution. this endpoint performs a hard delete, completely removing the entity and its associated data from mem0. it’s important to note that this operation may have cascading effects on related data or dependencies within the system.

Action Parameters

entity_type
stringRequired
entity_id
stringRequired

Action Response

data
object
successful
boolean
error

Retrieve details of a specific project within an organization.

Action Parameters

org_id
stringRequired
project_id
stringRequired

Action Response

data
object
successful
boolean
error

Retrieves a list of organizations registered on the mem0 platform. this endpoint is essential for administrators or authorized users to get an overview of all organizations in the system. it can be used for various purposes such as user management, access control, or generating reports. the endpoint does not provide detailed information about each organization; it likely returns a basic list of organization names or ids. note that the response may be paginated for efficiency if there are many organizations.

Action Parameters

Action Response

data
object
successful
boolean
error

Get all memories

Action Parameters

user_id
string
agent_id
string
app_id
string
run_id
string
metadata
object
categories
array
org_name
string
project_name
string
org_id
string
project_id
string
fields
array
keywords
string
page
integer
page_size
integer
start_date
string
end_date
string

Action Response

data
object
successful
boolean
error

Create a new app.

Action Parameters

app_id
stringRequired
name
string

Action Response

data
object
successful
boolean
error

Batch delete multiple memories (up to 1000) in a single api call.

Action Parameters

memory_ids
arrayRequired

Action Response

data
object
successful
boolean
error

Retrieves a list of events from the mem0 platform’s structured memory layer. this endpoint allows developers to access the interaction history and contextual information stored for ai assistants and agents. it can be used to fetch recent events, analyze user preferences, or gather data for personalization purposes. the endpoint returns events in chronological order, which may include user interactions, system actions, or any other recorded occurrences within the mem0 ecosystem. it’s particularly useful for applications that need to maintain context across multiple interactions or sessions. note that while this endpoint provides access to event data, it may not include sensitive user information and could be subject to privacy constraints.

Action Parameters

Action Response

data
object
successful
boolean
error

Search memories based on a query and filters.

Action Parameters

query
stringRequired
filters
objectRequired
top_k
integerDefaults to 10
fields
array
rerank
boolean
org_name
string
project_name
string
org_id
string
project_id
string

Action Response

data
object
successful
boolean
error

Batch update multiple memories (up to 1000) in a single api call.

Action Parameters

memories
arrayRequired

Action Response

data
object
successful
boolean
error

Update the role of a member in a specific project within an organization.

Action Parameters

org_id
stringRequired
project_id
stringRequired
username
stringRequired
role
stringRequired

Action Response

data
object
successful
boolean
error