---
title: "Generate a new Key for the Enterprise"
method: POST
path: "/v1/enterprise/keys"
tags: ["Enterprise"]
---

# Generate a new Key for the Enterprise

`POST /v1/enterprise/keys`

Generate a new ServiceKey for the enterprise

## Response `200`

A new Service Key is generated and saved to the Key collection

- KeyResource
  - `id` string — The ID of the key
  - `key` string — A secret key which can be used to authenticate requests to Mezmo.
  - `name` string — A user friendly name for the key
  - `type` 'ingestion' | 'service' — The type of the key
  - `created` integer — The time the key was created as a Unix timestamp in milliseconds

## Other responses

- `400` — The supplied request is invalid or malformed.
- `409` — The supplied request leads to an invalid state. The returned error will contain more helpful information.

---

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