---
title: "Get root causes"
method: GET
path: "/resolutionCodes/rootCauses"
tags: ["ResolutionCodes"]
---

# Get root causes

`GET /resolutionCodes/rootCauses`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/resolutionCodes/rootCauses`
- 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/resolutionCodes/rootCauses/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns a list of root causes. Root causes are set up for trades and describe reasons why the problem occurred to begin with.

## Query parameters

- `subscriberId` integer, required
- `trade` string
- `category` string
- `locationId` integer, required
- `providerId` integer
- `assetCategoryIds` integer[]
- `keyword` string
- `page` integer
- `pageSize` integer
- `tradeId` integer
- `categoryId` integer

## Response `200`

Root causes are in the response.

- ServiceChannelServicesWebApiModelsResponseResolutionCodesRootCauseResponse[]
  - `Key` integer: Root cause identifier.
  - `Value` string: Root cause name.
  - `HasFreeText` boolean: Defines whether a user can enter a comment explaining their understanding of the root cause and specifying the reason why the problem occurred.
  - `Order` integer: Order of appearance of a root cause.
  - `AssetCategoryIds` integer[]: Asset category ID. A value populates only if two or more categories are specified in assetCategoryIds in the filter.

## Other responses

- `400`: The request is not accepted due to bad syntax, missing parameters, insufficient data, etc. <br/>Error codes: 4113 — You can specify up to 5 asset categories
- `401`: The request is not authorized. <br/>Error codes: 504 — API call rejected by security permissions
- `403`: You are not authorized to request this resource, or the resource is unavailable for some reason. <br/>Error codes: 4114 — You don't have access to asset categories
- `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)
