---
title: "Create Credential Route"
method: POST
path: "/api/v1/credentials"
tags: ["credentials"]
---

# Create Credential Route

`POST /api/v1/credentials`

## Request

- Base URL: `https://api.komos.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.komos.ai/api/v1/credentials`
- Auth: none declared

## Headers

- `Authorization` string, nullable
- `X-Org-Id` string, nullable

## Request body

- CredentialBody
  - `name` string, required
  - `login_url` string, nullable
  - `domain` string, nullable
  - `username` string, required
  - `password` string, required
  - `totp_secret` string, nullable
  - `email_otp_enabled` boolean, nullable
  - `metadata` object, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/komos/apis/komos-backend.md) · [All operations](https://skmtc.dev/komos/apis/komos-backend/llms.txt) · [OpenAPI document](https://skmtc.dev/komos/apis/komos-backend/revisions/f10e153fab38?raw)
