---
title: "Create key (shown once)"
method: POST
path: "/api/keys"
tags: ["Keys"]
---

# Create key (shown once)

`POST /api/keys`

## Request

- Base URL: `https://trydock.ai`
- URL: `https://trydock.ai/api/keys`
- Auth: HTTP bearer

## Request body

- object
  - `agentName` string
  - `workspaceId` string
  - `name` string

## Response `201`

Created. `secret` shown once.

---

[API](https://skmtc.dev/trydock/apis/dock-rest-api.md) - [All operations](https://skmtc.dev/trydock/apis/dock-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/trydock/apis/dock-rest-api/revisions/dd96ae96a412?raw)
