> For the complete documentation index, see [llms.txt](https://devcenter.unico.io/unico-people/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devcenter.unico.io/unico-people/unico-people-v1/apis/arquivos/get-a-converted-file.md). Agents can also search and read this documentation through its [MCP server](https://devcenter.unico.io/unico-people/~gitbook/mcp).

# Get a converted file

Download de imagens convertidas no formato desejado.

<mark style="color:green;">`GET`</mark> \ <mark style="color:$primary;">**Url Produção:**</mark> `https://api.acessorh.com.br`\ <mark style="color:$primary;">**Url Homologação:**</mark> `https://api.rh.homolog.acesso.io`\ <mark style="color:$primary;">**Endpoint:**</mark> `/v1/c/:format/:path`

### **Headers**

| Key                                             | Type   | Description                                                   |
| ----------------------------------------------- | ------ | ------------------------------------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | string | Token de acesso adquirido pela plataforma Identity *(bearer)* |

### **Path Parameters**

| Key                                      | Type   | Description                                                                                                                                                                         |
| ---------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| format<mark style="color:red;">\*</mark> | string | Formato no qual o arquivo será convertido                                                                                                                                           |
| path<mark style="color:red;">\*</mark>   | string | Caminho do arquivo que deseja fazer o download. Pode ser coletado na API de [GET Positions.](https://devcenter.unico.io/unico-people/unico-people-v1/apis/posicoes/get-position.md) |

#### Formatos de imagem

> JPEG, PNG, GIF, WEBP, SVG, TIFF, BMP, HEIF/HEIC

### Exemplo de requisição

```json

curl --location 'https://api.acessorh.com.br/v1/c/PNG/path/doarquivo/coletado/naapi.jpg' \
--header 'Authorization: Bearer token de auth'
```

### Exemplo de response

```json
200 OK
```

{% hint style="success" %}
Ao executar essa API, além do response de sucesso, o download do arquivo e feito automaticamente (caso seja via postman). \
\
Também é possível configurar o caminho onde o arquivo será salvo, em outras linguagens.
{% endhint %}
