Projects
Invite a member to a project workspace
POST
sessionCookiecookie
better-auth.session_token<token>The Better Auth email/password session cookie used by the web application.
projectId*stringLength
1 <= length- body
email*stringLength
1 <= length <= 320role*stringValue in
"editor""viewer"Response for status 201
application/json- response
invitation*curl -X POST 'https://postbot.example/api/projects/string/invitations' \
-H 'Content-Type: application/json' \
-d '{
"email": "string",
"role": "editor"
}'Example Response
{
"invitation": {
"id": "string",
"email": "string",
"role": "owner",
"organizationId": "string",
"inviterId": "string",
"status": "pending",
"expiresAt": 0,
"createdAt": 0
}
}