# Create Credential With Code

`POST /auth/credentials/code/verify`

Part of the flow [Create Credential With Code](https://docs-legacy.dfns.co/d/advanced-topics/authentication/credentials#create-credential-with-code-flow).

Adds a new credential to a user's account. This endpoint is similar to the [Create Credential](https://docs-legacy.dfns.co/d/api-docs/authentication/credential-management/api-reference/createusercredential-1) endpoint, except:

* it does not need the user to be authenticated
* it does not need user action signing
* it will only work with the challenge gotten from the [Create Credential Challenge With Code](https://docs-legacy.dfns.co/d/api-docs/authentication/credential-management/api-reference/createusercredentialchallenge-1) endpoint

{% hint style="info" %}

* Request headers required. See [Request Headers](https://docs-legacy.dfns.co/d/advanced-topics/authentication/request-headers) for more information.
  {% endhint %}

## Required Permissions

None

## Request body

Similar to the [Create Credential](https://docs-legacy.dfns.co/d/api-docs/authentication/credential-management/api-reference/createusercredential-1) endpoint

## Response body

Similar to the [Create Credential](https://docs-legacy.dfns.co/d/api-docs/authentication/credential-management/api-reference/createusercredential-1) endpoint
