## Webhooks - Get webhooks

`GET`  https://{entorno}.ticketbaiws.eus/webhooks/

`GET`  https://{entorno}.ticketbaiws.eus/webhooks/{codigo_webhook}/

Gets the status of a single webhook or lists the webhooks created for a NIF (Spanish tax ID).

**Available in the test and production environments.**  The list includes the webhooks of both environments; the `entorno` field (`test` or `real`) shows which one each belongs to, and `eventos` the events it is subscribed to (see [events](https://ticketbaiws.eus/en/webhooks-post/)).

**GET methods accept the parameters either in the body as a JSON payload or as a query string in the URL, as shown in the cURL example.**

**PARAMETERS**

- `solo_errores` (boolean, optional): Filters the webhooks by whether the solo_errores option is enabled. Leave it out to get all results. Ejemplo: `true`
- `activo` (boolean, optional): Filters the webhooks by whether the activo option is enabled. Leave it out to get all results. Ejemplo: `true`

**GET** `https://{entorno}.ticketbaiws.eus/webhooks/`

```bash
$ curl --request GET \
     --url https://api-test.ticketbaiws.eus/webhooks/ \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --header 'Token: xxx' \
     --header 'Nif: 00000014Z'
	 --data '{"activo":"true"}'
```

Respuesta:

```json
HTTP/1.1 200 OK
{
    "result": "OK",
    "return": [
        {
            "codigo": "6904a3501884e",
            "url": "https://www.berein.com/",
            "entorno": "test",
            "secret": "xajky22kjasy",
            "solo_errores": true,
            "activo": true,
            "fecha_creado": "2025-10-31T12:53:52+01:00",
            "fecha_modificado": "2025-11-03T10:16:15+01:00",
            "eventos": ["cambio_estado", "spfe_envio", "spfe_recibida"],
            "nif": "B12346789"
        }
    ],
    "msg": ""
}
```

Fuente: https://ticketbaiws.eus/en/webhooks-get/
