Excalidraw+ API

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
/api/v1/workspaces/invites

Authorization

apiKey
headerAuthorizationBearer <Bearer>

The API will use the Authorization: Bearer <your-key> header for requests.

Request Body

application/json
  1. body
role*string
Value in"member""admin"
email*string
Match^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
Formatemail

Response Body

This response returns the details of the newly created workspace invite.

application/json
  1. response

This response returns the details of the newly created workspace invite.

id*string
created*string
type*string
Value in"link""email"
status*string
Value in"pending""redeemed""rejected"
email*string|null
role*string
Value in"member""admin"
resolvedAt*string|null
redeemedBy*string|null
maxUses?|
uses?number
restrictedDomains?array<string>|null
Example Request
curl -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