/organizations/{org_id}/invitationsList organization invitationsRetrieves pending and accepted invitations for the specified organization.
Parameters
org_idstringpathrequiredThe Neon organization ID
Responses
invitationsarray of objectrequiredList of pending invitations for the organization.
Show child attributes
Show array items
emailstring · emailrequiredEmail of the invited user
idstring · uuidrequiredThe invitation ID.
invited_atstring · date-timerequiredTimestamp when the invitation was created
invited_bystring · uuidrequiredUUID for the user_id who extended the invitation
org_idstringrequiredOrganization id as it is stored in Neon
rolestringrequiredOrganization member's role. `admin`: full administrative access. `editor` (and its legacy alias `member`): standard access governed by project permissions. `viewer` and `collaborator`: additional scoped project roles. Some values may not be available for all organizations.
{
"invitations": [
{
"email": "invited1@email.com",
"id": "db8faf32-b07f-4b0f-94c8-5c288909f5d3",
"invited_at": "2024-02-23T17:42:25Z",
"invited_by": "a1b2c3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"org_id": "my-organization-morning-bread-81040908",
"role": "admin"
},
{
"email": "invited2@email.com",
"id": "c52f0d22-ebd9-4708-ae44-2872cae49a83",
"invited_at": "2024-02-23T12:42:25Z",
"invited_by": "a1b2c3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"org_id": "my-organization-morning-bread-81040908",
"role": "member"
}
]
}codestringrequiredmessagestringrequiredError message
request_idstringUnique identifier for the request, useful for debugging. You can set this value manually by including an `X-Request-ID` header in the request. If not provided, the value will be generated automatically.
{
"code": "",
"message": "string",
"request_id": "string"
}