---
title: "Generate Key Pair"
method: POST
path: "/api/v2/key"
tags: ["Secure Card Capture"]
---

# Generate Key Pair

`POST /api/v2/key`

Generate a new public/private key pair

## Response `201`

Key Result

- CreateKeyPairResponse
  - `public_key` string, required — This is the public key required to encrypt the card data at client side before sending to Greenbox
  - `public_key_alias` string, required — Public Key Alias
  - `created_at` string, date-time, required — The time that this key was created.

## Other responses

- `400` — Bad Request
- `401` — Unauthorised
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

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