---
title: "Create a new credential"
method: POST
path: "/credentials"
tags: ["Credentials"]
---

# Create a new credential

`POST /credentials`

Creates a new SSH credential for the authenticated user.

## Request body

- object
  - `name` string
  - `description` string
  - `folder` string
  - `tags` string[]
  - `authType` 'password' | 'key'
  - `username` string
  - `password` string
  - `key` string
  - `keyPassword` string
  - `keyType` string

## Response `201`

Credential created successfully.

## Other responses

- `400` — Invalid request body.
- `500` — Failed to create credential.

---

[API](https://skmtc.dev/termix/apis/termix-api.md) · [All operations](https://skmtc.dev/termix/apis/termix-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/termix/termix-api/revisions/f4ef343eff1b/schema)
