Skip to main content
GET
/
sources
List Sources
curl --request GET \
  --url https://apigcp.trynia.ai/v2/sources \
  --header 'Authorization: Bearer <token>'
{
  "pagination": {
    "total": 123,
    "limit": 123,
    "offset": 123,
    "has_more": true
  },
  "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": {},
      "curation": {
        "trust_signals": {
          "trust_level": "medium",
          "trust_tier": "medium",
          "scope": "private",
          "is_global": false,
          "is_verified": false,
          "overlay_available": false,
          "annotation_count": 0
        },
        "overlay_summary": "<string>",
        "recommended_queries": [
          "<string>"
        ]
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Query Parameters

type
enum<string> | null

Filter by source type

Available options:
repository,
documentation,
research_paper,
huggingface_dataset,
local_folder,
slack,
google_drive
query
string | null

Search by name or identifier

status
string | null

Filter by status

category_id
string | null

Filter by category

limit
integer
default:20
Required range: 1 <= x <= 100
offset
integer
default:0
Required range: x >= 0

Response

Successful Response

Response for listing sources.

pagination
PaginationInfo · object
required

Pagination metadata

items
Source · object[]

List of sources