---
title: "Create Auth Credential"
method: POST
path: "/v2/identities/{identifier}/create-auth-credential"
tags: ["Identity", "Key Management"]
---

# Create Auth Credential

`POST /v2/identities/{identifier}/create-auth-credential`

## Request

- The document declares no server URL.
- Auth: HTTP basic

Endpoint to create a new Auth Credential
* keyID - only babyjubjub keys supported

## Path parameters

- `identifier` string, required

## Request body

- CreateAuthCredentialRequest
  - `keyID` string, required
  - `expiration` integer
  - `version` integer
  - `revNonce` integer
  - `credentialStatusType` 'Iden3commRevocationStatusV1.0' | 'Iden3ReverseSparseMerkleTreeProof' | 'Iden3OnchainSparseMerkleTreeProof2023', required

## Response `201`

Key added successfully

- object
  - `id` string, required: The ID of the created Auth Credential

## Other responses

- `400`: Bad Request
- `500`: Internal Server error

## Changes

- **2024-12-24** `0b68c34df384`: 1 info
  - endpoint added
- **2024-12-24** `d705ece785fa`: 1 breaking
  - api path removed without deprecation
- **2024-12-19** `ba99aff1c108`: 1 breaking, 3 info
  - added the new required request property `credentialStatusType`
  - added the new optional request property `expiration`
  - added the new optional request property `revNonce`
  - added the new optional request property `version`
- **2024-12-19** `f3319728dd7c`: 1 info
  - endpoint added
- **2024-12-17** `96ff718e8ae9`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/0xpolygonid/apis/privado-id-issuer/changes/v2/identities/:identifier/create-auth-credential/post.md)

---

[API](https://skmtc.dev/0xpolygonid/apis/privado-id-issuer.md) - [All operations](https://skmtc.dev/0xpolygonid/apis/privado-id-issuer/llms.txt) - [OpenAPI document](https://skmtc.dev/0xpolygonid/apis/privado-id-issuer/revisions/8ea65174fe46?raw)
