---
title: "Associate a new RSA public key to an organization."
method: POST
path: "/orgs/{orgId}/keys"
tags: ["public", "PublicKeys"]
---

# Associate a new RSA public key to an organization.

`POST /orgs/{orgId}/keys`

## Path parameters

- `orgId` string, required

## Request body

- string

## Response `200`

Public Key added successfully.

- PublicKey — PublicKey stores a Public Key an organization shares with Humanitec.
  - `id` string, required
  - `key` string, required
  - `created_at` string, date-time, required
  - `created_by` string, required
  - `expired_at` string, date-time, required
  - `fingerprint` string, required — It's the hexadecimal representation of the sha256 hash of the DER representation of the key, it's computed and stored when a new key is uploaded.

## Other responses

- `400` — The request was invalid. More detail can be found in the error body.
- `403` — Server understands the request but refuses to authorize it.
- `409` — The request itself is valid however it could not be applied based on the current state of the resource. More detail can be found in the error body.

---

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