v1
latestOpenAPI 3.0.32026-07-267015229.9 KBDocuments
Recrawl Document
Trigger a recrawl of a website document to fetch fresh content.
post/v2/documents/{document_id}/recrawl
Path parameters
document_idstring required
Unique id of the crawl-backed website document to refresh. Use when the source site changed, you want to refresh content on a schedule, or retry after crawl or processing errors.
The document must be in ready or error (otherwise 409). It must have been created with a crawl configuration unless you supply crawl in the request body for this call.
The same document cannot be recrawled more than once within each 1-hour cooldown (429 if invoked too soon).
Request body
Example request
{
"crawl": {
"depth": 2,
"max_pages": 10
}
}Response
Recrawl initiated successfully
Example response
{
"document_id": "d8-5c71baca86fc",
"document_name": "Company Website",
"document_url": "https://example.com/",
"status": "recrawling",
"created_at": "2024-01-01T12:00:00Z",
"updated_at": "2024-01-15T10:30:00Z",
"callback_url": "https://your-server.com/webhook",
"tags": [
"website",
"company"
],
"crawl_config": {
"depth": 2,
"max_pages": 10
},
"crawled_urls": [
"https://docs.example.com/",
"https://docs.example.com/getting-started"
],
"last_crawled_at": "2024-01-01T12:05:00Z",
"crawl_count": 1
}