Skip to main content
GET
/
api
/
datastores
/
{datastoreId}
curl -X GET "https://app.horneross.com/api/datastores/ds_abc123?status=synced&limit=50" \
  -H "Authorization: Bearer sk_live_xxx"
{
  "id": "ds_abc123",
  "name": "FAQ General",
  "description": "Preguntas frecuentes",
  "type": "qdrant",
  "visibility": "private",
  "_count": {
    "datasources": 15
  },
  "datasources": [
    {
      "id": "datasource_xyz",
      "name": "Política de devoluciones",
      "type": "text",
      "status": "synced",
      "lastSynch": "2024-01-21T10:00:00Z",
      "_count": {
        "children": 0
      },
      "children": [],
      "autoSyncConfig": {
        "autoSync": false
      }
    }
  ],
  "apiKeys": [
    {
      "id": "key_123",
      "key": "ds_key_xxx"
    }
  ]
}

Endpoint

GET /api/datastores/{datastoreId}

Path Parameters

datastoreId
string
required
ID del datastore

Headers

Authorization
string
required
Bearer token con tu API key. Formato: Bearer sk_live_xxx

Query Parameters

Buscar datasources por nombre o URL
status
string
Filtrar por estado: pending, running, synced, error, usage_limit_reached
type
string
Filtrar por tipo: file, text, web_page, web_site, notion, google_drive_file, etc.
groupId
string
Filtrar por grupo de datasources
offset
number
default:"0"
Offset para paginación
limit
number
default:"100"
Cantidad de datasources a retornar
curl -X GET "https://app.horneross.com/api/datastores/ds_abc123?status=synced&limit=50" \
  -H "Authorization: Bearer sk_live_xxx"

Response

id
string
required
ID del datastore
name
string
required
Nombre del datastore
datasources
array
Lista de datasources
_count.datasources
number
Total de datasources (filtrados)
apiKeys
array
API keys del datastore
{
  "id": "ds_abc123",
  "name": "FAQ General",
  "description": "Preguntas frecuentes",
  "type": "qdrant",
  "visibility": "private",
  "_count": {
    "datasources": 15
  },
  "datasources": [
    {
      "id": "datasource_xyz",
      "name": "Política de devoluciones",
      "type": "text",
      "status": "synced",
      "lastSynch": "2024-01-21T10:00:00Z",
      "_count": {
        "children": 0
      },
      "children": [],
      "autoSyncConfig": {
        "autoSync": false
      }
    }
  ],
  "apiKeys": [
    {
      "id": "key_123",
      "key": "ds_key_xxx"
    }
  ]
}