Accept workspace invitation
curl --request POST \
--url https://api.memcontext.in/api/workspaces/invitations/accept \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"token": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({token: '<string>'})
};
fetch('https://api.memcontext.in/api/workspaces/invitations/accept', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.memcontext.in/api/workspaces/invitations/accept"
payload = { "token": "<string>" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Workspaces
Accept workspace invitation
POST
https://api.memcontext.in
/
api
/
workspaces
/
invitations
/
accept
Accept workspace invitation
curl --request POST \
--url https://api.memcontext.in/api/workspaces/invitations/accept \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"token": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({token: '<string>'})
};
fetch('https://api.memcontext.in/api/workspaces/invitations/accept', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.memcontext.in/api/workspaces/invitations/accept"
payload = { "token": "<string>" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)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
Response
200
Invitation accepted and workspace membership created.
