---
title: "Activate SSH key for given site."
method: POST
path: "/v1/sites/{id}/ssh/keys/authorize"
tags: ["SSH Keys"]
---

# Activate SSH key for given site.

`POST /v1/sites/{id}/ssh/keys/authorize`

For given site activate a SSH key.

## Path parameters

- `id` integer, required — ID of the Site you are interacting with

## Request body

- AuthorizeSSHKeyRequest
  - `name` string, required

## Response `200`

OK

- SSHKeyResponse
  - `success` boolean — whether the request succeeded
  - `errors` string[]
  - `messages` string[], nullable
  - `result` SSHKey
    - `name` string
    - `key` string
    - `authstatus` string
    - `status` string
    - `haspub` integer
    - `file` string
    - `created` integer
    - `modified` integer

## Other responses

- `400` — Bad Request
- `401` — Authentication failed
- `403` — Not authorized to access endpoint
- `404` — Given site not found for user
- `405` — Invalid input
- `500` — Internal error

---

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