> ## Documentation Index
> Fetch the complete documentation index at: https://docs.horneross.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Listar datastores

> Obtener todos los datastores de tu organización.

## Endpoint

```
GET /api/datastores
```

## Headers

<ParamField header="Authorization" type="string" required>
  Bearer token con tu API key. Formato: `Bearer sk_live_xxx`
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET https://app.horneross.com/api/datastores \
    -H "Authorization: Bearer sk_live_xxx"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://app.horneross.com/api/datastores',
    {
      headers: {
        'Authorization': 'Bearer sk_live_xxx',
      },
    }
  );

  const datastores = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      'https://app.horneross.com/api/datastores',
      headers={'Authorization': 'Bearer sk_live_xxx'}
  )

  datastores = response.json()
  ```
</RequestExample>

## Response

<ResponseField name="data" type="array" required>
  Array de datastores

  <Expandable title="Propiedades de cada datastore">
    <ResponseField name="data[].id" type="string" required>
      ID único del datastore
    </ResponseField>

    <ResponseField name="data[].name" type="string" required>
      Nombre del datastore
    </ResponseField>

    <ResponseField name="data[].description" type="string">
      Descripción
    </ResponseField>

    <ResponseField name="data[].type" type="string">
      Tipo de vector store (`qdrant`)
    </ResponseField>

    <ResponseField name="data[].visibility" type="string">
      Visibilidad: `public` o `private`
    </ResponseField>

    <ResponseField name="data[]._count.datasources" type="number">
      Cantidad de documentos
    </ResponseField>

    <ResponseField name="data[].createdAt" type="string">
      Fecha de creación (ISO 8601)
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json 200 - Success theme={null}
  [
    {
      "id": "ds_abc123",
      "name": "FAQ General",
      "description": "Preguntas frecuentes del sitio",
      "type": "qdrant",
      "visibility": "private",
      "_count": {
        "datasources": 15
      },
      "createdAt": "2024-01-15T10:00:00Z"
    }
  ]
  ```
</ResponseExample>
