---
title: "GET /v1/settings/forbiddenwords/{departmentId}"
method: GET
path: "/v1/settings/forbiddenwords/{departmentId}"
tags: ["ForbiddenWordConfig"]
---

# GET /v1/settings/forbiddenwords/{departmentId}

`GET /v1/settings/forbiddenwords/{departmentId}`

## Request

- Base URL: `https://api.infoset.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.infoset.app/v1/settings/forbiddenwords/{departmentId}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Api-Key`
- TypeScript: <https://skmtc.dev/infoset/apis/infoset-rest-api/docs/v1/settings/forbiddenwords/:departmentId/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `departmentId` integer, required

## Response `200`

OK

- ForbiddenWordConfig
  - `id` integer
  - `departmentId` integer
  - `words` ForbiddenWord[], nullable: An array of words (or regexes) to be forbidden from emails and chat messages.
    - `word` string, nullable
    - `isRegex` boolean
    - `isCaseSensitive` boolean
  - `isEnabled` boolean
  - `accountId` integer
  - `createdAt` string, date-time
  - `updatedAt` string, date-time, nullable

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/infoset/apis/infoset-rest-api.md) - [All operations](https://skmtc.dev/infoset/apis/infoset-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/infoset/apis/infoset-rest-api/revisions/709c8123f593?raw)
