Archive an ask
curl --request POST \
--url https://app.pepline.ai/api/v1/ingestion_instructions/{id}/archive \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.pepline.ai/api/v1/ingestion_instructions/{id}/archive"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.pepline.ai/api/v1/ingestion_instructions/{id}/archive', 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/ingestion_instructions/{id}/archive",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.pepline.ai/api/v1/ingestion_instructions/{id}/archive"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.pepline.ai/api/v1/ingestion_instructions/{id}/archive")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pepline.ai/api/v1/ingestion_instructions/{id}/archive")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "ingestion_instruction",
"id": 123,
"text": "<string>",
"actor": "owner",
"targets": [
{
"type": "source",
"id": 123,
"label": "<string>"
}
],
"archived": true,
"created_at": "2023-11-07T05:31:56Z",
"author": {
"type": "user",
"id": 123,
"label": "<string>"
},
"state": "looked"
}{
"error": {
"type": "authentication_error",
"code": "missing_api_key",
"message": "<string>",
"param": "<string>"
}
}{
"error": {
"type": "authentication_error",
"code": "missing_api_key",
"message": "<string>",
"param": "<string>"
}
}Ingestion instructions
Archive an ask
The ask stops steering; the pages it reached re-read without it. Never destroyed — DELETE restores. Idempotent.
POST
/
ingestion_instructions
/
{id}
/
archive
Archive an ask
curl --request POST \
--url https://app.pepline.ai/api/v1/ingestion_instructions/{id}/archive \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.pepline.ai/api/v1/ingestion_instructions/{id}/archive"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.pepline.ai/api/v1/ingestion_instructions/{id}/archive', 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/ingestion_instructions/{id}/archive",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.pepline.ai/api/v1/ingestion_instructions/{id}/archive"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.pepline.ai/api/v1/ingestion_instructions/{id}/archive")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pepline.ai/api/v1/ingestion_instructions/{id}/archive")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "ingestion_instruction",
"id": 123,
"text": "<string>",
"actor": "owner",
"targets": [
{
"type": "source",
"id": 123,
"label": "<string>"
}
],
"archived": true,
"created_at": "2023-11-07T05:31:56Z",
"author": {
"type": "user",
"id": 123,
"label": "<string>"
},
"state": "looked"
}{
"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.
Path Parameters
Response
The archived instruction.
Allowed value:
"ingestion_instruction"What to look for, in the owner's words.
Who wrote it, coarsely — derived from author.
Available options:
owner, operator, agent Show child attributes
Show child attributes
The credential or person that wrote it. null on asks recorded before authorship was tracked.
Show child attributes
Show child attributes
looked — every page it reaches was read with it; re-reading — some page still owes a re-read; null — it reaches no live page yet.
Available options:
looked, re-reading, null 
