Skip to main content

List organizations for the authenticated user

List organizations for the authenticated user. **OAuth scope requirements** This only lists organizations that your authorization allows you to operate on in some way (e.g., you can list teams with `read:org` scope, you can publicize your organization membership with `user` scope, etc.). Therefore, this API requires at least `user` or `read:org` scope. OAuth requests with insufficient scope receive a `403 Forbidden` response.

GET/user/orgs
Source
github-v3-rest.json
Revision
f5f067c1e6f6
Active snapshot
85e53e3d0d65

Request

Query Parameters
per_page integer
optional

Results per page (max 100)

page integer
optional

Page number of the results to fetch.

Responses

application/json array[Organization Simple object]

Response

Headers
Link string
Example:
<https://api.github.com/resource?page=2>; rel="next", <https://api.github.com/resource?page=5>; rel="last"
items Organization Simple object

Organization Simple

avatar_url string
required

Example: https://github.com/images/error/octocat_happy.gif

description string
requirednullable

Example: A great organization

events_url string<uri>
required

Example: https://api.github.com/orgs/github/events

hooks_url string
required

Example: https://api.github.com/orgs/github/hooks

id integer
required

Example: 1

issues_url string
required

Example: https://api.github.com/orgs/github/issues

login string
required

Example: github

members_url string
required

Example: https://api.github.com/orgs/github/members{/member}

node_id string
required

Example: MDEyOk9yZ2FuaXphdGlvbjE=

public_members_url string
required

Example: https://api.github.com/orgs/github/public_members{/member}

repos_url string<uri>
required

Example: https://api.github.com/orgs/github/repos

url string<uri>
required

Example: https://api.github.com/orgs/github

Not modified

application/json Basic Error object

Requires authentication

documentation_url string
optional
message string
optional
status string
optional
url string
optional
application/json Basic Error object

Forbidden

documentation_url string
optional
message string
optional
status string
optional
url string
optional