List workspace team
curl --request GET \
--url https://api.memcontext.in/api/workspaces/{workspaceId}/team \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.memcontext.in/api/workspaces/{workspaceId}/team', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.memcontext.in/api/workspaces/{workspaceId}/team"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"currentUserRole": "owner",
"members": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "<string>",
"role": "owner",
"createdAt": "2023-11-07T05:31:56Z",
"email": "jsmith@example.com",
"name": "<string>",
"image": "<string>"
}
],
"invitations": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "jsmith@example.com",
"role": "admin",
"expiresAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}
]
}Workspaces
List workspace team
GET
https://api.memcontext.in
/
api
/
workspaces
/
{workspaceId}
/
team
List workspace team
curl --request GET \
--url https://api.memcontext.in/api/workspaces/{workspaceId}/team \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.memcontext.in/api/workspaces/{workspaceId}/team', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.memcontext.in/api/workspaces/{workspaceId}/team"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"currentUserRole": "owner",
"members": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "<string>",
"role": "owner",
"createdAt": "2023-11-07T05:31:56Z",
"email": "jsmith@example.com",
"name": "<string>",
"image": "<string>"
}
],
"invitations": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "jsmith@example.com",
"role": "admin",
"expiresAt": "2023-11-07T05:31:56Z",
"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.
Path Parameters
Response
200 - application/json
Current members and pending invitations for a workspace.
Available options:
owner, admin, member, viewer Hide child attributes
Hide child attributes
