---
title: "switchCompany auth"
method: POST
path: "/auth/v1/switchCompany"
tags: ["auth"]
---

# switchCompany auth

`POST /auth/v1/switchCompany`

## Request body

- SwitchCompanyPayload
  - `clientId` string, required — Client ID
  - `clientSecret` string — Client Secret
  - `companyId` number, double, required — Company ID
  - `refreshToken` string, required — Refresh token

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error

---

[API](https://skmtc.dev/dynata/apis/sample-api.md) · [All operations](https://skmtc.dev/dynata/apis/sample-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dynata/sample-api/revisions/b3b54de87dfc/schema)
