---
title: "POST /v1/credentials"
method: POST
path: "/v1/credentials"
tags: ["Credential Management"]
---

# POST /v1/credentials

`POST /v1/credentials`

## Request body

- CreateCredentialRequest
  - `platform` string, nullable
  - `userName` string, nullable
  - `passwordHash` string, nullable
  - `accounts` CreateCredentialAccountRequest[], nullable
    - `accountReference` string, nullable
    - `legacyAccountReference` string, nullable
  - `tenantCode` string, nullable
  - `userId` string, nullable
  - `upgradeEnabled` boolean
  - `upgradeDate` string, date-time

## Response `200`

Success

- ApiResponseOfCreateCredentialResponse
  - `errors` ErrorDto[], nullable
    - `errorCode` string
    - `errorMessage` string
    - `metadata` object, nullable
  - `data` CreateCredentialResponse
    - `credentialId` string, guid
    - `userName` string
    - `platform` string
    - `accounts` CreateCredentialAccount[]
      - `accountReference` string
      - `legacyAccountReference` string
    - `tenantCode` string
    - `userId` string
    - `upgradeDate` string, date-time
    - `upgradeEnabled` boolean

## Other responses

- `401` — Unauthorized
- `403` — Forbidden

---

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