Access
Create an instance invitation
POST
sessionCookiecookie
better-auth.session_token<token>The Better Auth email/password session cookie used by the web application.
- body
targetEmail*stringLength
1 <= length <= 320expiresAt?integerRange
0 <= valueResponse for status 201
application/json- response
invitation*token*stringLength
1 <= lengthcurl -X POST 'https://postbot.example/api/access/invitations' \
-H 'Content-Type: application/json' \
-d '{
"targetEmail": "string"
}'Example Response
{
"invitation": {
"id": "string",
"targetEmail": "string",
"instanceRole": "member",
"state": "pending",
"createdByUserId": "string",
"expiresAt": 0,
"acceptedAt": 0,
"acceptedByUserId": "string",
"revokedAt": 0,
"createdAt": 0,
"updatedAt": 0
},
"token": "string"
}