---
title: "Retrieve primary categories"
method: GET
path: "/categories/primary"
tags: ["Categories"]
---

# Retrieve primary categories

`GET /categories/primary`

## Request

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

Returns a list of available primary categories of the current subscriber.

## Response `200`

The requested list of primary categories is in the response.

- ServiceChannelServicesMessagingCategoryPrimaryCategoryResponse: Object containing the details of the available primary categories.
  - `Id` integer: Primary category ID.
  - `Name` string: Primary category name.

## Other responses

- `403`: You are not authorized to request this resource, or the resource is unavailable for some reason. <br/>Error codes: 100 — User has no rights to perform this action
- `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)
