---
title: "Create access key"
method: POST
path: "/accesskeys"
tags: ["access_key"]
---

# Create access key

`POST /accesskeys`

Create a new access key for the authenticated user

## Request body

- ApiAccessKeyReq
  - `expires_at` string
  - `name` string, required

## Response `200`

token

- object

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.dev/ivpn/apis/untitled-api.md) · [All operations](https://skmtc.dev/ivpn/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ivpn/untitled-api/revisions/0e7bcc538dce/schema)
