---
title: "Get providers exclusion list"
method: GET
path: "/GetProvidersExclusionList"
tags: ["NotificationSubscriptions"]
---

# Get providers exclusion list

`GET /GetProvidersExclusionList`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/GetProvidersExclusionList`
- Auth: OAuth 2
  - Authorization code: `https://sb2login.servicechannel.com/oauth/authorize`
  - Token URL: `https://sb2login.servicechannel.com/oauth/token`
- TypeScript: <https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/docs/GetProvidersExclusionList/get.ts> (a function with typed inputs; its response is checked against the schema)

List providers who opted out to not receive the notifications

## Query parameters

- `emailNotificationType` integer, required

## Response `200`

The requested providers are in the response.

- ServiceChannelServicesMessagingPermissionProvidersExclusionListResponse: ProvidersExclusionListResponse
  - `ProviderIds` integer[]: Provider ids

## Other responses

- `400`: The request is not accepted due to bad syntax, missing parameters, insufficient data, etc. <br/>Error codes: 401 — Invalid subsriber ID 804 — User has no permissions to perform this action
- `401`: The request is not authorized. <br/>Error codes: 504 — API call rejected by security permissions
- `404`: The requested resource does not exist on the server.
- `500`: The server was unable to complete the request due to an internal error.

---

[API](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3.md) - [All operations](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/llms.txt) - [OpenAPI document](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/revisions/d490d6596809?raw)
