API
tryapis.com
Find anything
⌘ K
GitHub API Endpoints
actions
activity
apps
billing
checks
code-scanning
codes-of-conduct
emojis
enterprise-admin
gists
git
gitignore
interactions
issues
licenses
markdown
meta
migrations
oauth-authorizations
orgs
List organizations

GET

Get an organization

GET

Update an organization

PATCH

Get the audit log for an organization

GET

List users blocked by an organization

GET

Check if a user is blocked by an organization

GET

Block a user from an organization

PUT

Unblock a user from an organization

DELETE

List SAML SSO authorizations for an organization

GET

Remove a SAML SSO authorization for an organization

DELETE

List failed organization invitations

GET

List organization webhooks

GET

Create an organization webhook

POST

Get an organization webhook

GET

Update an organization webhook

PATCH

Delete an organization webhook

DELETE

Get a webhook configuration for an organization

GET

Update a webhook configuration for an organization

PATCH

List deliveries for an organization webhook

GET

Get a webhook delivery for an organization webhook

GET

Redeliver a delivery for an organization webhook

POST

Ping an organization webhook

POST

List app installations for an organization

GET

List pending organization invitations

GET

Create an organization invitation

POST

Cancel an organization invitation

DELETE

List organization invitation teams

GET

List organization members

GET

Check organization membership for a user

GET

Remove an organization member

DELETE

Get organization membership for a user

GET

Set organization membership for a user

PUT

Remove organization membership for a user

DELETE

List outside collaborators for an organization

GET

Convert an organization member to outside collaborator

PUT

Remove outside collaborator from an organization

DELETE

List public organization members

GET

Check public organization membership for a user

GET

Set public organization membership for the authenticated user

PUT

Remove public organization membership for the authenticated user

DELETE

List organization memberships for the authenticated user

GET

Get an organization membership for the authenticated user

GET

Update an organization membership for the authenticated user

PATCH

List organizations for the authenticated user

GET

List organizations for a user

GET

packages
projects
pulls
rate-limit
reactions
repos
scim
search
secret-scanning
teams
users

PUT

https://api.github.com/orgs/org/memberships/username

Only authenticated organization owners can add a member to the organization or update the member's role.

  • If the authenticated user is adding a member to the organization, the invited user will receive an email inviting them to the organization. The user's membership status will be pending until they accept the invitation.

  • Authenticated users can update a user's membership by passing the role parameter. If the authenticated user changes a member's role to admin, the affected user will receive an email notifying them that they've been made an organization owner. If the authenticated user changes an owner's role to member, no email will be sent.

Rate limits

To prevent abuse, the authenticated user is limited to 50 organization invitations per 24 hour period. If the organization is more than one month old or on a paid plan, the limit is 500 invitations per 24 hour period.

Scopes requested: user, public_repo, repo, notifications, gist
Authorization
tryapis.com never stores your requests or responses