Skip to main content
POST
/
api
/
v1
/
orgs
/
organizations
/
{org_id}
/
projects
/
{project_id}
/
members
/
Python
import requests

url = "https://api.mem0.ai/api/v1/orgs/organizations/{org_id}/projects/{project_id}/members/"

payload = {
    "email": "<string>",
    "role": "<string>"
}
headers = {
    "Authorization": "<api-key>",
    "Content-Type": "application/json"
}

response = requests.request("POST", url, json=payload, headers=headers)

print(response.text)
{
  "message": "User added to the project successfully."
}
The API provides two roles for project members:
  • READER: Allows viewing of project resources.
  • OWNER: Grants full administrative access to manage the project and its resources.

Authorizations

Authorization
string
header
required

API key authentication. Prefix your Mem0 API key with 'Token '. Example: 'Token your_api_key'

Path Parameters

org_id
string
required

Unique identifier of the organization

project_id
string
required

Unique identifier of the project

Body

application/json
email
string
required

Email of the member to be added

role
string
required

Role of the member in the project

Response

User added to the project successfully

message
string
Example:

"User added to the project successfully."

I