GitHub · Capability

GitHub Org API — Lists

GitHub Org API — Lists. 49 operations. Lead operation: GitHub List Organizations. Self-contained Naftiko capability covering one Github business surface.

Run with Naftiko GithubLists

What You Can Do

GET
Listorganizations — GitHub List Organizations
/v1/organizations
GET
Deprecatedlistcustomrepositoryrolesinanorganization — GitHub Deprecated - List Custom Repository Roles in an Organization
/v1/organizations/{organization-id}/custom-roles
GET
Listrepositorieswithgithubactionscacheusageforanorganization — GitHub List Repositories with Github Actions Cache Usage for an Organization
/v1/orgs/{org}/actions/cache/usage-by-repository
GET
Listselectedrepositoriesenabledforgithubactionsinanorganization — GitHub List Selected Repositories Enabled for Github Actions in an Organization
/v1/orgs/{org}/actions/permissions/repositories
GET
Listselfhostedrunnergroupsforanorganization — GitHub List Self-hosted Runner Groups for an Organization
/v1/orgs/{org}/actions/runner-groups
GET
Listrepositoryaccesstoselfhostedrunnergroupinanorganization — GitHub List Repository Access to Self-hosted Runner Group in an Organization
/v1/orgs/{org}/actions/runner-groups/{runner-group-id}/repositories
GET
Listselfhostedrunnersingroupforanorganization — GitHub List Self-hosted Runners in Group for an Organization
/v1/orgs/{org}/actions/runner-groups/{runner-group-id}/runners
GET
Listselfhostedrunnersforanorganization — GitHub List Self-hosted Runners for an Organization
/v1/orgs/{org}/actions/runners
GET
Listrunnerapplicationsforanorganization — GitHub List Runner Applications for an Organization
/v1/orgs/{org}/actions/runners/downloads
GET
Listlabelsforselfhostedrunnerforanorganization — GitHub List Labels for Self-hosted Runner for an Organization
/v1/orgs/{org}/actions/runners/{runner-id}/labels
GET
Listorganizationsecrets — GitHub List Organization Secrets
/v1/orgs/{org}/actions/secrets
GET
Listselectedrepositoriesforanorganizationsecret — GitHub List Selected Repositories for an Organization Secret
/v1/orgs/{org}/actions/secrets/{secret-name}/repositories
GET
Listorganizationvariables — GitHub List Organization Variables
/v1/orgs/{org}/actions/variables
GET
Listselectedrepositoriesforanorganizationvariable — GitHub List Selected Repositories for an Organization Variable
/v1/orgs/{org}/actions/variables/{name}/repositories
GET
Listcodescanningalertsforanorganization — GitHub List Code Scanning Alerts for an Organization
/v1/orgs/{org}/code-scanning/alerts
GET
Listcustomrepositoryrolesinanorganization — GitHub List Custom Repository Roles in an Organization
/v1/orgs/{org}/custom-repository-roles
GET
Listdependabotalertsforanorganization — GitHub List Dependabot Alerts for an Organization
/v1/orgs/{org}/dependabot/alerts
GET
Listorganizationsecrets — GitHub List Organization Secrets
/v1/orgs/{org}/dependabot/secrets
GET
Listselectedrepositoriesforanorganizationsecret — GitHub List Selected Repositories for an Organization Secret
/v1/orgs/{org}/dependabot/secrets/{secret-name}/repositories
GET
Getlistofconflictingpackagesduringdockermigrationfororganization — GitHub Get List of Conflicting Packages During Docker Migration for Organization
/v1/orgs/{org}/docker/conflicts
GET
Listpublicorganizationevents — GitHub List Public Organization Events
/v1/orgs/{org}/events
GET
Listexternalgroupsinanorganization — GitHub List External Groups in an Organization
/v1/orgs/{org}/external-groups
GET
Listorganizationwebhooks — GitHub List Organization Webhooks
/v1/orgs/{org}/hooks
GET
Listdeliveriesforanorganizationwebhook — GitHub List Deliveries for an Organization Webhook
/v1/orgs/{org}/hooks/{hook-id}/deliveries
GET
Listappinstallationsforanorganization — GitHub List App Installations for an Organization
/v1/orgs/{org}/installations
GET
Listorganizationissuesassignedtotheauthenticateduser — GitHub List Organization Issues Assigned to the Authenticated User
/v1/orgs/{org}/issues
GET
Listorganizationmembers — GitHub List Organization Members
/v1/orgs/{org}/members
GET
Listorganizationmigrations — GitHub List Organization Migrations
/v1/orgs/{org}/migrations
GET
Listrepositoriesinanorganizationmigration — GitHub List Repositories in an Organization Migration
/v1/orgs/{org}/migrations/{migration-id}/repositories
GET
Listoutsidecollaboratorsforanorganization — GitHub List Outside Collaborators for an Organization
/v1/orgs/{org}/outside-collaborators
GET
Listpackagesforanorganization — GitHub List Packages for an Organization
/v1/orgs/{org}/packages
GET
Listpackageversionsforpackageownedbyanorganization — GitHub List Package Versions for Package Owned by an Organization
/v1/orgs/{org}/packages/{package-type}/{package-name}/versions
GET
Listprereceivehooksforanorganization — GitHub List Pre-receive Hooks for an Organization
/v1/orgs/{org}/pre-receive-hooks
GET
Listorganizationprojects — GitHub List Organization Projects
/v1/orgs/{org}/projects
GET
Listpublicorganizationmembers — GitHub List Public Organization Members
/v1/orgs/{org}/public-members
GET
Listorganizationrepositories — GitHub List Organization Repositories
/v1/orgs/{org}/repos
GET
Listrepositoryfinegrainedpermissionsforanorganization — GitHub List Repository Fine-grained Permissions for an Organization
/v1/orgs/{org}/repository-fine-grained-permissions
GET
Listsecretscanningalertsforanorganization — GitHub List Secret Scanning Alerts for an Organization
/v1/orgs/{org}/secret-scanning/alerts
GET
Listsecuritymanagerteams — GitHub List Security Manager Teams
/v1/orgs/{org}/security-managers
GET
Listteams — GitHub List Teams
/v1/orgs/{org}/teams
GET
Listdiscussions — GitHub List Discussions
/v1/orgs/{org}/teams/{team-slug}/discussions
GET
Listdiscussioncomments — GitHub List Discussion Comments
/v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/comments
GET
Listreactionsforteamdiscussioncomment — GitHub List Reactions for Team Discussion Comment
/v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/comments/{comment-number}/reactions
GET
Listreactionsforteamdiscussion — GitHub List Reactions for Team Discussion
/v1/orgs/{org}/teams/{team-slug}/discussions/{discussion-number}/reactions
GET
Listconnectionbetweenanexternalgroupandteam — GitHub List Connection Between an External Group and Team
/v1/orgs/{org}/teams/{team-slug}/external-groups
GET
Listteammembers — GitHub List Team Members
/v1/orgs/{org}/teams/{team-slug}/members
GET
Listteamprojects — GitHub List Team Projects
/v1/orgs/{org}/teams/{team-slug}/projects
GET
Listteamrepositories — GitHub List Team Repositories
/v1/orgs/{org}/teams/{team-slug}/repos
GET
Listchildteams — GitHub List Child Teams
/v1/orgs/{org}/teams/{team-slug}/teams

