Skip to main content
POST
https://api.memcontext.in
/
api
/
workspaces
/
{workspaceId}
/
invitations
Invite workspace member
curl --request POST \
  --url https://api.memcontext.in/api/workspaces/{workspaceId}/invitations \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "email": "jsmith@example.com"
}
'
{
  "invitation": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "email": "jsmith@example.com",
    "expiresAt": "2023-11-07T05:31:56Z",
    "createdAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

X-API-Key
string
header
required

API key created from the MemContext dashboard. Keys are prefixed with mc_.

Path Parameters

workspaceId
string<uuid>
required

Body

application/json
email
string<email>
required
role
enum<string>
default:member
Available options:
admin,
member,
viewer

Response

201 - application/json

Invitation email sent. Membership is created only after the invited user accepts.

invitation
object
required