POST
/
api
/
v1
/
orgs
/
organizations
import requests

url = "https://api.mem0.ai/api/v1/orgs/organizations/"

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

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

print(response.text)
{
  "message": "Organization created successfully."
}

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required

Name of the new organization

Response

201
application/json
Successfully created a new organization
message
string