curl --request PATCH \
--url https://app.pepline.ai/api/v1/knowledge_sources/{id}/entries/{entry_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reading_note": "<string>",
"link_excluded": true
}
'import requests
url = "https://app.pepline.ai/api/v1/knowledge_sources/{id}/entries/{entry_id}"
payload = {
"reading_note": "<string>",
"link_excluded": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({reading_note: '<string>', link_excluded: true})
};
fetch('https://app.pepline.ai/api/v1/knowledge_sources/{id}/entries/{entry_id}', 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.pepline.ai/api/v1/knowledge_sources/{id}/entries/{entry_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'reading_note' => '<string>',
'link_excluded' => true
]),
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.pepline.ai/api/v1/knowledge_sources/{id}/entries/{entry_id}"
payload := strings.NewReader("{\n \"reading_note\": \"<string>\",\n \"link_excluded\": true\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://app.pepline.ai/api/v1/knowledge_sources/{id}/entries/{entry_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"reading_note\": \"<string>\",\n \"link_excluded\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pepline.ai/api/v1/knowledge_sources/{id}/entries/{entry_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"reading_note\": \"<string>\",\n \"link_excluded\": true\n}"
response = http.request(request)
puts response.read_body{
"object": "knowledge_entry",
"id": 123,
"title": "<string>",
"status": "pending",
"created_at": "2023-11-07T05:31:56Z",
"url": "<string>",
"failure_reason": "<string>",
"ingested_at": "2023-11-07T05:31:56Z",
"reading_note": "<string>",
"link_excluded": true,
"pinned": true,
"retired": true
}{
"error": {
"type": "authentication_error",
"code": "missing_api_key",
"message": "<string>",
"param": "<string>"
}
}{
"error": {
"type": "authentication_error",
"code": "missing_api_key",
"message": "<string>",
"param": "<string>"
}
}{
"error": {
"type": "authentication_error",
"code": "missing_api_key",
"message": "<string>",
"param": "<string>"
}
}Curate one page
reading_note tells the agent what to look for on this page (steers extraction; facts still need a verbatim excerpt) — a change re-reads the cached page at no credit cost; null clears. Derived: it reads the live ingestion instructions targeting this page and writing it replaces this page’s own — prefer /ingestion_instructions. link_excluded keeps the page out of navigation buttons and deep links without touching its knowledge (per-page consent).
curl --request PATCH \
--url https://app.pepline.ai/api/v1/knowledge_sources/{id}/entries/{entry_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reading_note": "<string>",
"link_excluded": true
}
'import requests
url = "https://app.pepline.ai/api/v1/knowledge_sources/{id}/entries/{entry_id}"
payload = {
"reading_note": "<string>",
"link_excluded": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({reading_note: '<string>', link_excluded: true})
};
fetch('https://app.pepline.ai/api/v1/knowledge_sources/{id}/entries/{entry_id}', 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.pepline.ai/api/v1/knowledge_sources/{id}/entries/{entry_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'reading_note' => '<string>',
'link_excluded' => true
]),
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.pepline.ai/api/v1/knowledge_sources/{id}/entries/{entry_id}"
payload := strings.NewReader("{\n \"reading_note\": \"<string>\",\n \"link_excluded\": true\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://app.pepline.ai/api/v1/knowledge_sources/{id}/entries/{entry_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"reading_note\": \"<string>\",\n \"link_excluded\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pepline.ai/api/v1/knowledge_sources/{id}/entries/{entry_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"reading_note\": \"<string>\",\n \"link_excluded\": true\n}"
response = http.request(request)
puts response.read_body{
"object": "knowledge_entry",
"id": 123,
"title": "<string>",
"status": "pending",
"created_at": "2023-11-07T05:31:56Z",
"url": "<string>",
"failure_reason": "<string>",
"ingested_at": "2023-11-07T05:31:56Z",
"reading_note": "<string>",
"link_excluded": true,
"pinned": true,
"retired": true
}{
"error": {
"type": "authentication_error",
"code": "missing_api_key",
"message": "<string>",
"param": "<string>"
}
}{
"error": {
"type": "authentication_error",
"code": "missing_api_key",
"message": "<string>",
"param": "<string>"
}
}{
"error": {
"type": "authentication_error",
"code": "missing_api_key",
"message": "<string>",
"param": "<string>"
}
}Authorizations
Your secret key (pep_sk_…) from Settings → API. Keys are org-scoped; treat them like passwords.
Body
Response
The updated entry.
"knowledge_entry"pending, ingested, failed Why this entry failed, human-readable. null unless status is failed.
Owner guidance for this page's extraction — derived from the live ingestion instructions targeting this page.
Kept out of navigation buttons and deep links (per-page consent).
Owner-selected page: re-fetched by every refresh even when the crawl misses it.
Un-ingested: back in the discovered list, facts dormant.

