List workspaces
curl --request GET \
--url https://api.memcontext.in/api/workspaces \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
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"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"workspaces": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"slug": "<string>",
"role": "owner",
"billingOwnerPlan": "free",
"createdAt": "2023-11-07T05:31:56Z"
}
]
}Workspaces
List workspaces
GET
https://api.memcontext.in
/
api
/
workspaces
List workspaces
curl --request GET \
--url https://api.memcontext.in/api/workspaces \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
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"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"workspaces": [
{
"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.
Response
200 - application/json
Workspaces the signed-in user belongs to.
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 