# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://acessorh.gitbook.io/project/api/anexos.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
