---
title: "Create Child Key"
method: POST
path: "/api/v1/orgs/children/{child_id}/keys"
---

# Create Child Key

`POST /api/v1/orgs/children/{child_id}/keys`

## Request

- Base URL: `https://api.mesharc.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mesharc.dev/api/v1/orgs/children/{child_id}/keys`
- Auth: none declared

A key of the sub-account's own, to hand to your customer: it reaches
that workspace and nothing else. Shown once.

## Path parameters

- `child_id` string, required

## Headers

- `authorization` string, nullable
- `x-mesharc-tenant` string, nullable

## Request body

- KeyRequest
  - `name` string
  - `scopes` string[], nullable
  - `projects` string[], nullable
  - `expires_in_days` integer, nullable
  - `rpm` integer, nullable

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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