GET
/
data-sources
/
{source_id}
Get data source details
curl --request GET \
  --url https://apigcp.trynia.ai/v2/data-sources/{source_id} \
  --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

Path Parameters

source_id
string
required

Flexible data source identifier. Can be:

  • UUID (e.g., "550e8400-e29b-41d4-a716-446655440000")
  • Display name (e.g., "Vercel AI SDK - Core")
  • URL (e.g., "https://docs.trynia.ai/")

Response

Data source details 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