---
title: "POST /get-cert-challenge"
method: POST
path: "/get-cert-challenge"
tags: ["v2"]
---

# POST /get-cert-challenge

`POST /get-cert-challenge`

## Request body

- GetCertChallenge — GetCertChallenge is a command that gets a challenge for certificate authentication
  - `access-id` string — Access ID
  - `cert-data` string — Certificate data encoded in base64. Used if file was not provided.
  - `json` boolean — Set output format to JSON

## Response `200`

getCertChallengeResponse wraps response body.

- GetCertChallengeOutput
  - `challenge` string

## Other responses

- `400` — errorResponse wraps any error to return it as a JSON object with one "error" field.
- `default` — errorResponse wraps any error to return it as a JSON object with one "error" field.

---

[API](https://skmtc.net/akeyless/apis/akeyless-api.md) · [All operations](https://skmtc.net/akeyless/apis/akeyless-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akeyless/akeyless-api/versions/0ceb25634501/schema)
