# Compliance | Signal House API Docs

> Read the compliance cases on your campaigns, brands, numbers and RCS agents, answer their requirements, and upload files with the Signal House API.

Source: https://docs.signalhouse.io/compliance

---

## Compliance

## Compliance cases

Signal House opens a compliance case when a carrier suspends one of your campaigns, brands, numbers or RCS agents, when a carrier escalates a message as a ticket, or when Signal House needs something from you. Each case covers one object. You can read your cases, answer their requirements and upload files; only Signal House opens, works and closes a case.

- **Suspensions.** `blocks` lists who stopped the traffic and when: a carrier by name, "The network", or Signal House. `suspended` is true while one is open. A released number's block includes `numberReleasedAt`; `liftedAt` remains null unless the block actually lifted.
- **Tickets.** `tickets` lists the messages a carrier flagged, with the date each was flagged.
- **Released numbers.** Release closes the number's alerts immediately. Eligible cases close with `closeReason: NUMBER_RELEASED`. Shared cases remain open for other alerts or outstanding requirements.
- **Requirements.** `requirements` lists what Signal House needs from you, due by `fixBy`. Upload files with `POST /compliance/files`, then answer each requirement with `PUT /compliance/cases/:caseId/requirements/:requirementId`.

Subscribe to `COMPLIANCE_CASE_UPDATED` (see [Webhooks](https://docs.signalhouse.io/webhooks)) to hear when a case opens, when requirements arrive, and when a suspension lifts. `counts.waitingOnYou` on the list is the number of cases with requirements still open.

## Case stages

| Stage | Meaning |
| --- | --- |
| `new` | Signal House opened the case and has not asked you for anything yet. |
| `customer` | Signal House sent requirements, and at least one is still open. These are your open items. |
| `ready` | You answered every requirement. Signal House is reviewing them. |
| `lift_requested` | Signal House asked the carrier or the network to lift the suspension. |
| `closed` | The case is closed. closeReason says why: LIFTED, RECOVERED, NUMBER\_RELEASED, CUSTOMER\_REMEDIATED, SUSPENDED\_BY\_CARRIER, LABEL\_REMOVED, TRACEBACK\_ANSWERED, FALSE\_POSITIVE or CLEARED. |

### /compliance

### GET /compliance/cases

List the compliance cases you can see, newest first. A case appears once it holds a suspension or a carrier ticket, or once Signal House sends requirements. counts.open is your open cases; counts.waitingOnYou is the open cases with requirements still to answer.

**The following roles are required to use this endpoint:** `admin`, `developer`, `api`, `billing`, `user`

#### Request Body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `groupId` | Query Param | Optional | A group you can view. Defaults to your active group. |
| `status` | Query Param | Optional | OPEN, LIFT\_REQUESTED or CLOSED. |
| `stage` | Query Param | Optional | new, customer, ready, lift\_requested or closed. stage=customer lists your open items. |
| `objectType` | Query Param | Optional | CAMPAIGN, BRAND, NUMBER, RCS\_AGENT or SUBGROUP. |
| `objectId` | Query Param | Optional | The campaign id, brand id, number (digits), RCS agent id or subgroup id. |
| `subgroupId` | Query Param | Optional | Only cases in this subgroup. |
| `suspended` | Query Param | Optional | true lists only cases with an open suspension or hold; false leaves them out. |
| `from` | Query Param | Optional | Opened on or after this ISO 8601 time. |
| `to` | Query Param | Optional | Opened on or before this ISO 8601 time. |
| `sort` | Query Param | Optional | createdAt (newest first, the default), fixBy (soonest due first) or severity. |
| `page` | Query Param | Optional | Page number, from 1. Default 1. |
| `limit` | Query Param | Optional | Cases per page, 1 to 200. Default 25. |

#### Errors

| Status | Error | When |
| --- | --- | --- |
| 400 | `ValidationError` | A filter has an unknown value, or the query has an unknown field. |
| 403 | `AuthorizationError` | Your role may not read cases, or groupId is a group you cannot view. |

#### Example Response 200

Response

```json
{
  "data": [
    {
      "caseId": "CASE-150",
      "objectType": "CAMPAIGN",
      "objectId": "C3PW9NE",
      "status": "OPEN",
      "stage": "customer",
      "suspended": true,
      "reasonTemplate": "OPT_IN",
      "reason": "Opt-out and complaint volume",
      "customerNote": "T-Mobile wants to see consent for the contacts you uploaded this week before it lifts the suspension.",
      "blocks": [
        {
          "subject": {
            "kind": "CAMPAIGN",
            "id": "C3PW9NE"
          },
          "by": "T-Mobile",
          "startedAt": "2026-11-09T14:05:12.000Z",
          "liftedAt": null
        }
      ],
      "tickets": [],
      "requirements": [
        {
          "requirementId": "CASE-150-1",
          "kind": "RECORDS",
          "text": "Upload opt-in records for the contacts you added recently",
          "addedAt": "2026-11-09T15:10:00.000Z",
          "doneAt": "2026-11-10T16:20:00.000Z",
          "doneByName": "Derek Sloan",
          "answer": "Export from our CRM, Oct 1 to Nov 8",
          "fileIds": [
            "cf_9c1e77d0a4b24f6e"
          ]
        },
        {
          "requirementId": "CASE-150-2",
          "kind": "CONFIRM",
          "text": "Remove contacts you can't show consent for",
          "addedAt": "2026-11-09T15:10:00.000Z",
          "doneAt": null,
          "doneByName": null,
          "answer": null,
          "fileIds": []
        }
      ],
      "sentAt": "2026-11-09T15:10:00.000Z",
      "fixBy": "2026-11-14T15:10:00.000Z",
      "liftRequestedAt": null,
      "closedAt": null,
      "closeReason": null,
      "createdAt": "2026-11-09T14:05:12.000Z"
    }
  ],
  "total": 1,
  "page": 1,
  "limit": 25,
  "totalPages": 1,
  "counts": {
    "open": 1,
    "waitingOnYou": 1
  }
}
```

### GET /compliance/cases/:caseId

Read one compliance case: its stage, suspensions, tickets and requirements.

**The following roles are required to use this endpoint:** `admin`, `developer`, `api`, `billing`, `user`

#### Request Body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `caseId` | Path Param | Required | The case id, CASE-<number>. |

#### Errors

| Status | Error | When |
| --- | --- | --- |
| 403 | `AuthorizationError` | The case belongs to a group you cannot view. |
| 404 | `ComplianceCaseNotFoundError` | No case has this id in a group you can view. |

#### Example Response 200

Response

```json
{
  "caseId": "CASE-150",
  "objectType": "CAMPAIGN",
  "objectId": "C3PW9NE",
  "status": "OPEN",
  "stage": "customer",
  "suspended": true,
  "reasonTemplate": "OPT_IN",
  "reason": "Opt-out and complaint volume",
  "customerNote": "T-Mobile wants to see consent for the contacts you uploaded this week before it lifts the suspension.",
  "blocks": [
    {
      "subject": {
        "kind": "CAMPAIGN",
        "id": "C3PW9NE"
      },
      "by": "T-Mobile",
      "startedAt": "2026-11-09T14:05:12.000Z",
      "liftedAt": null
    }
  ],
  "tickets": [],
  "requirements": [
    {
      "requirementId": "CASE-150-1",
      "kind": "RECORDS",
      "text": "Upload opt-in records for the contacts you added recently",
      "addedAt": "2026-11-09T15:10:00.000Z",
      "doneAt": "2026-11-10T16:20:00.000Z",
      "doneByName": "Derek Sloan",
      "answer": "Export from our CRM, Oct 1 to Nov 8",
      "fileIds": [
        "cf_9c1e77d0a4b24f6e"
      ]
    },
    {
      "requirementId": "CASE-150-2",
      "kind": "CONFIRM",
      "text": "Remove contacts you can't show consent for",
      "addedAt": "2026-11-09T15:10:00.000Z",
      "doneAt": null,
      "doneByName": null,
      "answer": null,
      "fileIds": []
    }
  ],
  "sentAt": "2026-11-09T15:10:00.000Z",
  "fixBy": "2026-11-14T15:10:00.000Z",
  "liftRequestedAt": null,
  "closedAt": null,
  "closeReason": null,
  "createdAt": "2026-11-09T14:05:12.000Z"
}
```

### PUT /compliance/cases/:caseId/requirements/:requirementId

Answer one requirement with a note, files, or both. A RECORDS requirement needs at least one file or a note. Once every requirement is answered, the case moves to the ready stage and Signal House reviews it. Returns the case.

**The following roles are required to use this endpoint:** `admin`, `developer`, `api`, `user`

#### Request Body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `caseId` | Path Param | Required | The case id, CASE-<number>. |
| `requirementId` | Path Param | Required | The requirement, CASE-<number>-<number>. |
| `answer` | Body Param | Optional | What you did, up to 2,000 characters. Required when you attach no file. |
| `fileIds` | Body Param | Optional | Up to 10 fileIds you uploaded to this case with POST /compliance/files. |

#### Errors

| Status | Error | When |
| --- | --- | --- |
| 400 | `ValidationError` | You sent neither an answer nor a file, or a file is not on this case. |
| 403 | `AuthorizationError` | Your role may not answer requirements (billing may not), or the case belongs to a group you cannot view. |
| 403 | `AuthorizationError` | The request uses an OAuth connector token. Answer from the portal or with an API key. |
| 404 | `ComplianceCaseNotFoundError` | No case or requirement has this id in a group you can view. |
| 409 | `ResourceConflictError` | The case is closed, or the requirement is already answered. |

#### Example Request

Request

```json
{
  "answer": "Removed 312 contacts without consent",
  "fileIds": []
}
```

#### Example Response 200

Response

```json
{
  "caseId": "CASE-150",
  "objectType": "CAMPAIGN",
  "objectId": "C3PW9NE",
  "status": "OPEN",
  "stage": "ready",
  "suspended": true,
  "reasonTemplate": "OPT_IN",
  "reason": "Opt-out and complaint volume",
  "customerNote": "T-Mobile wants to see consent for the contacts you uploaded this week before it lifts the suspension.",
  "blocks": [
    {
      "subject": {
        "kind": "CAMPAIGN",
        "id": "C3PW9NE"
      },
      "by": "T-Mobile",
      "startedAt": "2026-11-09T14:05:12.000Z",
      "liftedAt": null
    }
  ],
  "tickets": [],
  "requirements": [
    {
      "requirementId": "CASE-150-1",
      "kind": "RECORDS",
      "text": "Upload opt-in records for the contacts you added recently",
      "addedAt": "2026-11-09T15:10:00.000Z",
      "doneAt": "2026-11-10T16:20:00.000Z",
      "doneByName": "Derek Sloan",
      "answer": "Export from our CRM, Oct 1 to Nov 8",
      "fileIds": [
        "cf_9c1e77d0a4b24f6e"
      ]
    },
    {
      "requirementId": "CASE-150-2",
      "kind": "CONFIRM",
      "text": "Remove contacts you can't show consent for",
      "addedAt": "2026-11-09T15:10:00.000Z",
      "doneAt": "2026-11-11T09:00:00.000Z",
      "doneByName": "Derek Sloan",
      "answer": "Removed 312 contacts without consent",
      "fileIds": []
    }
  ],
  "sentAt": "2026-11-09T15:10:00.000Z",
  "fixBy": "2026-11-14T15:10:00.000Z",
  "liftRequestedAt": null,
  "closedAt": null,
  "closeReason": null,
  "createdAt": "2026-11-09T14:05:12.000Z"
}
```

### POST /compliance/files

Upload a file to a compliance case, for example the opt-in records a requirement asks for. Pass the returned fileId in fileIds when you answer the requirement. Files are private to your group and Signal House.

**The following roles are required to use this endpoint:** `admin`, `developer`, `api`, `user`

#### Request Body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `caseId` | Form Field | Required | The case the file answers. |
| `requirementId` | Form Field | Optional | The requirement the file answers. |
| `file` | File | Required | A CSV, XLSX, PDF, PNG, JPG or TXT file, up to 10 MB. A CSV or TXT must be valid UTF-8, with a filename that ends in .csv or .txt. A case holds at most 50 files. |

#### Errors

| Status | Error | When |
| --- | --- | --- |
| 400 | `ValidationError` | No file, a file type that is not accepted, a file over 10 MB, a case that already holds 50 files, or the case is closed. |
| 403 | `AuthorizationError` | Your role may not upload files, the case belongs to a group you cannot view, or the request uses an OAuth connector token. |
| 404 | `ComplianceCaseNotFoundError` | No case or requirement has this id in a group you can view. |

#### Example Response 201

Response

```json
{
  "fileId": "cf_9c1e77d0a4b24f6e",
  "fileName": "opt-in-records-oct.csv",
  "mimeType": "text/csv",
  "size": 482113
}
```

### GET /compliance/files/:fileId

Download a compliance file. Returns the file bytes with its Content-Type, as an attachment.

**The following roles are required to use this endpoint:** `admin`, `developer`, `api`, `billing`, `user`

#### Request Body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `fileId` | Path Param | Required | The fileId POST /compliance/files returned. |

#### Errors

| Status | Error | When |
| --- | --- | --- |
| 403 | `AuthorizationError` | The file belongs to a group you cannot view. |
| 404 | `ComplianceFileNotFoundError` | No file has this id in a group you can view. |
