Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Start an asynchronous multi-page crawl from a root URL.
cURL
curl --request POST \ --url https://api.gainflow.ai/v1/crawl \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "url": "<string>" } '
import requests url = "https://api.gainflow.ai/v1/crawl" payload = { "url": "<string>" } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.text)
const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: JSON.stringify({url: '<string>'}) }; fetch('https://api.gainflow.ai/v1/crawl', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "start_url": "<string>", "status": "queued", "max_pages": 123, "max_depth": 123, "discovered_pages": 123, "completed_pages": 123, "failed_pages": 123, "created_at": "2023-11-07T05:31:56Z", "completed_at": "2023-11-07T05:31:56Z" }
{ "type": "<string>", "title": "<string>", "status": 123, "code": "UNAUTHORIZED", "request_id": "<string>", "detail": "<string>" }
Either a Gainflow API key (gf_live_*) or a WorkOS AuthKit OAuth 2.1 JWT.
2048
1 <= x <= 500
0 <= x <= 5
20
1 - 128
1 - 3
markdown
html
links
^[A-Z]{2}$
Accepted crawl job
queued
running
completed
canceled
failed