curl -X POST https://mtxbiyilvgwhbdptysex.supabase.co/functions/v1/list-knowledge-sources \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
{
"sources": [
{
"id": "f7a8b9c0-d1e2-3f4a-5b6c-789012def345",
"url": "https://example.com/help/faq",
"title": "Frequently Asked Questions",
"sync_status": "completed",
"chunk_count": 24,
"last_synced_at": "2024-01-15T10:35:00Z",
"next_sync_at": "2024-01-22T10:35:00Z",
"created_at": "2024-01-15T10:30:00Z"
},
{
"id": "a8b9c0d1-e2f3-4a5b-6c7d-890123ef4567",
"url": "https://example.com/products",
"title": "Our Products",
"sync_status": "completed",
"chunk_count": 18,
"last_synced_at": "2024-01-14T08:00:00Z",
"next_sync_at": "2024-02-14T08:00:00Z",
"created_at": "2024-01-14T08:00:00Z"
}
],
"total": 2
}
List all knowledge sources in your account
curl -X POST https://mtxbiyilvgwhbdptysex.supabase.co/functions/v1/list-knowledge-sources \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
{
"sources": [
{
"id": "f7a8b9c0-d1e2-3f4a-5b6c-789012def345",
"url": "https://example.com/help/faq",
"title": "Frequently Asked Questions",
"sync_status": "completed",
"chunk_count": 24,
"last_synced_at": "2024-01-15T10:35:00Z",
"next_sync_at": "2024-01-22T10:35:00Z",
"created_at": "2024-01-15T10:30:00Z"
},
{
"id": "a8b9c0d1-e2f3-4a5b-6c7d-890123ef4567",
"url": "https://example.com/products",
"title": "Our Products",
"sync_status": "completed",
"chunk_count": 18,
"last_synced_at": "2024-01-14T08:00:00Z",
"next_sync_at": "2024-02-14T08:00:00Z",
"created_at": "2024-01-14T08:00:00Z"
}
],
"total": 2
}
pending, syncing, completed, failed.curl -X POST https://mtxbiyilvgwhbdptysex.supabase.co/functions/v1/list-knowledge-sources \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
{
"sources": [
{
"id": "f7a8b9c0-d1e2-3f4a-5b6c-789012def345",
"url": "https://example.com/help/faq",
"title": "Frequently Asked Questions",
"sync_status": "completed",
"chunk_count": 24,
"last_synced_at": "2024-01-15T10:35:00Z",
"next_sync_at": "2024-01-22T10:35:00Z",
"created_at": "2024-01-15T10:30:00Z"
},
{
"id": "a8b9c0d1-e2f3-4a5b-6c7d-890123ef4567",
"url": "https://example.com/products",
"title": "Our Products",
"sync_status": "completed",
"chunk_count": 18,
"last_synced_at": "2024-01-14T08:00:00Z",
"next_sync_at": "2024-02-14T08:00:00Z",
"created_at": "2024-01-14T08:00:00Z"
}
],
"total": 2
}