---
title: "Create credential"
method: POST
path: "/api/v1/me/dns-credentials"
tags: ["DNS Credentials"]
---

# Create credential

`POST /api/v1/me/dns-credentials`

## Request

- Base URL: `https://api.proof.holdings`
- URL: `https://api.proof.holdings/api/v1/me/dns-credentials`
- Auth: API key in cookie `auth_token`

Store DNS provider credentials for reuse across domains.

## Request body

- CreateProviderCredentialRequest: Request body for creating stored DNS provider credentials
  - `provider` string, required
  - `credentials` object, required

## Response `201`

Credential stored

- SuccessResponse: Generic success response
  - `success` boolean, required
  - `message` string

## Other responses

- `400`: Validation error

---

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