---
title: "Admin Set Internal Flag"
method: PATCH
path: "/v1/admin/users/{key_id}/internal"
tags: ["admin"]
---

# Admin Set Internal Flag

`PATCH /v1/admin/users/{key_id}/internal`

## Request

- Base URL: `https://api.bitpoort.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.bitpoort.com/v1/admin/users/{key_id}/internal`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Toggle ``is_internal`` for an api_key. Internal keys are excluded
from MCP usage / cohort dashboards by default.

## Path parameters

- `key_id` integer, required

## Request body

- InternalFlagBody
  - `is_internal` boolean, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/bitpoort/apis/bitpoort-api.md) · [All operations](https://skmtc.dev/bitpoort/apis/bitpoort-api/llms.txt) · [OpenAPI document](https://skmtc.dev/bitpoort/apis/bitpoort-api/revisions/1a51d8566777?raw)
