---
title: "Create a link between a workspace and an SSH key"
method: POST
path: "/workspaces/{workspace}/ssh-key-links"
tags: ["ssh-key-links"]
---

# Create a link between a workspace and an SSH key

`POST /workspaces/{workspace}/ssh-key-links`

Creates a link between a workspace and an SSH key.

## Path parameters

- `workspace` string, required

## Request body

- WorkspaceSSHKeyLinkRequest
  - `ssh-key` string, required — The reference to the SSH key that is linked to the workspace.

## Response `201`

Created.

## Other responses

- `4XX` — Client error.
- `5XX` — Server error.

---

[API](https://skmtc.net/scalr/apis/scalr-iacp-api.md) · [All operations](https://skmtc.net/scalr/apis/scalr-iacp-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/scalr/scalr-iacp-api/versions/fc927526ad12/schema)
