---
title: "Get GitHub organization policy"
method: GET
path: "/api/apps/{app_id}/github/org-policy"
---

# Get GitHub organization policy

`GET /api/apps/{app_id}/github/org-policy`

<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Tells you whether the app's workspace limits GitHub repositories to an approved list of organizations.

When `restricted` is `true`, you can create the app's repository only under one of the approved organizations. The approved list itself is managed in workspace settings.

Workspace owners and admins can connect under any organization, even when the policy restricts organizations for other users. However, the organization list they read is filtered by the restriction policy, so [List GitHub organizations](/api-reference/list-github-organizations) returns the same list for them as it does for other users.

## Path parameters

- `app_id` string, required — ID of the app whose workspace decides which GitHub organizations you can use.

## Response `200`

Whether the workspace limits which GitHub organizations you can use.

- GithubOrgPolicyStatus — Whether the app's workspace limits which GitHub organizations it can use.
  - `restricted` boolean, required — Whether the app's workspace limits GitHub repositories to an approved list of organizations.

## Other responses

- `401` — Missing or invalid credentials.
- `403` — You don't have access to this app, or you used a workspace API key. These endpoints take a personal API key.
- `404` — App not found.

## Changes

- **2026-08-30** `394136a6cdd4` — 1 info
  - removed the non-success response with the status `422`
- **2026-08-27** `31ef75eb64ab` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/idealspot/apis/base44-app-management-api/changes/api/apps/:app_id/github/org-policy/get.md)

---

[API](https://skmtc.dev/idealspot/apis/base44-app-management-api.md) · [All operations](https://skmtc.dev/idealspot/apis/base44-app-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/idealspot/base44-app-management-api/revisions/6ad855bf424f/schema)
