---
title: "Get agent source restrictions"
method: GET
path: "/v2/campaigns/{campaignId}/agent-source-restrictions"
tags: ["Campaigns.Agent Source Restrictions"]
---

# Get agent source restrictions

`GET /v2/campaigns/{campaignId}/agent-source-restrictions`

## Request

- Base URL: `https://api.carecycle.ai`
- URL: `https://api.carecycle.ai/v2/campaigns/{campaignId}/agent-source-restrictions`
- Auth: API key in header `x-api-key`

See which agents are blocked from taking calls from which sources in a campaign.

## Path parameters

- `campaignId` string, uuid, required: Campaign ID

## Response `200`

GET /v2/campaigns/:campaignId/agent-source-restrictions Positive response

- GetV2CampaignsCampaignIdAgentSourceRestrictionsPositiveResponse
  - `restrictions` object[], required: Array of agent source restrictions
    - `id` string, uuid, required
    - `createdAt` string, date-time, nullable, required: Restriction creation time. ISO 8601 timestamp
    - `updatedAt` string, date-time, nullable, required: Restriction last update time. ISO 8601 timestamp
    - `campaignId` string, uuid, required
    - `memberId` string, uuid, required
    - `campaignSourceId` string, uuid, required
    - `sourceId` string, uuid, required: Source ID
    - `campaignName` string
    - `memberName` string
    - `sourceName` string

## Other responses

- `400`: GET /v2/campaigns/:campaignId/agent-source-restrictions Negative response 400
- `401`: GET /v2/campaigns/:campaignId/agent-source-restrictions Negative response 401
- `403`: GET /v2/campaigns/:campaignId/agent-source-restrictions Negative response 403
- `404`: GET /v2/campaigns/:campaignId/agent-source-restrictions Negative response 404
- `409`: GET /v2/campaigns/:campaignId/agent-source-restrictions Negative response 409
- `422`: GET /v2/campaigns/:campaignId/agent-source-restrictions Negative response 422
- `429`: GET /v2/campaigns/:campaignId/agent-source-restrictions Negative response 429
- `500`: GET /v2/campaigns/:campaignId/agent-source-restrictions Negative response 500
- `502`: GET /v2/campaigns/:campaignId/agent-source-restrictions Negative response 502
- `503`: GET /v2/campaigns/:campaignId/agent-source-restrictions Negative response 503

---

[API](https://skmtc.dev/carecycle/apis/carecycle-public-api.md) - [All operations](https://skmtc.dev/carecycle/apis/carecycle-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/carecycle/apis/carecycle-public-api/revisions/db390c743c36?raw)