MCP Tools

github-list-organizations

GitHub List Organizations

read-only idempotent
github-deprecated-list-custom-repository

GitHub Deprecated - List Custom Repository Roles in an Organization

read-only idempotent
github-list-repositories-github-actions

GitHub List Repositories with Github Actions Cache Usage for an Organization

read-only idempotent
github-list-selected-repositories-enabled

GitHub List Selected Repositories Enabled for Github Actions in an Organization

read-only idempotent
github-list-self-hosted-runner

GitHub List Self-hosted Runner Groups for an Organization

read-only idempotent
github-list-repository-access-self

GitHub List Repository Access to Self-hosted Runner Group in an Organization

read-only idempotent
github-list-self-hosted-runners

GitHub List Self-hosted Runners in Group for an Organization

read-only idempotent
github-list-self-hosted-runners-2

GitHub List Self-hosted Runners for an Organization

read-only idempotent
github-list-runner-applications-organization

GitHub List Runner Applications for an Organization

read-only idempotent
github-list-labels-self-hosted

GitHub List Labels for Self-hosted Runner for an Organization

read-only idempotent
github-list-organization-secrets

GitHub List Organization Secrets

read-only idempotent
github-list-selected-repositories-organization

GitHub List Selected Repositories for an Organization Secret

read-only idempotent
github-list-organization-variables

