Skip to main content
POST
/
data-sources
/
{source_id}
/
content
Get data source page content
curl --request POST \
  --url https://apigcp.trynia.ai/v2/data-sources/{source_id}/content \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "path": "/getting-started/installation"
}
'
{
  "success": true,
  "content": "<string>",
  "url": "<string>",
  "metadata": {
    "title": "<string>",
    "total_lines": 123
  }
}

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/")

Body

application/json
path
string
required

Virtual path to the page within the documentation

Example:

"/getting-started/installation"

Response

Page content retrieved successfully

success
boolean
content
string

Full page content in markdown format

url
string

Original URL of the page

metadata
object