Invite someone by email
View as MarkdownPOST
/v1/workspaces/{workspaceId}/invitationsEmails an invitation link (valid for 7 days). Inviting an email that already has a pending invitation sends a fresh link. Owners and admins only.
curl -X POST "https://api.lydie.co/v1/workspaces/01JCQ3TZ0WJ8K4M2X7T9R6N1PA/invitations" \
-H "Authorization: Bearer $LYDIE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"email": "ada@example.com"
}'Path parameters
Body
- rolestring
One of
adminmemberguestDefault
"member" Teamspaces the invitee joins on accepting (not for guests).
Default
[]
Response
- emailstring
- rolestring
One of
owneradminmemberguest - statusstring
One of
pendingaccepteddeclinedrevoked - expiresAttimestamp
One of
viewcommenteditfull- teamspaceIdsstring[]
- createdAttimestamp
{
"id": "string",
"workspaceId": "01JCQ3TZ0WJ8K4M2X7T9R6N1PA",
"email": "ada@example.com",
"role": "owner",
"status": "pending",
"expiresAt": "2026-11-12T09:30:00.000Z",
"documentId": null,
"documentLevel": null,
"teamspaceIds": [
"string"
],
"invitedBy": null,
"createdAt": "2026-11-12T09:30:00.000Z"
}Errors use one envelope for every endpoint. See Errors and versions.