Create a template variant
curl --request POST \
--url https://app.pepline.ai/api/v1/agents/{slug}/deliverable_templates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"sections": [
{
"key": "<string>",
"guidance": "<string>"
}
]
}
'import requests
url = "https://app.pepline.ai/api/v1/agents/{slug}/deliverable_templates"
payload = {
"title": "<string>",
"description": "<string>",
"sections": [
{
"key": "<string>",
"guidance": "<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({
title: '<string>',
description: '<string>',
sections: [{key: '<string>', guidance: '<string>'}]
})
};
fetch('https://app.pepline.ai/api/v1/agents/{slug}/deliverable_templates', 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/agents/{slug}/deliverable_templates",
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([
'title' => '<string>',
'description' => '<string>',
'sections' => [
[
'key' => '<string>',
'guidance' => '<string>'
]
]
]),
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/agents/{slug}/deliverable_templates"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"sections\": [\n {\n \"key\": \"<string>\",\n \"guidance\": \"<string>\"\n }\n ]\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.pepline.ai/api/v1/agents/{slug}/deliverable_templates")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"sections\": [\n {\n \"key\": \"<string>\",\n \"guidance\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pepline.ai/api/v1/agents/{slug}/deliverable_templates")
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 \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"sections\": [\n {\n \"key\": \"<string>\",\n \"guidance\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"object": "deliverable_template",
"id": 123,
"kind": "<string>",
"version": "<string>",
"title": "<string>",
"sections": [
{
"key": "<string>",
"guidance": "<string>"
}
],
"archived": true,
"created_at": "2023-11-07T05:31:56Z",
"description": "<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>"
}
}{
"error": {
"type": "authentication_error",
"code": "missing_api_key",
"message": "<string>",
"param": "<string>"
}
}Deliverable templates
Create a template variant
Kind follows the flow; the version key is minted from the title once (identity — experiments reference it) and never edited. Trial-compiles.
POST
/
agents
/
{slug}
/
deliverable_templates
Create a template variant
curl --request POST \
--url https://app.pepline.ai/api/v1/agents/{slug}/deliverable_templates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"sections": [
{
"key": "<string>",
"guidance": "<string>"
}
]
}
'import requests
url = "https://app.pepline.ai/api/v1/agents/{slug}/deliverable_templates"
payload = {
"title": "<string>",
"description": "<string>",
"sections": [
{
"key": "<string>",
"guidance": "<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({
title: '<string>',
description: '<string>',
sections: [{key: '<string>', guidance: '<string>'}]
})
};
fetch('https://app.pepline.ai/api/v1/agents/{slug}/deliverable_templates', 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/agents/{slug}/deliverable_templates",
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([
'title' => '<string>',
'description' => '<string>',
'sections' => [
[
'key' => '<string>',
'guidance' => '<string>'
]
]
]),
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/agents/{slug}/deliverable_templates"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"sections\": [\n {\n \"key\": \"<string>\",\n \"guidance\": \"<string>\"\n }\n ]\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.pepline.ai/api/v1/agents/{slug}/deliverable_templates")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"sections\": [\n {\n \"key\": \"<string>\",\n \"guidance\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pepline.ai/api/v1/agents/{slug}/deliverable_templates")
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 \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"sections\": [\n {\n \"key\": \"<string>\",\n \"guidance\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"object": "deliverable_template",
"id": 123,
"kind": "<string>",
"version": "<string>",
"title": "<string>",
"sections": [
{
"key": "<string>",
"guidance": "<string>"
}
],
"archived": true,
"created_at": "2023-11-07T05:31:56Z",
"description": "<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>"
}
}{
"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 created template.
Allowed value:
"deliverable_template"The variant key — identity, minted once.
Show child attributes
Show child attributes

