Chat9
APIDocuments

Get Url Source Route

Return detail, recent crawl history, and indexed pages for one URL source.

GET
/documents/sources/{source_id}
/documents/sources/{source_id}

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Path Parameters

source_id
Required
Source Id

Format: "uuid"
curl -X GET "https://api.getchat9.live/documents/sources/497f6eca-6276-4993-bfeb-53cbbbba6f08" \
  -H "Authorization: Bearer <token>"

Successful Response

{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "name": "string",
  "url": "string",
  "source_type": "url",
  "status": "string",
  "schedule": "daily",
  "pages_found": 0,
  "pages_indexed": 0,
  "chunks_created": 0,
  "last_crawled_at": "2019-08-24T14:15:22Z",
  "next_crawl_at": "2019-08-24T14:15:22Z",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z",
  "warning_message": "string",
  "error_message": "string",
  "exclusion_patterns": [
    "string"
  ],
  "recent_runs": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "status": "string",
      "pages_found": 0,
      "pages_indexed": 0,
      "failed_urls": [
        {
          "url": "string",
          "reason": "string"
        }
      ],
      "duration_seconds": 0,
      "error_message": "string",
      "created_at": "2019-08-24T14:15:22Z",
      "finished_at": "2019-08-24T14:15:22Z"
    }
  ],
  "pages": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "title": "string",
      "url": "string",
      "chunk_count": 0,
      "updated_at": "2019-08-24T14:15:22Z"
    }
  ],
  "quick_answers": [
    {
      "key": "string",
      "value": "string",
      "source_url": "string",
      "detected_at": "2019-08-24T14:15:22Z"
    }
  ]
}