Sample - GitHub REST API
GET/enterprises/{enterprise}/teams/{enterprise-team}/memberships

List members in an enterprise team

Lists the members of an enterprise team. Use enterprise and enterprise-team to identify the enterprise and team, and use page and per_page to paginate the results.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

4 parameters
enterprisestringrequired
The enterprise slug.
enterprise-teamstringrequired
The enterprise team slug, or the enterprise team ID.
per_pageintegeroptional
The number of results per page, up to 100. Defaults to 30 when omitted.
Default:30
pageintegeroptional
The page number to retrieve. Defaults to 1 when omitted.
Default:1

1 status code
200Returns an array of enterprise team members represented as user objects.
namestringoptional
emailstringoptional
loginstringrequired
idintegerrequired
node_idstringrequired
avatar_urlstringrequired
gravatar_idstringrequired
urlstringrequired
html_urlstringrequired
followers_urlstringrequired
following_urlstringrequired
gists_urlstringrequired
starred_urlstringrequired
subscriptions_urlstringrequired
organizations_urlstringrequired
repos_urlstringrequired
events_urlstringrequired
received_events_urlstringrequired
typestringrequired
site_adminbooleanrequired
starred_atstringoptional
user_view_typestringoptional

Error handling

enterprise and enterprise-team must identify the target enterprise team, using slugs or an enterprise team ID for enterprise-team. per_page must not exceed 100 and defaults to 30 when omitted; page defaults to 1 when omitted.