GET
/
{resourceSlug}
/
datasource
/
{datasourceId}
.json
curl --request GET \
  --url https://app.agentcloud.dev/{resourceSlug}/datasource/{datasourceId}.json
{
  "datasource": {
    "_id": "<string>",
    "orgId": "<string>",
    "teamId": "<string>",
    "name": "<string>",
    "description": "<string>",
    "originalName": "<string>",
    "filename": "<string>",
    "sourceType": "<string>",
    "sourceId": "<string>",
    "destinationId": "<string>",
    "workspaceId": "<string>",
    "connectionId": "<string>",
    "recordCount": {
      "total": 123,
      "success": 123,
      "failure": 123
    },
    "connectionSettings": {
      "prefix": "<string>",
      "name": "<string>",
      "sourceId": "<string>",
      "destinationId": "<string>",
      "status": "<string>",
      "configurations": {},
      "schedule": {
        "scheduleType": "cron",
        "cronExpression": "<string>"
      },
      "dataResidency": "<string>",
      "namespaceDefinition": "<string>",
      "namespaceFormat": "<string>",
      "nonBreakingSchemaUpdatesBehavior": "<string>"
    },
    "createdDate": "2023-11-07T05:31:56Z",
    "lastSyncedDate": "2023-11-07T05:31:56Z",
    "status": "draft",
    "discoveredSchema": {},
    "chunkingConfig": {
      "partitioning": "auto",
      "strategy": "basic",
      "max_characters": 123,
      "new_after_n_chars": 123,
      "overlap": 123,
      "similarity_threshold": 0.5,
      "overlap_all": true
    },
    "embeddingField": "<string>",
    "timeWeightField": "<string>",
    "modelId": "<string>",
    "hidden": true,
    "streamConfig": {},
    "timeUnit": "<string>"
  },
  "models": [
    {
      "_id": "<string>",
      "orgId": "<string>",
      "teamId": "<string>",
      "name": "<string>",
      "model": "<string>",
      "embeddingLength": 123,
      "modelType": "<string>",
      "type": "<string>",
      "config": {
        "model": "<string>",
        "api_key": "<string>",
        "base_url": "<string>",
        "cohere_api_key": "<string>",
        "groq_api_key": "<string>"
      }
    }
  ]
}

Path Parameters

resourceSlug
string
required

The resourceSlug is a URL parameter of the teamId associated with the user.

datasourceId
string
required

The ID of the datasource to retrieve.

Response

200
datasources.json

JSON object containing the retrieved datasource and all models associated with the resourceSlug teamId.

The response is of type object.