> 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/webhooks/list-webhooks.md).

# List webhooks

Listagem de todos webhooks configurados na empresa.

<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/integrations/webhooks`

### **Headers**

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

### **Query Parameters**

| Key                                       | Type    | Description                                                    |
| ----------------------------------------- | ------- | -------------------------------------------------------------- |
| account<mark style="color:red;">\*</mark> | string  | UID da empresa onde os webhooks serão listados.                |
| skip                                      | integer | Indica a quantidade de webhooks que serão pulados (paginação). |
| limit                                     | integer | Limite de webhooks que serão listados (paginação).             |

{% hint style="warning" %}
É necessário informar o [**account**](https://devcenter.unico.io/unico-people/unico-people-v1/apis/organizacao.md#get-organization) para listar os webhooks da empresa.
{% endhint %}

### Exemplo de requisição

```json
curl --location 'https://api.acessorh.com.br/v1/integrations/webhooks?account=uid%20do%20account' \
--header 'Authorization: Bearer token de acesso' \
--data ''
```

### Exemplo de response

{% code title="200 OK" %}

```json
{
    "total": 2,
    "results": [
        {
            "account": "2d9174c4-06b7-4956-a5dc-8824d8a2f49e",
            "authorization": {
                "kind": "secret"
            },
            "data": {
                "url": "https://api.teste.com.br/callback",
                "events": [
                    "position-created",
                    "position-archived",
                    "position-completed"
                ]
            },
            "uid": "a7c001fe-50bb-41cd-a910-da27e538726f",
            "unit": "82930d53-e99a-4927-b31e-4fdc7090395d"
        },
        {
            "account": "2d9174c4-06b7-4956-a5dc-8824d8a2f49e",
            "authorization": {
                "kind": "basic"
            },
            "data": {
                "url": "https://api.teste.com.br/callback/applied",
                "events": [
                    "position-applied"
                ]
            },
            "uid": "32b3f3d0-59dc-4cf1-9b4d-4ffcd04a14e4",
            "unit": "82930d53-e99a-4927-b31e-4fdc7090395d"
        }
    ]
}
```

{% endcode %}

{% hint style="info" %}
Caso não seja inserido os parâmetros `limit` e `skip` , os valores padrões serão, respectivamente, 100 e 0.

O parâmetro `limit` tem o seu valor máximo como 100.
{% endhint %}
