Skip to main content
GET
/
sources
List sources
curl --request GET \
  --url https://apigcp.trynia.ai/v2/sources \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "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": {}
    }
  ],
  "pagination": {
    "total": 123,
    "limit": 123,
    "offset": 123,
    "has_more": true
  }
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Query Parameters

type
enum<string>

Unified source type

Available options:
repository,
documentation,
research_paper,
huggingface_dataset,
local_folder
query
string
status
string
category_id
string
limit
integer
default:20
offset
integer
default:0

Response

200 - application/json

OK

items
object[]
required
pagination
object
required