---
title: "Generate a verification code for the primary or secondary x509 certificate of an enrollment group"
method: POST
path: "/enrollmentGroups/{enrollmentGroupId}/certificates/{entry}/generateVerificationCode"
---

# Generate a verification code for the primary or secondary x509 certificate of an enrollment group

`POST /enrollmentGroups/{enrollmentGroupId}/certificates/{entry}/generateVerificationCode`

Generate a verification code for the primary or secondary x509 certificate of an enrollment group.

## Path parameters

- `enrollmentGroupId` string, required
- `entry` 'primary' | 'secondary', required

## Query parameters

- `api-version` string, required

## Response `200`

Success

- X509VerificationCode — The X509 certificate verification code.
  - `verificationCode` string — The X509 certificate verification code.

## Other responses

- `default` — An error response received from the IoT Central Service.

---

[API](https://skmtc.net/azure/apis/iotcentral-iotcentral.md) · [All operations](https://skmtc.net/azure/apis/iotcentral-iotcentral/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/iotcentral-iotcentral/versions/565d8813cbd3/schema)
