---
title: "POST /api/v1/idemix/credential"
method: POST
path: "/api/v1/idemix/credential"
tags: ["fabric-ca-server"]
---

# POST /api/v1/idemix/credential

`POST /api/v1/idemix/credential`

Get an Identity Mixer credential. Identity Mixer credential issuance is a two step process. First, a request with empty request body is sent to this endpoint. The Fabric CA server will respond back with a nonce. This nonce should be used to create a credential request. Next, a request with the credential request in the request body is sent to this endpoint. The server will respond back with a credential.

## Query parameters

- `ca` string

## Headers

- `Authorization` string, required

## Request body

- object
  - `request` string, required — JSON encoding idemix.CredentialRequest struct
  - `caname` string — Name of the CA to direct this request to within the Fabric CA server

## Response `201`

Successfully returned a nonce or Identity Mixer credential

- ResponseBase
  - `result` unknown, required
  - `success` boolean, required — Boolean indicating if the request was successful.
  - `errors` object[], required — An array of error messages (code and message)
    - `code` integer, required — Integer code denoting the type of error.
    - `message` string, required — An error message
  - `messages` object[], required — An array of information messages (code and message)
    - `code` integer, required — Integer code denoting the type of message.
    - `message` string, required — A more specific message.

## Changes

- **2022-07-07** `caceed60027b` — 1 breaking, 1 info
  - removed the required property `result/CAInfo/RevocationPublicKey` from the response with the `201` status
  - added the required property `result/CAInfo/IssuerRevocationPublicKey` to the response with the `201` status
- **2022-06-20** `f5334c38d4d9` — 1 breaking, 1 info
  - removed the required property `result/CAInfo/IssuerRevocationPublicKey` from the response with the `201` status
  - added the required property `result/CAInfo/RevocationPublicKey` to the response with the `201` status

[Change history](https://skmtc.dev/hyperledger/apis/fabric-ca-server-api/changes/api/v1/idemix/credential/post.md)

---

[API](https://skmtc.dev/hyperledger/apis/fabric-ca-server-api.md) · [All operations](https://skmtc.dev/hyperledger/apis/fabric-ca-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hyperledger/fabric-ca-server-api/revisions/f1cf3d665f0e/schema)
