# Process Methods

### Get available processes

## Get available processes

<mark style="color:blue;">`GET`</mark> `/avail-process`

This method provides information about available processes for a given api key

{% tabs %}
{% tab title="200: OK Information is shown (OK)" %}

<pre class="language-json" data-title="Example response:"><code class="lang-json">[
<strong>    {
</strong>        "id": “0”,
<strong>        "counterpartyId": “0”,
</strong>        "name": "PADES-BES",
        "tsaSettingsId": “0”,
        "hsMsId": “0”,
        "settings": "{}",
        "procesType": “0”
    }
]
</code></pre>

{% endtab %}

{% tab title="404: Not Found Not found" %}

{% endtab %}
{% endtabs %}

### Acquire certificate

## Acquire certificate

<mark style="color:blue;">`GET`</mark> `/certificate`

Method is used to acquire and then download a certificate for given processId.

#### Request Body

| Name      | Type    | Description |
| --------- | ------- | ----------- |
| processId | Integer |             |

{% tabs %}
{% tab title="200: OK Certificate is acquired (OK)" %}
\-----BEGIN CERTIFICATE-----&#x20;

{certificate}

&#x20;\-----END CERTIFICATE-----
{% endtab %}

{% tab title="404: Not Found Not found" %}

{% endtab %}
{% endtabs %}
