---
title: "Hard Masquerade As Company"
method: POST
path: "/internal/hard-masquerade"
tags: ["internal"]
---

# Hard Masquerade As Company

`POST /internal/hard-masquerade`

## Request

- Base URL: `https://api.kobaltlabs.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.kobaltlabs.com/internal/hard-masquerade`
- Auth: none declared

Activate or deactivate hard masquerade for the current admin user.

Hard masquerade swaps the user's company_id to the target so writes apply to
that company. Activating first clears any active masquerade (soft, or a
different hard target), so exactly one masquerade mode is ever active and
admins can jump straight between modes/targets.

## Query parameters

- `company_id` string, uuid, nullable

## Response `200`

Successful Response

- MasqueradeActionResponse
  - `status` string, required
  - `message` string, required
  - `mode` 'soft' | 'hard'
  - `target_company_id` string, uuid, nullable
  - `target_company_name` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kobaltlabs/apis/kobaltlabs-api.md) - [All operations](https://skmtc.dev/kobaltlabs/apis/kobaltlabs-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kobaltlabs/apis/kobaltlabs-api/revisions/8587332d5e43?raw)
