Add a slot (chip) to a phase
curl --request POST \
--url https://app.pepline.ai/api/v1/agents/{agent_slug}/flow/states/{id}/slots \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"title": "<string>",
"required": true,
"description": "<string>",
"enum_values": [
"<string>"
],
"enum_labels": {},
"translations": {}
}
'import requests
url = "https://app.pepline.ai/api/v1/agents/{agent_slug}/flow/states/{id}/slots"
payload = {
"key": "<string>",
"title": "<string>",
"required": True,
"description": "<string>",
"enum_values": ["<string>"],
"enum_labels": {},
"translations": {}
}
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({
key: '<string>',
title: '<string>',
required: true,
description: '<string>',
enum_values: ['<string>'],
enum_labels: {},
translations: {}
})
};
fetch('https://app.pepline.ai/api/v1/agents/{agent_slug}/flow/states/{id}/slots', 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/{agent_slug}/flow/states/{id}/slots",
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([
'key' => '<string>',
'title' => '<string>',
'required' => true,
'description' => '<string>',
'enum_values' => [
'<string>'
],
'enum_labels' => [
],
'translations' => [
]
]),
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/{agent_slug}/flow/states/{id}/slots"
payload := strings.NewReader("{\n \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"required\": true,\n \"description\": \"<string>\",\n \"enum_values\": [\n \"<string>\"\n ],\n \"enum_labels\": {},\n \"translations\": {}\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/{agent_slug}/flow/states/{id}/slots")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"required\": true,\n \"description\": \"<string>\",\n \"enum_values\": [\n \"<string>\"\n ],\n \"enum_labels\": {},\n \"translations\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pepline.ai/api/v1/agents/{agent_slug}/flow/states/{id}/slots")
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 \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"required\": true,\n \"description\": \"<string>\",\n \"enum_values\": [\n \"<string>\"\n ],\n \"enum_labels\": {},\n \"translations\": {}\n}"
response = http.request(request)
puts response.read_body{
"object": "<string>",
"id": 123,
"key": "<string>",
"title": "<string>",
"archived": true,
"required": true,
"enum_values": [
"<string>"
],
"enum_labels": {},
"translations": {},
"description": "<string>"
}{
"error": {
"message": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"param": "<string>"
}
}Flow
Add a slot (chip) to a phase
Adds a slot — the data contract of the phase and, for enum/band types, the quick-reply chips. key must be lowercase letters/digits/underscores; enum_values is required for enum/band. Trial-compiles; 422 if it overflows the 16-slot schema budget.
POST
/
agents
/
{agent_slug}
/
flow
/
states
/
{id}
/
slots
Add a slot (chip) to a phase
curl --request POST \
--url https://app.pepline.ai/api/v1/agents/{agent_slug}/flow/states/{id}/slots \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"title": "<string>",
"required": true,
"description": "<string>",
"enum_values": [
"<string>"
],
"enum_labels": {},
"translations": {}
}
'import requests
url = "https://app.pepline.ai/api/v1/agents/{agent_slug}/flow/states/{id}/slots"
payload = {
"key": "<string>",
"title": "<string>",
"required": True,
"description": "<string>",
"enum_values": ["<string>"],
"enum_labels": {},
"translations": {}
}
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({
key: '<string>',
title: '<string>',
required: true,
description: '<string>',
enum_values: ['<string>'],
enum_labels: {},
translations: {}
})
};
fetch('https://app.pepline.ai/api/v1/agents/{agent_slug}/flow/states/{id}/slots', 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/{agent_slug}/flow/states/{id}/slots",
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([
'key' => '<string>',
'title' => '<string>',
'required' => true,
'description' => '<string>',
'enum_values' => [
'<string>'
],
'enum_labels' => [
],
'translations' => [
]
]),
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/{agent_slug}/flow/states/{id}/slots"
payload := strings.NewReader("{\n \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"required\": true,\n \"description\": \"<string>\",\n \"enum_values\": [\n \"<string>\"\n ],\n \"enum_labels\": {},\n \"translations\": {}\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/{agent_slug}/flow/states/{id}/slots")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"required\": true,\n \"description\": \"<string>\",\n \"enum_values\": [\n \"<string>\"\n ],\n \"enum_labels\": {},\n \"translations\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pepline.ai/api/v1/agents/{agent_slug}/flow/states/{id}/slots")
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 \"key\": \"<string>\",\n \"title\": \"<string>\",\n \"required\": true,\n \"description\": \"<string>\",\n \"enum_values\": [\n \"<string>\"\n ],\n \"enum_labels\": {},\n \"translations\": {}\n}"
response = http.request(request)
puts response.read_body{
"object": "<string>",
"id": 123,
"key": "<string>",
"title": "<string>",
"archived": true,
"required": true,
"enum_values": [
"<string>"
],
"enum_labels": {},
"translations": {},
"description": "<string>"
}{
"error": {
"message": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"param": "<string>"
}
}Authorizations
Your secret key (pep_sk_…) from Settings → API. Keys are org-scoped; treat them like passwords.
Body
application/json
Response
The created slot.
Allowed value:
"information_slot"lowercase letters, digits, underscores; the extraction-schema property + slot_values key.
Owner-facing label (the chip group header).
Available options:
string, enum, band, boolean, email Required for enum/band; the chip values.
value → display label.
locale → { title, enum_labels } overrides.
LLM-facing extraction guidance (not shown to visitors).
⌘I

