Create workspace
curl --request POST \
--url https://api.memcontext.in/api/workspaces \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
fetch('https://api.memcontext.in/api/workspaces', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.memcontext.in/api/workspaces"
payload = { "name": "<string>" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"workspace": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"slug": "<string>",
"role": "owner",
"billingOwnerPlan": "free",
"createdAt": "2023-11-07T05:31:56Z"
}
}Workspaces
Create workspace
POST
https://api.memcontext.in
/
api
/
workspaces
Create workspace
curl --request POST \
--url https://api.memcontext.in/api/workspaces \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
fetch('https://api.memcontext.in/api/workspaces', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.memcontext.in/api/workspaces"
payload = { "name": "<string>" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"workspace": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"slug": "<string>",
"role": "owner",
"billingOwnerPlan": "free",
"createdAt": "2023-11-07T05:31:56Z"
}
}Authorizations
ApiKeyAuthCookieAuth
API key created from the MemContext dashboard. Keys are prefixed with mc_, bound to one workspace, and API-key requests cannot override that workspace.
Body
application/json
Required string length:
1 - 120Response
201 - application/json
Workspace created.
Hide child attributes
Hide child attributes
Available options:
owner, admin, member, viewer Plan tier of the workspace billing owner. Treat null as free.
Available options:
free, hobby, pro, ultimate 