Chat with a website
Source
Chat with a website
Ask questions about a website’s content using its file_id.
Workflow:
- Ingest website URL using
/source/v1/api/websitewith JSON body containingurl - Use returned
file_idwith this endpoint
Example:
# Step 1: Ingest website
curl --request POST \
--url https://app.skimming.ai/back/source/v1/api/website \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{"source": "https://example.com/article"}'
# Step 2: Chat with website
curl --request POST \
--url https://app.skimming.ai/back/chat/v1/api/website/website \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{"file_id": "abc123...", "question": "What is this article about?"}'
POST
Chat with a website
Authorizations
Bearer token authentication using an API key
Body
application/json
The file_id returned from ingest endpoint
Example:
"abc123-def456-ghi789"
Your question about the content
Example:
"What are the main points discussed in this document?"
Whether to stream the response (SSE format)
AI model to use
Available options:
gpt-4, gpt-4o, gpt-4o-mini, gpt-3.5-turbo, claude-3-opus, claude-3-sonnet, claude-3.5-sonnet, gemini-1.5-pro, gemini-1.5-flash Example:
"gpt-4"
Model provider
Available options:
openai, anthropic, gemini Example:
"openai"
Type of conversation
Available options:
single, group Maximum output tokens
Example:
2000
Response
Successful response
Server-Sent Events stream (when streaming=true)
