curl --request POST \
--url https://api.goyappr.com/dispositions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "Interested",
"color": "#22c55e",
"position": 123
}
'import requests
url = "https://api.goyappr.com/dispositions"
payload = {
"label": "Interested",
"color": "#22c55e",
"position": 123
}
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({label: 'Interested', color: '#22c55e', position: 123})
};
fetch('https://api.goyappr.com/dispositions', 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://api.goyappr.com/dispositions",
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([
'label' => 'Interested',
'color' => '#22c55e',
'position' => 123
]),
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://api.goyappr.com/dispositions"
payload := strings.NewReader("{\n \"label\": \"Interested\",\n \"color\": \"#22c55e\",\n \"position\": 123\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://api.goyappr.com/dispositions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"label\": \"Interested\",\n \"color\": \"#22c55e\",\n \"position\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/dispositions")
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 \"label\": \"Interested\",\n \"color\": \"#22c55e\",\n \"position\": 123\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "<string>",
"color": "#22c55e",
"position": 123,
"is_protected": true,
"created_at": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}Create Disposition
curl --request POST \
--url https://api.goyappr.com/dispositions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "Interested",
"color": "#22c55e",
"position": 123
}
'import requests
url = "https://api.goyappr.com/dispositions"
payload = {
"label": "Interested",
"color": "#22c55e",
"position": 123
}
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({label: 'Interested', color: '#22c55e', position: 123})
};
fetch('https://api.goyappr.com/dispositions', 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://api.goyappr.com/dispositions",
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([
'label' => 'Interested',
'color' => '#22c55e',
'position' => 123
]),
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://api.goyappr.com/dispositions"
payload := strings.NewReader("{\n \"label\": \"Interested\",\n \"color\": \"#22c55e\",\n \"position\": 123\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://api.goyappr.com/dispositions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"label\": \"Interested\",\n \"color\": \"#22c55e\",\n \"position\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/dispositions")
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 \"label\": \"Interested\",\n \"color\": \"#22c55e\",\n \"position\": 123\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "<string>",
"color": "#22c55e",
"position": 123,
"is_protected": true,
"created_at": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}dispositions:manage.
The label is the matching rule. There is no description, prompt or
criteria field on a disposition: after each call the model reads the
transcript and picks exactly one label from the list, copied verbatim, and the
words you choose are all it has to go on. Write the outcome the way you would
say it out loud — “Booked a viewing” is picked when a viewing was booked,
where “Outcome A” is picked by guesswork.
curl --request POST "$YAPPR_API_URL/dispositions" \
--header "Authorization: Bearer $YAPPR_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"label": "Booked a viewing",
"color": "#22c55e"
}'
| Field | Required | Meaning |
|---|---|---|
label | yes | Unique within the workspace, trimmed of surrounding whitespace. Empty or whitespace-only is 400. This is the text the model matches on, and what the dashboard shows. |
color | no | A hex string such as #22c55e, used to tint the badge. Omitted, null or blank stores grey (#6b7280). The format is not validated, so a value that is not a colour renders as nothing. |
position | no | Display order, ascending. Lands after every position in use when omitted. Not unique — two dispositions may share one, and the tie breaks arbitrarily. |
Response
{
"id": "1943aa72-afd8-48eb-bdd6-3ed0960715de",
"label": "Booked a viewing",
"color": "#22c55e",
"position": 110,
"is_protected": false,
"created_at": "2026-09-21T13:09:47.192868+00:00"
}
201, and the body is the disposition itself rather than a data wrapper.
Keep the id: it is what filtering calls by
disposition_id and stopping a
campaign on an outcome both refer to. A
disposition deleted and recreated by the same label is a different one with a
different id, and the calls that carried the old one are left with none.
is_protected is always false here — the labels carrying
is_protected: true are seeded with the workspace and cannot be created
through this endpoint.
Errors
| HTTP | Body | When |
|---|---|---|
400 | {"error":"Creating a disposition does not take is_final. It takes label, color, position — …","code":"DISPOSITION_REQUEST_INVALID"} | A body field this route does not read — a misspelling included. Nothing was written. |
400 | {"error":"label is required","code":"DISPOSITION_REQUEST_INVALID"} | label was missing, empty, whitespace-only, or not a string. |
400 | {"error":"Invalid JSON body","code":"DISPOSITION_REQUEST_INVALID"} | The body did not parse. |
409 | {"error":"A disposition with this label already exists","code":"DUPLICATE_LABEL"} | The workspace already uses that label. Read List and reuse its id rather than creating a near-duplicate — two labels the model cannot tell apart make its choice a coin toss. |
403 | {"error":"This key does not hold …","code":"INSUFFICIENT_SCOPE"} | The key does not hold dispositions:manage. Reading takes dispositions:read; creating, renaming and deleting take dispositions:manage. |
429 | {"error":"Rate limit exceeded. Try again in a moment.","code":"RATE_LIMIT"} | 60 requests per minute per key. |
500 | {"error":"Failed to create disposition","code":"INTERNAL_ERROR"} | The insert itself failed. Retry; no disposition was created. |
Authorizations
Your Yappr API key (e.g. ypr_live_...). Generate one in the dashboard under Settings → API Keys. No key is 401 MISSING_KEY; a key that is not one of ours, or is revoked, is 401 INVALID_KEY; an expired one is 401 EXPIRED_KEY. A valid key without the scope an operation needs is 403 INSUFFICIENT_SCOPE on every operation, and the message names the scope. Every response, a 401 included, carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset: the budget is 60 requests a minute per API key. Every 429, whatever its code, carries Retry-After (whole seconds, never zero): the per-key budget's RATE_LIMIT asks for what is left of the minute, a route's daily cap (RATE_LIMITED) for the time until that cap resets. All four headers are listed in Access-Control-Expose-Headers, so a browser can read them. A path the API does not serve (an unknown sub-path, an id left empty) is 404 ROUTE_NOT_FOUND, and a method a served path does not take is 405 METHOD_NOT_ALLOWED with an Allow header; both are answered before any scope check, and nothing is read or changed. A trailing slash is ignored where it cannot be an id left empty (POST /calls/ is POST /calls) and refused where it can (GET /calls/). A doubled slash inside a path is merged into one before the request reaches the API (GET //calls is GET /calls).
Body
Response
Disposition created