---
title: "Create a Project API Key"
method: POST
path: "/v2/projects/{projectId}/api-keys"
tags: ["Project"]
---

# Create a Project API Key

`POST /v2/projects/{projectId}/api-keys`

Create a project API key. Requires `project:api_keys:write`; project keys cannot create other keys. If you cannot grant a selected permission, the request returns `403` without creating a key. Each successful request creates a new key. Store the returned secret securely.

## Path parameters

- `projectId` string, required

## Headers

- `gt-api-version` '2025-01-01.v0' | '2025-11-03.v1' | '2026-02-18.v1' | '2026-03-06.v1' — API contract version. Defaults to the oldest supported version.

## Request body

- object
  - `name` string, required — Key name, 1–255 characters after trimming.
  - `permissions` ProjectApiKeyPermission[] — Project permissions to grant. Select at least one, or omit to grant all project permissions you can delegate. You must hold every selected permission. Duplicates are ignored. Write permissions do not include Read.
  - `type` 'production' | 'development' — Ignored. All new keys are project-scoped API keys for any environment.

## Response `201`

Project API key created

- object
  - `apiKey` object, required
    - `id` string, required
    - `name` string, required
    - `key` string, required
    - `projectId` string, required
    - `type` 'production', required — Compatibility field. All project API keys work in any environment.

## Other responses

- `400` — Request error
- `401` — Request error
- `403` — Request error
- `404` — Request error
- `413` — Request error
- `429` — Request error
- `500` — Request error

## Changes

- **2026-09-26** `4587bc8b9f53` — 1 info
  - the endpoint scheme security `UserBearerAuth` was removed from the API
- **2026-09-22** `7c34a030bead` — 1 info
  - added the new optional request property `permissions`
- **2026-09-18** `7b0d92979691` — 4 info
  - the `type` request property default value `production` was removed
  - request property `type` deprecated
  - response property `apiKey/type` deprecated
  - removed the `development` enum value from the `apiKey/type` response property for the response status `201`
- **2026-09-09** `1f85b1892342` — 1 info
  - the endpoint scheme security `UserBearerAuth` was added to the API
- **2026-09-03** `451f820cc197` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/generaltranslation/apis/general-translation-api/changes/v2/projects/:projectId/api-keys/post.md)

---

[API](https://skmtc.dev/generaltranslation/apis/general-translation-api.md) · [All operations](https://skmtc.dev/generaltranslation/apis/general-translation-api/llms.txt) · [OpenAPI document](https://skmtc.dev/generaltranslation/apis/general-translation-api/revisions/4587bc8b9f53?raw)
