---
title: "Add an SSH-key to a specific app"
method: POST
path: "/apps/{app-slug}/register-ssh-key"
tags: ["app-setup"]
---

# Add an SSH-key to a specific app

`POST /apps/{app-slug}/register-ssh-key`

Add an SSH-key to a specific app. After creating an app, you need to register the SSH key so that Bitrise will be able to access and clone your repository during the build process. This requires the app slug of your newly created app.

## Path parameters

- `app-slug` string, required

## Request body

- V0SSHKeyUploadParams
  - `auth_ssh_private_key` string, required — The private part of the SSH key you would like to use
  - `auth_ssh_public_key` string, required — The public part of the SSH key you would like to use
  - `is_register_key_into_provider_service` boolean — If it's set to true, the provided SSH key will be registered at the provider of the application

## Response `200`

OK

- V0SSHKeyRespModel
  - `status` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error

---

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