---
title: "Create an API key"
method: POST
path: "/v1/keys/"
tags: ["Key Management"]
---

# Create an API key

`POST /v1/keys/`

Create a new API key in the current environment. The environment is determined by the authenticating key. Maximum of 2 active keys are allowed per environment. This endpoint is not available by default. Contact us to enable it.

## Response `201`

API key created successfully

- KeyCreateResponse — Response containing the newly created API key secret
  - `secret` string, required — The secret access key, prefixed with environment (e.g. sandbox-abc123).

## Other responses

- `400` — HTTP 400 Bad Request
- `401` — HTTP 401 Unauthorized
- `403` — HTTP 403 Forbidden

---

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