Invitations
List invitations for the organization.
Args: organization_id: The organization ID. inviting_user_id: Filter by the ID of the inviting user. email: Filter by the email. only_pending: If True, only include pending invitations. offset: Pagination offset. limit: Pagination limit (max 100). user: The authenticated user. rbac: RBAC component. invitation_manager: Invitation manager.
Returns: List of invitations.
false020Successful Response
Invitation read model.
All invitation states.
Server-derived auto-accept intent.
falseValidation Error
GET /organizations/{organization_id}/invitations HTTP/1.1
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"inviting_user_id": "123e4567-e89b-12d3-a456-426614174000",
"email": "name@gmail.com",
"organization_id": "123e4567-e89b-12d3-a456-426614174000",
"expiration_date": "2026-01-01T00:00:00.000Z",
"state": "pending",
"auto_accept": false
}
]Create an invitation for the organization.
Args: organization_id: ID of the organization. invitation: The invitation to create. user: The authenticated user. rbac: RBAC component. invitation_manager: Invitation manager.
Raises: RoleNotFound: If the role does not exist or does not belong to the organization. ValueError: If the invitation role is not an organization role.
Returns:
The invitation, or None when the user was added directly
without creating an invitation row.
Invitation create model.
Whether to suppress the invitation email for this create request. This only controls notification delivery.
falseSuccessful Response
Invitation read model.
All invitation states.
Server-derived auto-accept intent.
falseValidation Error
POST /organizations/{organization_id}/invitations HTTP/1.1
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 98
{
"email": "name@gmail.com",
"role_id": "123e4567-e89b-12d3-a456-426614174000",
"suppress_email": false
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"inviting_user_id": "123e4567-e89b-12d3-a456-426614174000",
"email": "name@gmail.com",
"organization_id": "123e4567-e89b-12d3-a456-426614174000",
"expiration_date": "2026-01-01T00:00:00.000Z",
"state": "pending",
"auto_accept": false
}Delete an invitation.
Args: organization_id: The ID of the organization, invitation_id: ID of the invitation to delete. user: The authenticated user. rbac: RBAC component. invitation_manager: Invitation manager.
Successful Response
Validation Error
DELETE /organizations/{organization_id}/invitations/{invitation_id} HTTP/1.1
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
No content
Last updated
Was this helpful?