Skip to main content
GET
/
sources
/
{source_id}
Get source
curl --request GET \
  --url https://apigcp.trynia.ai/v2/sources/{source_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "type": "repository",
  "identifier": "<string>",
  "display_name": "<string>",
  "status": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>",
  "category_id": "<string>",
  "is_global": true,
  "global_source_id": "<string>",
  "global_namespace": "<string>",
  "metadata": {}
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Path Parameters

source_id
string
required

Query Parameters

type
enum<string>

Unified source type

Available options:
repository,
documentation,
research_paper,
huggingface_dataset,
local_folder

Response

200 - application/json

OK

id
string
required

Source identifier

type
enum<string>
required

Unified source type

Available options:
repository,
documentation,
research_paper,
huggingface_dataset,
local_folder
identifier
string

Canonical identifier (repo slug, URL, or folder path)

display_name
string

Human-readable name

status
string

Indexing status

created_at
string

Creation timestamp (ISO)

updated_at
string

Last update timestamp (ISO)

category_id
string | null

Category assignment

is_global
boolean

Whether the source is global/shared

global_source_id
string | null

Global source ID if applicable

global_namespace
string | null

Global namespace if applicable

metadata
object

Type-specific metadata