> For the complete documentation index, see [llms.txt](https://acessorh.gitbook.io/project/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://acessorh.gitbook.io/project/api/anexos.md).

# Anexos

Listagem de anexos

## List attachments by account

<mark style="color:blue;">`GET`</mark> `https://api.acessorh.com.br/v1/attachments/:acc`

Busca todos os anexos atrelados a uma account.&#x20;

#### Path Parameters

| Name                                  | Type   | Description   |
| ------------------------------------- | ------ | ------------- |
| acc<mark style="color:red;">\*</mark> | String | ID da account |

#### Query Parameters

| Name  | Type   | Description                                                                                                                             |
| ----- | ------ | --------------------------------------------------------------------------------------------------------------------------------------- |
| limit | String | <p>Quantidade de anexos que devem ser retornados na consulta.<br>Caso não seja passado será retornado os 100 primeiros resultados. </p> |
| skip  | String | Indica a quantidade de anexos que serão pulados (paginação).                                                                            |

#### Headers

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

{% tabs %}
{% tab title="200: OK Sucesso" %}

```javascript
{
  "total": 1,
  "attachments": [
      {
          "categoryID": "fa650c17-1b9d-4189-a02c-bdf23df7ce7c",
          "categoryName": "Anexo tipo A",
          "attachmentID": "7d197b75-e876-4c63-9c11-9631918b5acc",
          "file": {
              "path": "organization/896ffd1d-a3a9-43df-a2e8-eed057fe40e6/attachments/category/fa650c17-1b9d-4189-a02c-bdf23df7ce7c/attachment/7d197b75-e876-4c63-9c11-9631918b5acc/5535ed24-50e1-4879-93a2-6ac9e4941047.pdf",
              "mime": "application/pdf",
              "size": 319626,
              "name": ""
          },
      },
  ],
}
```

{% endtab %}

{% tab title="404: Not Found Nenhum anexo encontrado" %}

```javascript
{
    "total": 0,
    "attachments": null
}
```

{% endtab %}
{% endtabs %}