GitHub List Organization Variables

read-only idempotent
github-list-selected-repositories-organization-2

GitHub List Selected Repositories for an Organization Variable

read-only idempotent
github-list-code-scanning-alerts

GitHub List Code Scanning Alerts for an Organization

read-only idempotent
github-list-custom-repository-roles

GitHub List Custom Repository Roles in an Organization

read-only idempotent
github-list-dependabot-alerts-organization

GitHub List Dependabot Alerts for an Organization

read-only idempotent
github-list-organization-secrets-2

GitHub List Organization Secrets

read-only idempotent
github-list-selected-repositories-organization-3

GitHub List Selected Repositories for an Organization Secret

read-only idempotent
github-get-list-conflicting-packages

GitHub Get List of Conflicting Packages During Docker Migration for Organization

read-only idempotent
github-list-public-organization-events

GitHub List Public Organization Events

read-only idempotent
github-list-external-groups-organization

GitHub List External Groups in an Organization

read-only idempotent
github-list-organization-webhooks

GitHub List Organization Webhooks

read-only idempotent
github-list-deliveries-organization-webhook

GitHub List Deliveries for an Organization Webhook

read-only idempotent
github-list-app-installations-organization

GitHub List App Installations for an Organization

read-only idempotent
github-list-organization-issues-assigned

GitHub List Organization Issues Assigned to the Authenticated User

read-only idempotent
github-list-organization-members

GitHub List Organization Members

read-only idempotent
github-list-organization-migrations

GitHub List Organization Migrations

read-only idempotent
github-list-repositories-organization-migration

GitHub List Repositories in an Organization Migration

read-only idempotent
github-list-outside-collaborators-organization

GitHub List Outside Collaborators for an Organization

read-only idempotent
github-list-packages-organization

GitHub List Packages for an Organization

read-only idempotent
github-list-package-versions-package

GitHub List Package Versions for Package Owned by an Organization

read-only idempotent
github-list-pre-receive-hooks

GitHub List Pre-receive Hooks for an Organization

read-only idempotent
github-list-organization-projects

GitHub List Organization Projects

read-only idempotent
github-list-public-organization-members

GitHub List Public Organization Members

read-only idempotent
github-list-organization-repositories

GitHub List Organization Repositories

read-only idempotent
github-list-repository-fine-grained

GitHub List Repository Fine-grained Permissions for an Organization

read-only idempotent
github-list-secret-scanning-alerts

GitHub List Secret Scanning Alerts for an Organization

read-only idempotent
github-list-security-manager-teams

GitHub List Security Manager Teams

read-only idempotent
github-list-teams

GitHub List Teams

read-only idempotent
github-list-discussions

GitHub List Discussions

read-only idempotent
github-list-discussion-comments

GitHub List Discussion Comments

read-only idempotent
github-list-reactions-team-discussion

GitHub List Reactions for Team Discussion Comment

read-only idempotent
github-list-reactions-team-discussion-2

GitHub List Reactions for Team Discussion

read-only idempotent
github-list-connection-between-external

GitHub List Connection Between an External Group and Team

read-only idempotent
github-list-team-members

GitHub List Team Members

read-only idempotent
github-list-team-projects

GitHub List Team Projects

read-only idempotent
github-list-team-repositories

GitHub List Team Repositories

