# proveCertificate

> For the complete documentation index, see [llms.txt](https://bsvblockchain.com/docs/llms.txt).

**POST** `/proveCertificate`

Base URL: `http://localhost:3321`

Proves a certificate

## Body

Content type: `application/json`

- `certificate` (object)
  - `type` (string)
  - `subject` (string)
  - `serialNumber` (string)
  - `certifier` (string)
  - `revocationOutput` (string)
  - `signature` (string)
  - `fields` (object)
- `fieldsToReveal` (string[])
- `verifier` (string)
- `privileged` (boolean)
- `privilegedReason` (string)

Example:

```json
{
  "certificate": {
    "type": "string",
    "subject": "string",
    "serialNumber": "string",
    "certifier": "string",
    "revocationOutput": "string",
    "signature": "string",
    "fields": {}
  },
  "fieldsToReveal": [
    "string"
  ],
  "verifier": "string",
  "privileged": false,
  "privilegedReason": "string"
}
```

## Responses

### 200

The proof of the certificate

- `keyringForVerifier` (object)

Example:

```json
{
  "keyringForVerifier": {}
}
```

### 400

Invalid input

### 500

Internal server error