# Listar estructuras/esquemas de las Master Dbs

Para obtener un listado de las estructuras/esquemas de todas las Master Dbs disponibles, se debe enviar un GET como el que se especifica a continuación.

<mark style="color:blue;">`GET`</mark> `https://api.persat.com.ar/v1/masterdbs`

#### Headers

| Name                                            | Type   | Description     |
| ----------------------------------------------- | ------ | --------------- |
| Authorization<mark style="color:red;">\*</mark> | String | Bearer API\_KEY |

{% tabs %}
{% tab title="200: OK La consulta se ejecutó con éxito" %}

```json
{
    "success": true,
    "data": [
        {
            "mdb_id": 133,
            "name": "Productos",
            "fields": [
                {
                    "id": 1,
                    "name": "Nro. de serie",
                    "type": "TEXT"
                },
                {
                    "id": 2,
                    "name": "Descripcion",
                    "type": "TEXT"
                },
                {
                    "id": 5,
                    "name": "Telefono",
                    "type": "TELEPHONE"
                },
                {
                    "id": 6,
                    "name": "Link",
                    "type": "LINK"
                },
                {
                    "id": 7,
                    "name": "precio",
                    "type": "NUMBER"
                },
                {
                    "id": 8,
                    "name": "correo electronico",
                    "type": "EMAIL"
                }
            ]
        },
        {
            "mdb_id": 134,
            "name": "Insumos",
            "fields": [
                {
                    "id": 1,
                    "name": "Nro. Identificacion",
                    "type": "TEXT"
                },
                {
                    "id": 2,
                    "name": "Cantidad disponible",
                    "type": "NUMBER"
                },
                {
                    "id": 3,
                    "name": "Descripción",
                    "type": "TEXT"
                }
            ]
        }
    ]
}
```

{% endtab %}

{% tab title="400: Bad Request Error en alguno de los campos enviados. userMessage contiene informacipon adicional." %}

```javascript
{
    "success": false,
    "error": {
        "status": 400,
        "type": "BAD_REQUEST",
        "userMessage": "mensaje de error correspondiente"
    }
}
```

{% endtab %}
{% endtabs %}

### Analizando la Respuesta

En caso que no haya ningun error, obtenemos

```json
{
    "success": true,
    "data": [
        {
            "mdb_id": 133,
            "name": "Productos",
            "fields": [
                {
                    "id": 1,
                    "name": "Nro. de serie",
                    "type": "TEXT"
                },
                {
                    "id": 2,
                    "name": "Descripcion",
                    "type": "TEXT"
                },
                {
                    "id": 5,
                    "name": "Telefono",
                    "type": "TELEPHONE"
                },
                {
                    "id": 6,
                    "name": "Link",
                    "type": "LINK"
                },
                {
                    "id": 7,
                    "name": "precio",
                    "type": "NUMBER"
                },
                {
                    "id": 8,
                    "name": "correo electronico",
                    "type": "EMAIL"
                }
            ]
        }, {...}
    ]
}
```

Lo que se recibe es un array en donde cada elemento del mismo representa la estructura/esquema de la Master Db con sus columnas y sus tipos de datos.

{% hint style="info" %}
Para ver los detalles de cada field diríjase a [Obtener estructura/esquema de una Master Db](/entidades-basicas/master-db/obtener-estructura-esquema-de-una-master-db.md)
{% endhint %}


---

# 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://docs.api.persat.com.ar/entidades-basicas/master-db/listar-estructuras-esquemas-de-las-master-dbs.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.
