---
title: "Create access key"
method: POST
path: "/accessKeys"
tags: ["Access Keys"]
---

# Create access key

`POST /accessKeys`

Creates a new access key for API authentication

## Request body

- AccessKeyRequest
  - `friendlyName` string
  - `description` string
  - `ttl` integer — Time-to-live in milliseconds
  - `scope` string

## Response `201`

Access key created

- object
  - `accessKey` AccessKey
    - `name` string — Generated secure key (hidden in responses)
    - `friendlyName` string
    - `description` string — Legacy field, same as friendlyName
    - `createdTime` integer
    - `createdBy` string — IP address or machine name
    - `expires` integer — Expiration timestamp
    - `isSession` boolean — Whether this is a session token
    - `scope` string — Optional scope restriction

## Other responses

- `400` — Bad request - invalid parameters
- `409` — Conflict - resource already exists

---

[API](https://skmtc.net/dream-horizon-org/apis/delivr-ota-server-api.md) · [All operations](https://skmtc.net/dream-horizon-org/apis/delivr-ota-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dream-horizon-org/delivr-ota-server-api/revisions/0ad4e4284735/schema)
