Chat with a LinkedIn post
curl --request POST \
--url https://app.skimming.ai/back/chat/v1/api/website/linkedin \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"file_id": "abc123-def456-ghi789",
"question": "What is this post about?",
"streaming": false
}
'import requests
url = "https://app.skimming.ai/back/chat/v1/api/website/linkedin"
payload = {
"file_id": "abc123-def456-ghi789",
"question": "What is this post about?",
"streaming": False
}
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({
file_id: 'abc123-def456-ghi789',
question: 'What is this post about?',
streaming: false
})
};
fetch('https://app.skimming.ai/back/chat/v1/api/website/linkedin', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.skimming.ai/back/chat/v1/api/website/linkedin",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'file_id' => 'abc123-def456-ghi789',
'question' => 'What is this post about?',
'streaming' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.skimming.ai/back/chat/v1/api/website/linkedin"
payload := strings.NewReader("{\n \"file_id\": \"abc123-def456-ghi789\",\n \"question\": \"What is this post about?\",\n \"streaming\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.skimming.ai/back/chat/v1/api/website/linkedin")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"file_id\": \"abc123-def456-ghi789\",\n \"question\": \"What is this post about?\",\n \"streaming\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.skimming.ai/back/chat/v1/api/website/linkedin")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"file_id\": \"abc123-def456-ghi789\",\n \"question\": \"What is this post about?\",\n \"streaming\": false\n}"
response = http.request(request)
puts response.read_body"<string>"{
"success": false,
"error": {},
"message": {
"content": "Invalid request parameters",
"displayContent": true
}
}{
"success": false,
"error": {},
"message": {
"content": "Invalid API key",
"displayContent": true
}
}{
"success": false,
"error": {},
"message": {
"content": "Question limit exceeded!",
"displayContent": true
}
}Source
Chat with a LinkedIn post
Ask questions about a LinkedIn post using its file_id.
Workflow:
- Ingest LinkedIn URL using
/source/v1/api/websitewith JSON body containingurl - Use returned
file_idwith this endpoint
POST
/
chat
/
v1
/
api
/
website
/
linkedin
Chat with a LinkedIn post
curl --request POST \
--url https://app.skimming.ai/back/chat/v1/api/website/linkedin \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"file_id": "abc123-def456-ghi789",
"question": "What is this post about?",
"streaming": false
}
'import requests
url = "https://app.skimming.ai/back/chat/v1/api/website/linkedin"
payload = {
"file_id": "abc123-def456-ghi789",
"question": "What is this post about?",
"streaming": False
}
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({
file_id: 'abc123-def456-ghi789',
question: 'What is this post about?',
streaming: false
})
};
fetch('https://app.skimming.ai/back/chat/v1/api/website/linkedin', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.skimming.ai/back/chat/v1/api/website/linkedin",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'file_id' => 'abc123-def456-ghi789',
'question' => 'What is this post about?',
'streaming' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.skimming.ai/back/chat/v1/api/website/linkedin"
payload := strings.NewReader("{\n \"file_id\": \"abc123-def456-ghi789\",\n \"question\": \"What is this post about?\",\n \"streaming\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.skimming.ai/back/chat/v1/api/website/linkedin")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"file_id\": \"abc123-def456-ghi789\",\n \"question\": \"What is this post about?\",\n \"streaming\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.skimming.ai/back/chat/v1/api/website/linkedin")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"file_id\": \"abc123-def456-ghi789\",\n \"question\": \"What is this post about?\",\n \"streaming\": false\n}"
response = http.request(request)
puts response.read_body"<string>"{
"success": false,
"error": {},
"message": {
"content": "Invalid request parameters",
"displayContent": true
}
}{
"success": false,
"error": {},
"message": {
"content": "Invalid API key",
"displayContent": true
}
}{
"success": false,
"error": {},
"message": {
"content": "Question limit exceeded!",
"displayContent": true
}
}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)
⌘I
