---
title: "Create Access Key"
method: POST
path: "/v1/projects/{projectId}/accessKeys"
tags: ["Access Key"]
---

# Create Access Key

`POST /v1/projects/{projectId}/accessKeys`

Creates an Access Key for the given project. Returns the new key and
 its credentials.

## Path parameters

- `projectId` string, required

## Request body

- CreateAccessKey — Update Access Key request.
  - `displayName` string — Required. The display name for this Access Key. It must be unique for the resource tied to the key.

## Response `200`

OK

- CreateAccessKeyResponse — Response message for the AccessKeyService.CreateAccessKey.
  - `accessKey` AccessKey — A single Access Key.
    - `accessKeyId` string — Unique ID for this Access Key.
    - `displayName` string — The display name for this Access Key. It must be unique for the resource tied to the key.
    - `projectId` string — The project ID this key is tied to.
    - `createTime` string, date-time — Timestamp when the Access Key was created.
    - `updateTime` string, date-time — Timestamp when the Access Key was last modified.
  - `secret` string — The Access Key secret. After an Access Key has been created it is impossible to retrieve its secret again.

## Other responses

- `400` — Malformed request
- `401` — Unauthenticated. Incorrect credentials.
- `403` — Permission denied.
- `409` — Conflict
- `500` — Internal error, try again with exponential back-off
- `503` — Unavailable, try again with exponential back-off

---

[API](https://skmtc.net/sinch/apis/access-keys-management-api.md) · [All operations](https://skmtc.net/sinch/apis/access-keys-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sinch/access-keys-management-api/revisions/e1eac0ddc7e6/schema)
