Fold service fragments into one offer-shaped service
curl --request POST \
--url https://app.pepline.ai/api/v1/services/consolidate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"umbrella": {
"id": 123,
"name": "<string>",
"positioning": "<string>",
"description": "<string>",
"guidelines": "<string>",
"price_min": 123,
"price_max": 123,
"currency": "<string>",
"typical_duration": "<string>",
"deliverables": [
"<string>"
],
"good_fit_signals": [
"<string>"
]
},
"fragment_ids": [
123
],
"reason": "<string>"
}
'import requests
url = "https://app.pepline.ai/api/v1/services/consolidate"
payload = {
"umbrella": {
"id": 123,
"name": "<string>",
"positioning": "<string>",
"description": "<string>",
"guidelines": "<string>",
"price_min": 123,
"price_max": 123,
"currency": "<string>",
"typical_duration": "<string>",
"deliverables": ["<string>"],
"good_fit_signals": ["<string>"]
},
"fragment_ids": [123],
"reason": "<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({
umbrella: {
id: 123,
name: '<string>',
positioning: '<string>',
description: '<string>',
guidelines: '<string>',
price_min: 123,
price_max: 123,
currency: '<string>',
typical_duration: '<string>',
deliverables: ['<string>'],
good_fit_signals: ['<string>']
},
fragment_ids: [123],
reason: '<string>'
})
};
fetch('https://app.pepline.ai/api/v1/services/consolidate', 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/services/consolidate",
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([
'umbrella' => [
'id' => 123,
'name' => '<string>',
'positioning' => '<string>',
'description' => '<string>',
'guidelines' => '<string>',
'price_min' => 123,
'price_max' => 123,
'currency' => '<string>',
'typical_duration' => '<string>',
'deliverables' => [
'<string>'
],
'good_fit_signals' => [
'<string>'
]
],
'fragment_ids' => [
123
],
'reason' => '<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/services/consolidate"
payload := strings.NewReader("{\n \"umbrella\": {\n \"id\": 123,\n \"name\": \"<string>\",\n \"positioning\": \"<string>\",\n \"description\": \"<string>\",\n \"guidelines\": \"<string>\",\n \"price_min\": 123,\n \"price_max\": 123,\n \"currency\": \"<string>\",\n \"typical_duration\": \"<string>\",\n \"deliverables\": [\n \"<string>\"\n ],\n \"good_fit_signals\": [\n \"<string>\"\n ]\n },\n \"fragment_ids\": [\n 123\n ],\n \"reason\": \"<string>\"\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/services/consolidate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"umbrella\": {\n \"id\": 123,\n \"name\": \"<string>\",\n \"positioning\": \"<string>\",\n \"description\": \"<string>\",\n \"guidelines\": \"<string>\",\n \"price_min\": 123,\n \"price_max\": 123,\n \"currency\": \"<string>\",\n \"typical_duration\": \"<string>\",\n \"deliverables\": [\n \"<string>\"\n ],\n \"good_fit_signals\": [\n \"<string>\"\n ]\n },\n \"fragment_ids\": [\n 123\n ],\n \"reason\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pepline.ai/api/v1/services/consolidate")
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 \"umbrella\": {\n \"id\": 123,\n \"name\": \"<string>\",\n \"positioning\": \"<string>\",\n \"description\": \"<string>\",\n \"guidelines\": \"<string>\",\n \"price_min\": 123,\n \"price_max\": 123,\n \"currency\": \"<string>\",\n \"typical_duration\": \"<string>\",\n \"deliverables\": [\n \"<string>\"\n ],\n \"good_fit_signals\": [\n \"<string>\"\n ]\n },\n \"fragment_ids\": [\n 123\n ],\n \"reason\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"object": "service",
"id": 123,
"key": "<string>",
"name": "<string>",
"pricing_unit": "monthly",
"agents": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"positioning": "<string>",
"guidelines": "<string>",
"price_min": 123,
"price_max": 123,
"currency": "<string>",
"typical_duration": "<string>",
"deliverables": [
"<string>"
],
"good_fit_signals": [
"<string>"
],
"reviewed": true,
"archived": true
}{
"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>"
}
}Services
Fold service fragments into one offer-shaped service
The umbrella is created (or an existing service named by umbrella.id) through the normal authoring path, born reviewed; it inherits the fragments’ deliverables, good-fit signals and agent activations; the fragments are archived (restorable). One curation receipt of kind service_merged with the reason given.
POST
/
services
/
consolidate
Fold service fragments into one offer-shaped service
curl --request POST \
--url https://app.pepline.ai/api/v1/services/consolidate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"umbrella": {
"id": 123,
"name": "<string>",
"positioning": "<string>",
"description": "<string>",
"guidelines": "<string>",
"price_min": 123,
"price_max": 123,
"currency": "<string>",
"typical_duration": "<string>",
"deliverables": [
"<string>"
],
"good_fit_signals": [
"<string>"
]
},
"fragment_ids": [
123
],
"reason": "<string>"
}
'import requests
url = "https://app.pepline.ai/api/v1/services/consolidate"
payload = {
"umbrella": {
"id": 123,
"name": "<string>",
"positioning": "<string>",
"description": "<string>",
"guidelines": "<string>",
"price_min": 123,
"price_max": 123,
"currency": "<string>",
"typical_duration": "<string>",
"deliverables": ["<string>"],
"good_fit_signals": ["<string>"]
},
"fragment_ids": [123],
"reason": "<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({
umbrella: {
id: 123,
name: '<string>',
positioning: '<string>',
description: '<string>',
guidelines: '<string>',
price_min: 123,
price_max: 123,
currency: '<string>',
typical_duration: '<string>',
deliverables: ['<string>'],
good_fit_signals: ['<string>']
},
fragment_ids: [123],
reason: '<string>'
})
};
fetch('https://app.pepline.ai/api/v1/services/consolidate', 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/services/consolidate",
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([
'umbrella' => [
'id' => 123,
'name' => '<string>',
'positioning' => '<string>',
'description' => '<string>',
'guidelines' => '<string>',
'price_min' => 123,
'price_max' => 123,
'currency' => '<string>',
'typical_duration' => '<string>',
'deliverables' => [
'<string>'
],
'good_fit_signals' => [
'<string>'
]
],
'fragment_ids' => [
123
],
'reason' => '<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/services/consolidate"
payload := strings.NewReader("{\n \"umbrella\": {\n \"id\": 123,\n \"name\": \"<string>\",\n \"positioning\": \"<string>\",\n \"description\": \"<string>\",\n \"guidelines\": \"<string>\",\n \"price_min\": 123,\n \"price_max\": 123,\n \"currency\": \"<string>\",\n \"typical_duration\": \"<string>\",\n \"deliverables\": [\n \"<string>\"\n ],\n \"good_fit_signals\": [\n \"<string>\"\n ]\n },\n \"fragment_ids\": [\n 123\n ],\n \"reason\": \"<string>\"\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/services/consolidate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"umbrella\": {\n \"id\": 123,\n \"name\": \"<string>\",\n \"positioning\": \"<string>\",\n \"description\": \"<string>\",\n \"guidelines\": \"<string>\",\n \"price_min\": 123,\n \"price_max\": 123,\n \"currency\": \"<string>\",\n \"typical_duration\": \"<string>\",\n \"deliverables\": [\n \"<string>\"\n ],\n \"good_fit_signals\": [\n \"<string>\"\n ]\n },\n \"fragment_ids\": [\n 123\n ],\n \"reason\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pepline.ai/api/v1/services/consolidate")
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 \"umbrella\": {\n \"id\": 123,\n \"name\": \"<string>\",\n \"positioning\": \"<string>\",\n \"description\": \"<string>\",\n \"guidelines\": \"<string>\",\n \"price_min\": 123,\n \"price_max\": 123,\n \"currency\": \"<string>\",\n \"typical_duration\": \"<string>\",\n \"deliverables\": [\n \"<string>\"\n ],\n \"good_fit_signals\": [\n \"<string>\"\n ]\n },\n \"fragment_ids\": [\n 123\n ],\n \"reason\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"object": "service",
"id": 123,
"key": "<string>",
"name": "<string>",
"pricing_unit": "monthly",
"agents": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"positioning": "<string>",
"guidelines": "<string>",
"price_min": 123,
"price_max": 123,
"currency": "<string>",
"typical_duration": "<string>",
"deliverables": [
"<string>"
],
"good_fit_signals": [
"<string>"
],
"reviewed": true,
"archived": true
}{
"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.
Body
application/json
Response
The umbrella service (plus receipt_id).
Allowed value:
"service"Available options:
monthly, fixed, from Owner blessed the drafted service (curation, not activation).

