curl --request GET \
--url https://api.diversion.dev/v0/repos/invites \
--header 'Authorization: Bearer <token>'{
"invites": [
{
"id": 123456,
"repo_id": "repo_123456",
"repo_name": "Great Repository",
"inviting_user_name": "John Doe",
"mode": "READ",
"created": "2023-01-01T00:00:00Z",
"expires": "2023-01-31T00:00:00Z",
"organization_name": "Great Organization",
"status": "PENDING"
}
]
}Retrieves all pending repository collaboration invitations for the current user based on their email address. Returns non-expired invitations with optional status filtering (defaults to PENDING). Each invite includes repository name, organization (if applicable), inviting user details, access mode, and expiration time. Used by clients to display pending invitations requiring user action.
curl --request GET \
--url https://api.diversion.dev/v0/repos/invites \
--header 'Authorization: Bearer <token>'{
"invites": [
{
"id": 123456,
"repo_id": "repo_123456",
"repo_name": "Great Repository",
"inviting_user_name": "John Doe",
"mode": "READ",
"created": "2023-01-01T00:00:00Z",
"expires": "2023-01-31T00:00:00Z",
"organization_name": "Great Organization",
"status": "PENDING"
}
]
}This API uses OAuth 2 with the implicit grant flow
Filter invites by status
PENDING, ACCEPTED, REJECTED, CANCELED Repository invites returned
Show child attributes
Unique identifier for the repository invite
123456
ID of the repository
"repo_123456"
Name of the repository
"Great Repository"
Name of the user who is inviting to the repository
"John Doe"
READ, WRITE, ADMIN, OWNER 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"
Name of the organization
"Great Organization"
PENDING, ACCEPTED, REJECTED, CANCELED