> For the complete documentation index, see [llms.txt](https://docs.signius.eu/api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.signius.eu/api/harmony-api-1/certificate.md).

# Certificate

## Cerificate

<mark style="color:blue;">`GET`</mark> `https://professional.signius.eu:8200/api/signature/certificates/`

Get or genarete user certificate with a public key.&#x20;

#### Headers

| Name                                           | Type   | Description                     |
| ---------------------------------------------- | ------ | ------------------------------- |
| X-AUTH-TOKEN<mark style="color:red;">\*</mark> | String | User access token               |
| Content-Type                                   | String | application/json; charset=utf-8 |

{% tabs %}
{% tab title="401: Unauthorized Unauthorized Access" %}
{% code title="Example response:" %}

```json
{
    "exception": "UnauthorizedAccessException",
    "code": 401,
    "message": "error.no.access",
    "timestamp": "2023-08-28T06:40:14.667Z",
    "status": "UNAUTHORIZED",
    "details": {
        "objectName": "authorization",
        "error": {
            "objectName": "authorization",
            "codes": [
                "error.no.access"
            ],
            "arguments": null,
            "defaultMessage": "error.no.access",
            "code": "error.no.access"
        }
    }
}
```

{% endcode %}
{% endtab %}

{% tab title="500: Internal error" %}
{% code title="Example response:" %}

```json
{
    "exception": "SigniusPortalException",
    "code": "unrecognized.exception",
    "timestamp": "2023-08-28T06:40:53.363Z",
    "message": "SigniusPortalException"
}
```

{% endcode %}
{% endtab %}

{% tab title="200: OK Certificate available" %}
{% code title="Example response:" %}

```json
[
    {
        "policy": {
            "policyId": 1,
            "name": "QUALIFIED",
            "description": "QUALIFIED"
        },
        "keyInfo": {
            "certificateBytes": "<bytes>",
            "keyId": 2270206272397386788,
            "publicKey": "<key>",
            "expirationDate": "2024-08-23T08:01:10Z"
        }
    }
]
```

{% endcode %}
{% endtab %}
{% endtabs %}
