List user invitations
/v1/viewer/users/invitations
Retrieves a paginated list of user invitations with optional filtering by status, expiration, date range, and user ID. Returns up to 100 invitations per request.
Query Parameters
cursor: optional string
Base64 encoded cursor from previous response
endDate: optional string
Filter invitations created on or before this date (YYYY-MM-DD)
limit: optional number
Number of results to return (1-100)
minimum1
maximum100
startDate: optional string
Filter invitations created on or after this date (YYYY-MM-DD)
userId: optional string
Filter by user ID. Format: usr_{32-hex-chars}
Returns
hasMore: boolean
cursor: optional string
List user invitations
curl https://api.avarasoftware.com/v1/viewer/users/invitations \
-H "Authorization: Bearer $AVARA_API_KEY"
{
"hasMore": true,
"invitations": [
{
"canManageStudies": true,
"clinicId": "550e8400-e29b-41d4-a716-446655440000",
"clinicRole": "Radiologist",
"createdAt": "2024-03-15T10:00:00Z",
"email": "dr.chen@hospital.org",
"expiry": "2024-04-15T00:00:00Z",
"firstName": "Michael",
"hasDashboardAccess": true,
"invitationId": "inv_1234567890abcdef1234567890abcdef",
"invitedSource": "api",
"inviterId": "usr_1234567890abcdef1234567890abcdef",
"lastName": "Chen",
"level": "member",
"status": "sent",
"updatedAt": "2024-03-15T10:00:00Z",
"userId": "usr_1234567890abcdef1234567890abcdef",
"invitedByApiKeyId": "550e8400-e29b-41d4-a716-446655440000",
"middleName": "David",
"phoneNumber": "5551234567",
"suffix1": "MD",
"suffix2": null
}
],
"cursor": "cursor"
}
Returns Examples
{
"hasMore": true,
"invitations": [
{
"canManageStudies": true,
"clinicId": "550e8400-e29b-41d4-a716-446655440000",
"clinicRole": "Radiologist",
"createdAt": "2024-03-15T10:00:00Z",
"email": "dr.chen@hospital.org",
"expiry": "2024-04-15T00:00:00Z",
"firstName": "Michael",
"hasDashboardAccess": true,
"invitationId": "inv_1234567890abcdef1234567890abcdef",
"invitedSource": "api",
"inviterId": "usr_1234567890abcdef1234567890abcdef",
"lastName": "Chen",
"level": "member",
"status": "sent",
"updatedAt": "2024-03-15T10:00:00Z",
"userId": "usr_1234567890abcdef1234567890abcdef",
"invitedByApiKeyId": "550e8400-e29b-41d4-a716-446655440000",
"middleName": "David",
"phoneNumber": "5551234567",
"suffix1": "MD",
"suffix2": null
}
],
"cursor": "cursor"
}