---
title: "Create Api Key"
method: POST
path: "/v1/portal/api_keys"
tags: ["portal"]
---

# Create Api Key

`POST /v1/portal/api_keys`

## Request

- Base URL: `https://app.mrtrades.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.mrtrades.com/v1/portal/api_keys`
- Auth: none declared

## Headers

- `x-api-key` string, nullable

## Request body

- CreateKeyBody
  - `label` string, nullable
  - `scopes` string[], nullable
  - `rate_limit_per_minute` integer, nullable
  - `expires_at` string, date-time, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

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