---
title: "Generate Key"
method: POST
path: "/api/v1/client-keys/generate"
tags: ["Client Keys"]
---

# Generate Key

`POST /api/v1/client-keys/generate`

## Request

- Base URL: `https://api.monapay.vn`
- URL: `https://api.monapay.vn/api/v1/client-keys/generate`
- Auth: `Bearer Auth` (a scheme the document does not define)

## Request body

- GenerateKeyRequest
  - `name` string, nullable

## Response `200`

OK - The request has succeeded.

- Response
  - `success` boolean, required
  - `message` string, required
  - `data` unknown

## Other responses

- `401`: Unauthorized - Authentication is required and has failed or has not been provided.
- `422`: Validation Error

---

[API](https://skmtc.dev/monapay/apis/mona-pay-api-v1.md) · [All operations](https://skmtc.dev/monapay/apis/mona-pay-api-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/monapay/apis/mona-pay-api-v1/revisions/ed3fbd821dce?raw)
