> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Pending Invitations

The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`.

<Note>
  External Documentation

  To learn more, visit the [GitHub documentation](https://docs.github.com/rest/reference/orgs#list-pending-organization-invitations).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter        | Description                                      |
  | ---------------- | ------------------------------------------------ |
  | Org              | The name of the organization.                    |
  | Page             | Page number of the results to fetch.             |
  | Per Page         | The number of results per page (max 100).        |
  | Return All Pages | Automatically fetch all resources, page by page. |
</div>

## Example Output

```json theme={"dark"}
{
	"value": [
		{
			"created_at": "2016-11-30T06:46:10-08:00",
			"email": "octocat@github.com",
			"failed_at": "",
			"failed_reason": "",
			"id": 1,
			"invitation_teams_url": "https://api.github.com/organizations/2/invitations/1/teams",
			"inviter": {
				"avatar_url": "https://github.com/images/error/other_user_happy.gif",
				"events_url": "https://api.github.com/users/other_user/events{/privacy}",
				"followers_url": "https://api.github.com/users/other_user/followers",
				"following_url": "https://api.github.com/users/other_user/following{/other_user}",
				"gists_url": "https://api.github.com/users/other_user/gists{/gist_id}",
				"gravatar_id": "",
				"html_url": "https://github.com/other_user",
				"id": 1,
				"login": "other_user",
				"node_id": "MDQ6VXNlcjE=",
				"organizations_url": "https://api.github.com/users/other_user/orgs",
				"received_events_url": "https://api.github.com/users/other_user/received_events",
				"repos_url": "https://api.github.com/users/other_user/repos",
				"site_admin": false,
				"starred_url": "https://api.github.com/users/other_user/starred{/owner}{/repo}",
				"subscriptions_url": "https://api.github.com/users/other_user/subscriptions",
				"type": "User",
				"url": "https://api.github.com/users/other_user"
			},
			"login": "monalisa",
			"node_id": "MDQ6VXNlcjE=",
			"role": "direct_member",
			"team_count": 2
		}
	]
}
```

## Workflow Library Example

[List Pending Invitations with Github and Send Results Via Email](https://library.blinkops.com/workflows/list-pending-invitations-with-github-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/list-pending-invitations-with-github-and-send-results-via-email/canvas" />
</div>
