---
title: "GET /v1/orgs/{orgId}/integrations/{integrationId}/scan-policy"
method: GET
path: "/v1/orgs/{orgId}/integrations/{integrationId}/scan-policy"
tags: ["Orgs", "Integrations"]
---

# GET /v1/orgs/{orgId}/integrations/{integrationId}/scan-policy

`GET /v1/orgs/{orgId}/integrations/{integrationId}/scan-policy`

## Request

- Base URL: `https://api.tessl.io`
- URL: `https://api.tessl.io/v1/orgs/{orgId}/integrations/{integrationId}/scan-policy`
- Auth: none declared

Returns the repo allow/deny scan policy of the account the integration connects; every connection on one account shares it. `mode` is null when no policy is configured (scan everything); an `allow` policy with an empty `fullNames` means scan nothing. Returns 422 (not_scannable_integration) for integrations that are not source control, 422 (scan_policy_account_unknown) when the connected account is not recorded. When the connection names several accounts whose policies differ, answers with the combination that scans the least and `accountsDiffer: true`; combined deny lists can then name more repos than PUT accepts.

## Path parameters

- `orgId` string, uuid, required
- `integrationId` string, uuid, required

## Headers

- `Authorization` string

## Response `200`

Default Response

- object
  - `links` object, required
    - `self` string, uri, required
  - `data` object, required
    - `id` string, uuid, required
    - `type` 'integration-scan-policy', required
    - `attributes` object, required
      - `mode` union, required
        - 'allow'
        - 'deny'
      - `fullNames` string[], required
      - `accountsDiffer` boolean, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Entity
- `500`: Internal Server Error

## Changes

- **2026-10-21** `4f57a6c6e04d`: 2 info
  - removed the non-success response with the status `409`
  - added the required property `data/attributes/accountsDiffer` to the response with the `200` status
- **2026-10-21** `ee3451673711`: 1 info
  - added the non-success response with the status `409`
- **2026-09-15** `d50a02b79ad3`: 2 info
  - added the optional property `error/code` to the response with the `403` status
  - added the optional property `error/url` to the response with the `403` status
- **2026-08-13** `9be5c2a862b7`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/tessl/apis/tessl-api/changes/v1/orgs/:orgId/integrations/:integrationId/scan-policy/get.md)

---

[API](https://skmtc.dev/tessl/apis/tessl-api.md) · [All operations](https://skmtc.dev/tessl/apis/tessl-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tessl/apis/tessl-api/revisions/7386f1e6295b?raw)
