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

# Create Credential

`POST /api/v1/credentials/`

## Request

- Base URL: `https://app.dograh.com`
- URL: `https://app.dograh.com/api/v1/credentials/`
- Auth: none declared

Create a new webhook credential.

Args:
    request: The credential creation request

Returns:
    The created credential (without sensitive data)

## Headers

- `authorization` string, nullable
- `X-API-Key` string, nullable

## Request body

- CreateCredentialRequest: Request schema for creating a webhook credential.
  - `name` string, required
  - `description` string, nullable
  - `credential_type` 'none' | 'api_key' | 'bearer_token' | 'basic_auth' | 'custom_header', required: Webhook credential authentication types
  - `credential_data` object, required

## Response `200`

Successful Response

- CredentialResponse: Response schema for a webhook credential (never includes sensitive data).
  - `uuid` string, required
  - `name` string, required
  - `description` string, nullable, required
  - `credential_type` string, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, nullable, required

## Other responses

- `404`: Not found
- `422`: Validation Error

## Changes

- **2026-11-03** `faa00cf76fcb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/dograh/apis/dograh-api/changes/api/v1/credentials/post.md)

---

[API](https://skmtc.dev/dograh/apis/dograh-api.md) - [All operations](https://skmtc.dev/dograh/apis/dograh-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dograh/apis/dograh-api/revisions/faa00cf76fcb?raw)
