curl --request POST \
--url http://localhost:3000/v1/orgs/{org_id}/playbooks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"content": "<string>",
"rep_id": "<string>",
"name": "<string>",
"is_active": true,
"file_name": "<string>",
"metadata": {}
}
'import requests
url = "http://localhost:3000/v1/orgs/{org_id}/playbooks"
payload = {
"content": "<string>",
"rep_id": "<string>",
"name": "<string>",
"is_active": True,
"file_name": "<string>",
"metadata": {}
}
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({
content: '<string>',
rep_id: '<string>',
name: '<string>',
is_active: true,
file_name: '<string>',
metadata: {}
})
};
fetch('http://localhost:3000/v1/orgs/{org_id}/playbooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/v1/orgs/{org_id}/playbooks",
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([
'content' => '<string>',
'rep_id' => '<string>',
'name' => '<string>',
'is_active' => true,
'file_name' => '<string>',
'metadata' => [
]
]),
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 := "http://localhost:3000/v1/orgs/{org_id}/playbooks"
payload := strings.NewReader("{\n \"content\": \"<string>\",\n \"rep_id\": \"<string>\",\n \"name\": \"<string>\",\n \"is_active\": true,\n \"file_name\": \"<string>\",\n \"metadata\": {}\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("http://localhost:3000/v1/orgs/{org_id}/playbooks")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"content\": \"<string>\",\n \"rep_id\": \"<string>\",\n \"name\": \"<string>\",\n \"is_active\": true,\n \"file_name\": \"<string>\",\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/v1/orgs/{org_id}/playbooks")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"content\": \"<string>\",\n \"rep_id\": \"<string>\",\n \"name\": \"<string>\",\n \"is_active\": true,\n \"file_name\": \"<string>\",\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_bodyCreate a playbook (org-level or per-rep override)
Create a sales playbook. Polymorphic scope: omit rep_id to create an org-level playbook (every rep in the org uses it as the baseline at analysis time, when is_active=true). Pass rep_id to create a rep-level playbook (overrides the org playbook for that rep only).
Resolution order at analysis time:
options.playbook_content(literal text on the analysis request)options.playbook_id(explicit lookup)- Active rep-level playbook for the analysis’s rep — if
rep_idis set on the analysis - Active org-level playbook for the analysis’s org
- None (model uses default scoring)
Use rep-level playbooks for A/B tests, per-coach customization, or consumer products where every end-user is a rep with their own rubric. The org-level playbook stays in place as the baseline — no need to disable it. See PAR-185.
curl --request POST \
--url http://localhost:3000/v1/orgs/{org_id}/playbooks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"content": "<string>",
"rep_id": "<string>",
"name": "<string>",
"is_active": true,
"file_name": "<string>",
"metadata": {}
}
'import requests
url = "http://localhost:3000/v1/orgs/{org_id}/playbooks"
payload = {
"content": "<string>",
"rep_id": "<string>",
"name": "<string>",
"is_active": True,
"file_name": "<string>",
"metadata": {}
}
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({
content: '<string>',
rep_id: '<string>',
name: '<string>',
is_active: true,
file_name: '<string>',
metadata: {}
})
};
fetch('http://localhost:3000/v1/orgs/{org_id}/playbooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/v1/orgs/{org_id}/playbooks",
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([
'content' => '<string>',
'rep_id' => '<string>',
'name' => '<string>',
'is_active' => true,
'file_name' => '<string>',
'metadata' => [
]
]),
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 := "http://localhost:3000/v1/orgs/{org_id}/playbooks"
payload := strings.NewReader("{\n \"content\": \"<string>\",\n \"rep_id\": \"<string>\",\n \"name\": \"<string>\",\n \"is_active\": true,\n \"file_name\": \"<string>\",\n \"metadata\": {}\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("http://localhost:3000/v1/orgs/{org_id}/playbooks")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"content\": \"<string>\",\n \"rep_id\": \"<string>\",\n \"name\": \"<string>\",\n \"is_active\": true,\n \"file_name\": \"<string>\",\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/v1/orgs/{org_id}/playbooks")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"content\": \"<string>\",\n \"rep_id\": \"<string>\",\n \"name\": \"<string>\",\n \"is_active\": true,\n \"file_name\": \"<string>\",\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
Playbook body, typically markdown. Fed into every analysis for this org (or rep, if rep_id is set) when is_active=true. Max 500,000 chars.
1 - 500000Optional. When set, scopes the playbook to a single rep within this org instead of the whole org. Per-rep playbooks override the org-level playbook for that rep at analysis time. Use for A/B tests, per-coach customization, or per-end-user flows in consumer products. The rep must already exist (create one first via POST /v1/reps). Omit this field to create an org-level playbook (every rep inherits it as the baseline).
1 - 256Display name for the playbook (e.g. "Q2 2026 Outbound Playbook").
1 - 200Default true. Multiple is_active=true playbooks at the same scope are allowed; the most recently-created one wins at analysis time.
Original filename if the partner uploaded the playbook from disk.
200Free-form key/value bag for partner-side bookkeeping. Not interpreted by Parlay.
Show child attributes
Show child attributes
Response
Default Response

