---
title: "POST /credentials"
method: POST
path: "/credentials"
tags: ["CredentialService", "credentials", "unofficial"]
---

# POST /credentials

`POST /credentials`

## Request body

- CreateCredentialRequest — Create a new credential
  - `credential` Credential, required
    - `id` string
    - `name` string, required
    - `azure` AzureCredential
      - `accountKey` AzureKeyCredential
        - `accountName` string, required
        - `accountKey` string, required
      - `sas` AzureSasCredential
        - `accountName` string, required
        - `sasToken` string, required
      - `client` AzureClientCredential
        - `tenantId` string, required
        - `clientId` string, required
        - `clientSecret` string
        - `clientCertificate` string
        - `federatedTokenFile` string
    - `owner` string — Username of current owner of catalog.
    - `createAt` string — Time at which this catalog was created, in epoch milliseconds.
    - `createdBy` string — Username of catalog creator.
    - `updateAt` string — Time at which this catalog was last updated, in epoch milliseconds.
    - `updatedBy` string — Username of user who last modified catalog.

## Response `200`

OK

- Credential
  - `id` string
  - `name` string, required
  - `azure` AzureCredential
    - `accountKey` AzureKeyCredential
      - `accountName` string, required
      - `accountKey` string, required
    - `sas` AzureSasCredential
      - `accountName` string, required
      - `sasToken` string, required
    - `client` AzureClientCredential
      - `tenantId` string, required
      - `clientId` string, required
      - `clientSecret` string
      - `clientCertificate` string
      - `federatedTokenFile` string
  - `owner` string — Username of current owner of catalog.
  - `createAt` string — Time at which this catalog was created, in epoch milliseconds.
  - `createdBy` string — Username of catalog creator.
  - `updateAt` string — Time at which this catalog was last updated, in epoch milliseconds.
  - `updatedBy` string — Username of user who last modified catalog.

## Other responses

- `default` — Default error response

## Changes

- **2025-02-22** `45486f7d0cd5` — 1 breaking, 2 warning, 5 info
  - added the new required request property `credential`
  - removed the request property `azure`
  - removed the request property `name`
  - added the optional property `createAt` to the response with the `200` status
  - …4 more
- **2025-02-20** `27d7bed71eaa` — 1 info
  - endpoint added
- **2025-02-16** `af378e92b27b` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/delta-incubator/apis/delta-sharing-api/changes/credentials/post.md)

---

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