> For the complete documentation index, see [llms.txt](https://docs.vaultid.com.br/workspace/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vaultid.com.br/workspace/gateway-act/carimbo.md).

# Carimbo

Essa API é responsável apenas por carimbar uma requisição.

Para gerar uma requisição, pode-se utilizar o comando `openssl ts -query -data seu_arquivo.txt -out request.tsq`

É necessário que o requerente possua um **client id** e **client secret** previamente cadastrado e **permitido** no portal **Wings**.

A requisição deve ser realizada com o tipo de autenticação Basic, que envia no header o base64 do "clientid:clientsecret".

<mark style="color:green;">`POST`</mark> `https://gateway-act.hom.vaultid.com.br/api/act`

#### Headers

| Name                                            | Type   | Description                           |
| ----------------------------------------------- | ------ | ------------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | String | Basic base64("clientid:clientsecret") |
| Content-Type<mark style="color:red;">\*</mark>  | String | application/octet-stream              |

#### Request Body

| Name                                          | Type | Description  |
| --------------------------------------------- | ---- | ------------ |
| data-binary<mark style="color:red;">\*</mark> | File | @request.tsq |

{% tabs %}
{% tab title="401: Unauthorized " %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="200: OK Binário do carimbo" %}

{% endtab %}

{% tab title="400: Bad Request " %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

Exemplo:

```shell
curl --location --request POST 'https://gateway-act.hom.vaultid.com.br/api/act'
--header 'Authorization: Basic dGVzdGU6dGVzdGU='
--header 'Content-Type: application/octet-stream'
--data-binary '@request.tsq' -output response.tsr
```
