---
title: "Create Key"
method: POST
path: "/v1/clients/{ClientID}/keys"
tags: ["Key"]
---

# Create Key

`POST /v1/clients/{ClientID}/keys`

Creates a Key.

## Path parameters

- `ClientID` string, required

## Request body

- CreateKey
  - `format` string, required — Public Key Response Format, either: - `ASN.1` - `Raw` (Modulus and Public Exponent)

## Response `200`

A Key is created.

- CreateKeyResponse
  - `SC` integer — [HTTP Status Code](https://developers.tabapay.com/reference/http-status-codes#/)
  - `EC` string — Internal Error Code. This is used to help TabaPay team members trace an error.
  - `EM` string — Short description of the error if an error occurred.
  - `keyID` string — 22 character KeyID
  - `key` string — ASN.1 encoded in Base64 URL-Safe Character Set Only present if `format` is `ASN.1`
  - `keyModulus` string — Modulus, encoded in Base64 URL-Safe Character Set Only present if `format` is `Raw`
  - `keyExponent` string — Public Exponent, encoded in Base64 URL-Safe Character Set Only present if `format` is `Raw`
  - `expiration` string — Key Expiration in yyyy-MM-ddTHH:mm:ssZ Format.
  - `notices` string — Important Notices

## Other responses

- `429` — Created too many Keys.

---

[API](https://skmtc.net/tabapay/apis/tabapay-apis.md) · [All operations](https://skmtc.net/tabapay/apis/tabapay-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tabapay/tabapay-apis/versions/154fa3d585cf/schema)
