curl --request GET \
--url https://api.diversion.dev/v0/organizations/invites \
--header 'Authorization: Bearer <token>'{
"invites": [
{
"id": 123456,
"organization_id": "org_123456",
"organization_name": "Great Organization",
"inviting_user_id": "user_123456",
"inviting_user_name": "John Doe",
"invited_email": "[email protected]",
"role": "READ",
"status": "PENDING",
"created": "2023-01-01T00:00:00Z",
"expires": "2023-01-31T00:00:00Z"
}
]
}Retrieves all pending organization invitations for the current user based on their email address. Only returns non-expired invitations with optional status filtering (defaults to PENDING). Each invite includes organization details, inviting user information, role assignment, and expiration time. Invitations are automatically sent to the user’s registered email address.
curl --request GET \
--url https://api.diversion.dev/v0/organizations/invites \
--header 'Authorization: Bearer <token>'{
"invites": [
{
"id": 123456,
"organization_id": "org_123456",
"organization_name": "Great Organization",
"inviting_user_id": "user_123456",
"inviting_user_name": "John Doe",
"invited_email": "[email protected]",
"role": "READ",
"status": "PENDING",
"created": "2023-01-01T00:00:00Z",
"expires": "2023-01-31T00:00:00Z"
}
]
}This API uses OAuth 2 with the implicit grant flow
Filter invites by status
PENDING, ACCEPTED, REJECTED, CANCELED Organization invites returned
Show child attributes
Unique identifier for the organization invite
123456
ID of the organization
"org_123456"
Name of the organization
"Great Organization"
ID of the user who is inviting to the organization
"user_123456"
Name of the user who is inviting to the organization
"John Doe"
Email of the user who is invited to the organization
READ, WRITE, ADMIN, OWNER PENDING, ACCEPTED, REJECTED, CANCELED Date and time when the invite was created
"2023-01-01T00:00:00Z"
Date and time when the invite expires
"2023-01-31T00:00:00Z"