GET
/
data-sources
List all data sources
curl --request GET \
  --url https://apigcp.trynia.ai/v2/data-sources \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "url": "<string>",
    "file_name": "<string>",
    "status": "pending",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "page_count": 0,
    "chunk_count": 0,
    "project_id": "<string>",
    "source_type": "web",
    "is_active": true,
    "display_name": "<string>",
    "error": "<string>",
    "error_code": "<string>"
  }
]

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Response

List of data sources retrieved successfully

id
string

Unique identifier for the data source

url
string

The indexed URL

file_name
string

File name for text sources

status
enum<string>

Current indexing status

Available options:
pending,
processing,
completed,
failed,
error
created_at
string<date-time>
updated_at
string<date-time>
page_count
integer
default:0

Number of pages indexed

chunk_count
integer
default:0

Number of chunks/embeddings created

project_id
string

Associated project ID if any

source_type
enum<string>
default:web
Available options:
web,
text
is_active
boolean
default:true
display_name
string

Custom display name for the data source

error
string

Error message if status is 'error' or 'failed'

error_code
string

Error code for programmatic error handling