Create invite
Create a new invite for the workspace.
You can create:
- Email-based invites (send to a specific email)
- Invite links (with optional restrictions and usage limits)
Use cases:
- Inviting new members to the workspace
- Generating invite links for onboarding
- Automating team invitations
POST
apiKeyheader
AuthorizationBearer <Bearer>The API will use the Authorization: Bearer <your-key> header for requests.
application/json- body
role*stringValue in
"member""admin"email*stringMatch
^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$Format
emailThis response returns the details of the newly created workspace invite.
application/json- response
This response returns the details of the newly created workspace invite.
id*stringcreated*stringtype*stringValue in
"link""email"status*stringValue in
"pending""redeemed""rejected"email*string|nullrole*stringValue in
"member""admin"resolvedAt*string|nullredeemedBy*string|nullmaxUses?|uses?numberrestrictedDomains?array<string>|nullcurl -X POST 'https://api.excalidraw.com/api/v1/workspaces/invites' \
-H 'Content-Type: application/json' \
-d '{
"role": "member",
"email": "user@example.com"
}'Example Response
{
"id": "string",
"created": "string",
"type": "link",
"status": "pending",
"email": "string",
"role": "member",
"resolvedAt": "string",
"redeemedBy": "string",
"maxUses": 1,
"uses": 0,
"restrictedDomains": [
"string"
]
}Last updated on