read-only idempotent
github-list-child-teams

GitHub List Child Teams

read-only idempotent

Capability Spec

organizations-lists.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Org API — Lists
  description: 'GitHub Org API — Lists. 49 operations. Lead operation: GitHub List Organizations. Self-contained Naftiko capability
    covering one Github business surface.'
  tags:
  - Github
  - Lists
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_API_KEY: GITHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: organizations-lists
    baseUri: ''
    description: GitHub Org API — Lists business capability. Self-contained, no shared references.
    resources:
    - name: organizations
      path: /organizations
      operations:
      - name: listorganizations
        method: GET
        description: GitHub List Organizations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: organizations-organization_id-custom_roles
      path: /organizations/{organization_id}/custom_roles
      operations:
      - name: deprecatedlistcustomrepositoryrolesinanorganization
        method: GET
        description: GitHub Deprecated - List Custom Repository Roles in an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: organization_id
          in: path
          type: string
          description: The unique identifier of the organization.
          required: true
    - name: orgs-org-actions-cache-usage-by-repository
      path: /orgs/{org}/actions/cache/usage-by-repository
      operations:
      - name: listrepositorieswithgithubactionscacheusageforanorganization
        method: GET
        description: GitHub List Repositories with Github Actions Cache Usage for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-actions-permissions-repositories
      path: /orgs/{org}/actions/permissions/repositories
      operations:
      - name: listselectedrepositoriesenabledforgithubactionsinanorganization
        method: GET
        description: GitHub List Selected Repositories Enabled for Github Actions in an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-actions-runner-groups
      path: /orgs/{org}/actions/runner-groups
      operations:
      - name: listselfhostedrunnergroupsforanorganization
        method: GET
        description: GitHub List Self-hosted Runner Groups for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-actions-runner-groups-runner_group_id-repositories
      path: /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories
      operations:
      - name: listrepositoryaccesstoselfhostedrunnergroupinanorganization
        method: GET
        description: GitHub List Repository Access to Self-hosted Runner Group in an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-actions-runner-groups-runner_group_id-runners
      path: /orgs/{org}/actions/runner-groups/{runner_group_id}/runners
      operations:
      - name: listselfhostedrunnersingroupforanorganization
        method: GET
        description: GitHub List Self-hosted Runners in Group for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-actions-runners
      path: /orgs/{org}/actions/runners
      operations:
      - name: listselfhostedrunnersforanorganization
        method: GET
        description: GitHub List Self-hosted Runners for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-actions-runners-downloads
      path: /orgs/{org}/actions/runners/downloads
      operations:
      - name: listrunnerapplicationsforanorganization
        method: GET
        description: GitHub List Runner Applications for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-actions-runners-runner_id-labels
      path: /orgs/{org}/actions/runners/{runner_id}/labels
      operations:
      - name: listlabelsforselfhostedrunnerforanorganization
        method: GET
        description: GitHub List Labels for Self-hosted Runner for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-actions-secrets
      path: /orgs/{org}/actions/secrets
      operations:
      - name: listorganizationsecrets
        method: GET
        description: GitHub List Organization Secrets
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-actions-secrets-secret_name-repositories
      path: /orgs/{org}/actions/secrets/{secret_name}/repositories
      operations:
      - name: listselectedrepositoriesforanorganizationsecret
        method: GET
        description: GitHub List Selected Repositories for an Organization Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-actions-variables
      path: /orgs/{org}/actions/variables
      operations:
      - name: listorganizationvariables
        method: GET
        description: GitHub List Organization Variables
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-actions-variables-name-repositories
      path: /orgs/{org}/actions/variables/{name}/repositories
      operations:
      - name: listselectedrepositoriesforanorganizationvariable
        method: GET
        description: GitHub List Selected Repositories for an Organization Variable
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-code-scanning-alerts
      path: /orgs/{org}/code-scanning/alerts
      operations:
      - name: listcodescanningalertsforanorganization
        method: GET
        description: GitHub List Code Scanning Alerts for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: state
          in: query
          type: string
          description: If specified, only code scanning alerts with this state will be returned.
        - name: sort
          in: query
          type: string
          description: The property by which to sort the results.
        - name: severity
          in: query
          type: string
          description: If specified, only code scanning alerts with this severity will be returned.
    - name: orgs-org-custom-repository-roles
      path: /orgs/{org}/custom-repository-roles
      operations:
      - name: listcustomrepositoryrolesinanorganization
        method: GET
        description: GitHub List Custom Repository Roles in an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-dependabot-alerts
      path: /orgs/{org}/dependabot/alerts
      operations:
      - name: listdependabotalertsforanorganization
        method: GET
        description: GitHub List Dependabot Alerts for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-dependabot-secrets
      path: /orgs/{org}/dependabot/secrets
      operations:
      - name: listorganizationsecrets
        method: GET
        description: GitHub List Organization Secrets
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-dependabot-secrets-secret_name-repositories
      path: /orgs/{org}/dependabot/secrets/{secret_name}/repositories
      operations:
      - name: listselectedrepositoriesforanorganizationsecret
        method: GET
        description: GitHub List Selected Repositories for an Organization Secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-docker-conflicts
      path: /orgs/{org}/docker/conflicts
      operations:
      - name: getlistofconflictingpackagesduringdockermigrationfororganization
        method: GET
        description: GitHub Get List of Conflicting Packages During Docker Migration for Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-events
      path: /orgs/{org}/events
      operations:
      - name: listpublicorganizationevents
        method: GET
        description: GitHub List Public Organization Events
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-external-groups
      path: /orgs/{org}/external-groups
      operations:
      - name: listexternalgroupsinanorganization
        method: GET
        description: GitHub List External Groups in an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: page
          in: query
          type: integer
          description: Page token
        - name: display_name
          in: query
          type: string
          description: Limits the list to groups containing the text in the group name
    - name: orgs-org-hooks
      path: /orgs/{org}/hooks
      operations:
      - name: listorganizationwebhooks
        method: GET
        description: GitHub List Organization Webhooks
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-hooks-hook_id-deliveries
      path: /orgs/{org}/hooks/{hook_id}/deliveries
      operations:
      - name: listdeliveriesforanorganizationwebhook
        method: GET
        description: GitHub List Deliveries for an Organization Webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: redelivery
          in: query
          type: boolean
    - name: orgs-org-installations
      path: /orgs/{org}/installations
      operations:
      - name: listappinstallationsforanorganization
        method: GET
        description: GitHub List App Installations for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-issues
      path: /orgs/{org}/issues
      operations:
      - name: listorganizationissuesassignedtotheauthenticateduser
        method: GET
        description: GitHub List Organization Issues Assigned to the Authenticated User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter
          in: query
          type: string
          description: Indicates which sorts of issues to return. `assigned` means issues assigned to you. `created` means
            issues created by you. `mentioned` means issues mentioning y
        - name: state
          in: query
          type: string
          description: Indicates the state of the issues to return.
        - name: sort
          in: query
          type: string
          description: What to sort results by.
    - name: orgs-org-members
      path: /orgs/{org}/members
      operations:
      - name: listorganizationmembers
        method: GET
        description: GitHub List Organization Members
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter
          in: query
          type: string
          description: Filter members returned in the list. `2fa_disabled` means that only members without [two-factor authentication](https://github.com/blog/1614-two-factor-authenti
        - name: role
          in: query
          type: string
          description: Filter members returned by their role.
    - name: orgs-org-migrations
      path: /orgs/{org}/migrations
      operations:
      - name: listorganizationmigrations
        method: GET
        description: GitHub List Organization Migrations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: exclude
          in: query
          type: array
          description: Exclude attributes from the API response to improve performance
    - name: orgs-org-migrations-migration_id-repositories
      path: /orgs/{org}/migrations/{migration_id}/repositories
      operations:
      - name: listrepositoriesinanorganizationmigration
        method: GET
        description: GitHub List Repositories in an Organization Migration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-outside_collaborators
      path: /orgs/{org}/outside_collaborators
      operations:
      - name: listoutsidecollaboratorsforanorganization
        method: GET
        description: GitHub List Outside Collaborators for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter
          in: query
          type: string
          description: Filter the list of outside collaborators. `2fa_disabled` means that only outside collaborators without
            [two-factor authentication](https://github.com/blog/1614-
    - name: orgs-org-packages
      path: /orgs/{org}/packages
      operations:
      - name: listpackagesforanorganization
        method: GET
        description: GitHub List Packages for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: package_type
          in: query
          type: string
          description: 'The type of supported package. Packages in GitHub''s Gradle registry have the type `maven`. Docker
            images pushed to GitHub''s Container registry (`ghcr.io`) have '
          required: true
        - name: page
          in: query
          type: integer
          description: The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/[email protected]/rest/using-
        - name: per_page
          in: query
          type: integer
          description: The number of results per page (max 100). For more information, see "[Using pagination in the REST
            API](https://docs.github.com/[email protected]/rest/using
    - name: orgs-org-packages-package_type-package_name-versions
      path: /orgs/{org}/packages/{package_type}/{package_name}/versions
      operations:
      - name: listpackageversionsforpackageownedbyanorganization
        method: GET
        description: GitHub List Package Versions for Package Owned by an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: state
          in: query
          type: string
          description: The state of the package, either active or deleted.
    - name: orgs-org-pre-receive-hooks
      path: /orgs/{org}/pre-receive-hooks
      operations:
      - name: listprereceivehooksforanorganization
        method: GET
        description: GitHub List Pre-receive Hooks for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: sort
          in: query
          type: string
          description: The sort order for the response collection.
    - name: orgs-org-projects
      path: /orgs/{org}/projects
      operations:
      - name: listorganizationprojects
        method: GET
        description: GitHub List Organization Projects
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: state
          in: query
          type: string
          description: Indicates the state of the projects to return.
    - name: orgs-org-public_members
      path: /orgs/{org}/public_members
      operations:
      - name: listpublicorganizationmembers
        method: GET
        description: GitHub List Public Organization Members
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-repos
      path: /orgs/{org}/repos
      operations:
      - name: listorganizationrepositories
        method: GET
        description: GitHub List Organization Repositories
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: type
          in: query
          type: string
          description: Specifies the types of repositories you want returned. `internal` is not yet supported when a GitHub
            App calls this endpoint with an installation access token.
        - name: sort
          in: query
          type: string
          description: The property to sort the results by.
        - name: direction
          in: query
          type: string
          description: 'The order to sort by. Default: `asc` when using `full_name`, otherwise `desc`.'
    - name: orgs-org-repository-fine-grained-permissions
      path: /orgs/{org}/repository-fine-grained-permissions
      operations:
      - name: listrepositoryfinegrainedpermissionsforanorganization
        method: GET
        description: GitHub List Repository Fine-grained Permissions for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-secret-scanning-alerts
      path: /orgs/{org}/secret-scanning/alerts
      operations:
      - name: listsecretscanningalertsforanorganization
        method: GET
        description: GitHub List Secret Scanning Alerts for an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-security-managers
      path: /orgs/{org}/security-managers
      operations:
      - name: listsecuritymanagerteams
        method: GET
        description: GitHub List Security Manager Teams
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-teams
      path: /orgs/{org}/teams
      operations:
      - name: listteams
        method: GET
        description: GitHub List Teams
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-teams-team_slug-discussions
      path: /orgs/{org}/teams/{team_slug}/discussions
      operations:
      - name: listdiscussions
        method: GET
        description: GitHub List Discussions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: pinned
          in: query
          type: string
          description: Pinned discussions only filter
    - name: orgs-org-teams-team_slug-discussions-discussion_number-comments
      path: /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments
      operations:
      - name: listdiscussioncomments
        method: GET
        description: GitHub List Discussion Comments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-teams-team_slug-discussions-discussion_number-comments-comment_number-r
      path: /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions
      operations:
      - name: listreactionsforteamdiscussioncomment
        method: GET
        description: GitHub List Reactions for Team Discussion Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: content
          in: query
          type: string
          description: Returns a single [reaction type](https://docs.github.com/[email protected]/rest/reactions/reactions#about-reactions).
            Omit this parameter to list all reacti
    - name: orgs-org-teams-team_slug-discussions-discussion_number-reactions
      path: /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions
      operations:
      - name: listreactionsforteamdiscussion
        method: GET
        description: GitHub List Reactions for Team Discussion
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: content
          in: query
          type: string
          description: Returns a single [reaction type](https://docs.github.com/[email protected]/rest/reactions/reactions#about-reactions).
            Omit this parameter to list all reacti
    - name: orgs-org-teams-team_slug-external-groups
      path: /orgs/{org}/teams/{team_slug}/external-groups
      operations:
      - name: listconnectionbetweenanexternalgroupandteam
        method: GET
        description: GitHub List Connection Between an External Group and Team
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-teams-team_slug-members
      path: /orgs/{org}/teams/{team_slug}/members
      operations:
      - name: listteammembers
        method: GET
        description: GitHub List Team Members
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: role
          in: query
          type: string
          description: Filters members returned by their role in the team.
    - name: orgs-org-teams-team_slug-projects
      path: /orgs/{org}/teams/{team_slug}/projects
      operations:
      - name: listteamprojects
        method: GET
        description: GitHub List Team Projects
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-teams-team_slug-repos
      path: /orgs/{org}/teams/{team_slug}/repos
      operations:
      - name: listteamrepositories
        method: GET
        description: GitHub List Team Repositories
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: orgs-org-teams-team_slug-teams
      path: /orgs/{org}/teams/{team_slug}/teams
      operations:
      - name: listchildteams
        method: GET
        description: GitHub List Child Teams
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.GITHUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: organizations-lists-rest
    port: 8080
    description: REST adapter for GitHub Org API — Lists. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/organizations
      name: organizations
      description: REST surface for organizations.
      operations:
      - method: GET
        name: listorganizations
        description: GitHub List Organizations
        call: organizations-lists.listorganizations
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/organizations/{organization-id}/custom-roles
      name: organizations-organization-id-custom-roles
      description: REST surface for organizations-organization_id-custom_roles.
      operations:
      - method: GET
        name: deprecatedlistcustomrepositoryrolesinanorganization
        description: GitHub Deprecated - List Custom Repository Roles in an Organization
        call: organizations-lists.deprecatedlistcustomrepositoryrolesinanorganization
        with:
          organization_id: rest.organization_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/cache/usage-by-repository
      name: orgs-org-actions-cache-usage-by-repository
      description: REST surface for orgs-org-actions-cache-usage-by-repository.
      operations:
      - method: GET
        name: listrepositorieswithgithubactionscacheusageforanorganization
        description: GitHub List Repositories with Github Actions Cache Usage for an Organization
        call: organizations-lists.listrepositorieswithgithubactionscacheusageforanorganization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/permissions/repositories
      name: orgs-org-actions-permissions-repositories
      description: REST surface for orgs-org-actions-permissions-repositories.
      operations:
      - method: GET
        name: listselectedrepositoriesenabledforgithubactionsinanorganization
        description: GitHub List Selected Repositories Enabled for Github Actions in an Organization
        call: organizations-lists.listselectedrepositoriesenabledforgithubactionsinanorganization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/runner-groups
      name: orgs-org-actions-runner-groups
      description: REST surface for orgs-org-actions-runner-groups.
      operations:
      - method: GET
        name: listselfhostedrunnergroupsforanorganization
        description: GitHub List Self-hosted Runner Groups for an Organization
        call: organizations-lists.listselfhostedrunnergroupsforanorganization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/runner-groups/{runner-group-id}/repositories
      name: orgs-org-actions-runner-groups-runner-group-id-repositories
      description: REST surface for orgs-org-actions-runner-groups-runner_group_id-repositories.
      operations:
      - method: GET
        name: listrepositoryaccesstoselfhostedrunnergroupinanorganization
        description: GitHub List Repository Access to Self-hosted Runner Group in an Organization
        call: organizations-lists.listrepositoryaccesstoselfhostedrunnergroupinanorganization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/runner-groups/{runner-group-id}/runners
      name: orgs-org-actions-runner-groups-runner-group-id-runners
      description: REST surface for orgs-org-actions-runner-groups-runner_group_id-runners.
      operations:
      - method: GET
        name: listselfhostedrunnersingroupforanorganization
        description: GitHub List Self-hosted Runners in Group for an Organization
        call: organizations-lists.listselfhostedrunnersingroupforanorganization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/runners
      name: orgs-org-actions-runners
      description: REST surface for orgs-org-actions-runners.
      operations:
      - method: GET
        name: listselfhostedrunnersforanorganization
        description: GitHub List Self-hosted Runners for an Organization
        call: organizations-lists.listselfhostedrunnersforanorganization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/runners/downloads
      name: orgs-org-actions-runners-downloads
      description: REST surface for orgs-org-actions-runners-downloads.
      operations:
      - method: GET
        name: listrunnerapplicationsforanorganization
        description: GitHub List Runner Applications for an Organization
        call: organizations-lists.listrunnerapplicationsforanorganization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/runners/{runner-id}/labels
      name: orgs-org-actions-runners-runner-id-labels
      description: REST surface for orgs-org-actions-runners-runner_id-labels.
      operations:
      - method: GET
        name: listlabelsforselfhostedrunnerforanorganization
        description: GitHub List Labels for Self-hosted Runner for an Organization
        call: organizations-lists.listlabelsforselfhostedrunnerforanorganization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/secrets
      name: orgs-org-actions-secrets
      description: REST surface for orgs-org-actions-secrets.
      operations:
      - method: GET
        name: listorganizationsecrets
        description: GitHub List Organization Secrets
        call: organizations-lists.listorganizationsecrets
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/secrets/{secret-name}/repositories
      name: orgs-org-actions-secrets-secret-name-repositories
      description: REST surface for orgs-org-actions-secrets-secret_name-repositories.
      operations:
      - method: GET
        name: listselectedrepositoriesforanorganizationsecret
        description: GitHub List Selected Repositories for an Organization Secret
        call: organizations-lists.listselectedrepositoriesforanorganizationsecret
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/variables
      name: orgs-org-actions-variables
      description: REST surface for orgs-org-actions-variables.
      operations:
      - method: GET
        name: listorganizationvariables
        description: GitHub List Organization Variables
        call: organizations-lists.listorganizationvariables
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/actions/variables/{name}/repositories
      name: orgs-org-actions-variables-name-repositories
      description: REST surface for orgs-org-actions-variables-name-repositories.
      operations:
      - method: GET
        name: listselectedrepositoriesforanorganizationvariable
        description: GitHub List Selected Repositories for an Organization Variable
        call: organizations-lists.listselectedrepositoriesforanorganizationvariable
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/code-scanning/alerts
      name: orgs-org-code-scanning-alerts
      description: REST surface for orgs-org-code-scanning-alerts.
      operations:
      - method: GET
        name: listcodescanningalertsforanorganization
        description: GitHub List Code Scanning Alerts for an Organization
        call: organizations-lists.listcodescanningalertsforanorganization
        with:
          state: rest.state
          sort: rest.sort
          severity: rest.severity
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org}/custom-repository-roles
      name: orgs-org-custom-repository-roles
      description: REST surface for orgs-org-custom-repository-roles.
      operations:
      - method: GET
        name: listcustomrepositoryrolesinanorganization
        description: GitHub List Custom Repository Roles in an Organization
        call: organizations-lists.listcustomrepositoryrolesinanorganization
        outputParameters:
        - type: object
          mapping: $.
    - path: /

# --- truncated at 32 KB (64 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/github/refs/heads/main/capabilities/organizations-lists.yaml