Access
Invite a member to a workspace group
POST
sessionCookiecookie
better-auth.session_token<token>The Better Auth email/password session cookie used by the web application.
workspaceId*stringLength
1 <= length- body
email*stringLength
1 <= length <= 320role?stringValue in
"admin""member"teamId?stringLength
1 <= lengthresend?booleanResponse for status 201
application/json- response
invitation*curl -X POST 'https://postbot.example/api/workspaces/string/invitations' \
-H 'Content-Type: application/json' \
-d '{
"email": "string"
}'Example Response
{
"invitation": {
"id": "string",
"email": "string",
"role": "string",
"teamId": "string",
"inviterId": "string",
"status": "string",
"expiresAt": 0,
"createdAt": 0
}
}