> 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-raw-file.md). Agents can also search and read this documentation through its [MCP server](https://devcenter.unico.io/unico-people/~gitbook/mcp).

# Get a raw file

Download de imagens e/ou arquivos no formato original.

<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/r/: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                                                                                                                                                                         |
| -------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 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) |

### Exemplo de requisição

```json

curl --location 'https://api.acessorh.com.br/v1/r/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 %}
