ServicesOrganizationsHTTP APIInvitations

Invite_member

POST
/api/organizations/invitations

Invite a user to the active Organization with invite permission.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Request Body

application/json
  1. body

Invite a user with an Organization role and optional invitation lifetime.

email*string
expiresInDays?|null
role*organization.OrganizationRole

Organization membership role.

Value in"owner""member""guest"

Response Body

Success

application/json
  1. response

The provider invitation identity.

invitationId*string
curl -X POST 'https://api.spiraldb.dev/api/organizations/invitations' \  -H 'Content-Type: application/json' \  -d '{  "email": "string",  "role": "owner"}'
{  "invitationId": "string"}