curl --request POST \
--url https://app.sideshift.app/api/oauth/v1/discover/offers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"longDescription": "<string>",
"imageUrl": "<string>",
"bannerImageUrl": "<string>",
"heroUrls": [
"<string>"
],
"heroCaptions": [
"<string>"
],
"price": "<string>",
"calendarLink": "<string>",
"videoUrls": [
"<string>"
],
"notionDocs": [
{
"title": "<string>",
"url": "<string>"
}
],
"pricingOptions": [
{
"label": "<string>",
"amount": "<string>",
"cta": "<string>",
"summary": "<string>",
"details": "<string>",
"deliverables": [
"<string>"
]
}
],
"caseStudies": [
{
"title": "<string>",
"challenge": "<string>",
"solution": "<string>",
"result": "<string>",
"link": "<string>",
"imageUrl": "<string>"
}
],
"faqs": [
{
"question": "<string>",
"answer": "<string>"
}
],
"mediaOrder": [
{
"url": "<string>"
}
],
"leadForm": {
"enabled": true,
"ctaLabel": "<string>",
"title": "<string>",
"description": "<string>",
"submitLabel": "<string>",
"successTitle": "<string>",
"successMessage": "<string>",
"includeAnswersInCalendarDescription": true,
"fields": [
{
"label": "<string>",
"id": "<string>",
"required": true,
"description": "<string>",
"placeholder": "<string>",
"options": [
{
"label": "<string>",
"id": "<string>"
}
],
"autofillSource": "active_company_website_or_appstore",
"allowOther": true,
"minSelections": 123,
"maxSelections": 123,
"maxFiles": 123,
"maxFileSizeMb": 123,
"acceptedFileTypes": [
"<string>"
],
"maxColors": 123,
"numberMin": 123,
"numberMax": 123,
"numberPrefix": "<string>",
"numberSuffix": "<string>"
}
]
},
"bookingHosts": [
{
"label": "<string>",
"calOwnerUid": "<string>",
"id": "<string>",
"isDefault": true
}
],
"calendarRouting": {
"fieldId": "<string>",
"rules": [
{
"match": {
"optionId": "<string>",
"value": true,
"min": 123,
"max": 123
},
"hostId": "<string>"
}
],
"defaultHostId": "<string>"
},
"publish": true
}
'import requests
url = "https://app.sideshift.app/api/oauth/v1/discover/offers"
payload = {
"title": "<string>",
"description": "<string>",
"longDescription": "<string>",
"imageUrl": "<string>",
"bannerImageUrl": "<string>",
"heroUrls": ["<string>"],
"heroCaptions": ["<string>"],
"price": "<string>",
"calendarLink": "<string>",
"videoUrls": ["<string>"],
"notionDocs": [
{
"title": "<string>",
"url": "<string>"
}
],
"pricingOptions": [
{
"label": "<string>",
"amount": "<string>",
"cta": "<string>",
"summary": "<string>",
"details": "<string>",
"deliverables": ["<string>"]
}
],
"caseStudies": [
{
"title": "<string>",
"challenge": "<string>",
"solution": "<string>",
"result": "<string>",
"link": "<string>",
"imageUrl": "<string>"
}
],
"faqs": [
{
"question": "<string>",
"answer": "<string>"
}
],
"mediaOrder": [{ "url": "<string>" }],
"leadForm": {
"enabled": True,
"ctaLabel": "<string>",
"title": "<string>",
"description": "<string>",
"submitLabel": "<string>",
"successTitle": "<string>",
"successMessage": "<string>",
"includeAnswersInCalendarDescription": True,
"fields": [
{
"label": "<string>",
"id": "<string>",
"required": True,
"description": "<string>",
"placeholder": "<string>",
"options": [
{
"label": "<string>",
"id": "<string>"
}
],
"autofillSource": "active_company_website_or_appstore",
"allowOther": True,
"minSelections": 123,
"maxSelections": 123,
"maxFiles": 123,
"maxFileSizeMb": 123,
"acceptedFileTypes": ["<string>"],
"maxColors": 123,
"numberMin": 123,
"numberMax": 123,
"numberPrefix": "<string>",
"numberSuffix": "<string>"
}
]
},
"bookingHosts": [
{
"label": "<string>",
"calOwnerUid": "<string>",
"id": "<string>",
"isDefault": True
}
],
"calendarRouting": {
"fieldId": "<string>",
"rules": [
{
"match": {
"optionId": "<string>",
"value": True,
"min": 123,
"max": 123
},
"hostId": "<string>"
}
],
"defaultHostId": "<string>"
},
"publish": True
}
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>',
longDescription: '<string>',
imageUrl: '<string>',
bannerImageUrl: '<string>',
heroUrls: ['<string>'],
heroCaptions: ['<string>'],
price: '<string>',
calendarLink: '<string>',
videoUrls: ['<string>'],
notionDocs: [{title: '<string>', url: '<string>'}],
pricingOptions: [
{
label: '<string>',
amount: '<string>',
cta: '<string>',
summary: '<string>',
details: '<string>',
deliverables: ['<string>']
}
],
caseStudies: [
{
title: '<string>',
challenge: '<string>',
solution: '<string>',
result: '<string>',
link: '<string>',
imageUrl: '<string>'
}
],
faqs: [{question: '<string>', answer: '<string>'}],
mediaOrder: [{url: '<string>'}],
leadForm: {
enabled: true,
ctaLabel: '<string>',
title: '<string>',
description: '<string>',
submitLabel: '<string>',
successTitle: '<string>',
successMessage: '<string>',
includeAnswersInCalendarDescription: true,
fields: [
{
label: '<string>',
id: '<string>',
required: true,
description: '<string>',
placeholder: '<string>',
options: [{label: '<string>', id: '<string>'}],
autofillSource: 'active_company_website_or_appstore',
allowOther: true,
minSelections: 123,
maxSelections: 123,
maxFiles: 123,
maxFileSizeMb: 123,
acceptedFileTypes: ['<string>'],
maxColors: 123,
numberMin: 123,
numberMax: 123,
numberPrefix: '<string>',
numberSuffix: '<string>'
}
]
},
bookingHosts: [{label: '<string>', calOwnerUid: '<string>', id: '<string>', isDefault: true}],
calendarRouting: {
fieldId: '<string>',
rules: [
{
match: {optionId: '<string>', value: true, min: 123, max: 123},
hostId: '<string>'
}
],
defaultHostId: '<string>'
},
publish: true
})
};
fetch('https://app.sideshift.app/api/oauth/v1/discover/offers', 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.sideshift.app/api/oauth/v1/discover/offers",
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>',
'longDescription' => '<string>',
'imageUrl' => '<string>',
'bannerImageUrl' => '<string>',
'heroUrls' => [
'<string>'
],
'heroCaptions' => [
'<string>'
],
'price' => '<string>',
'calendarLink' => '<string>',
'videoUrls' => [
'<string>'
],
'notionDocs' => [
[
'title' => '<string>',
'url' => '<string>'
]
],
'pricingOptions' => [
[
'label' => '<string>',
'amount' => '<string>',
'cta' => '<string>',
'summary' => '<string>',
'details' => '<string>',
'deliverables' => [
'<string>'
]
]
],
'caseStudies' => [
[
'title' => '<string>',
'challenge' => '<string>',
'solution' => '<string>',
'result' => '<string>',
'link' => '<string>',
'imageUrl' => '<string>'
]
],
'faqs' => [
[
'question' => '<string>',
'answer' => '<string>'
]
],
'mediaOrder' => [
[
'url' => '<string>'
]
],
'leadForm' => [
'enabled' => true,
'ctaLabel' => '<string>',
'title' => '<string>',
'description' => '<string>',
'submitLabel' => '<string>',
'successTitle' => '<string>',
'successMessage' => '<string>',
'includeAnswersInCalendarDescription' => true,
'fields' => [
[
'label' => '<string>',
'id' => '<string>',
'required' => true,
'description' => '<string>',
'placeholder' => '<string>',
'options' => [
[
'label' => '<string>',
'id' => '<string>'
]
],
'autofillSource' => 'active_company_website_or_appstore',
'allowOther' => true,
'minSelections' => 123,
'maxSelections' => 123,
'maxFiles' => 123,
'maxFileSizeMb' => 123,
'acceptedFileTypes' => [
'<string>'
],
'maxColors' => 123,
'numberMin' => 123,
'numberMax' => 123,
'numberPrefix' => '<string>',
'numberSuffix' => '<string>'
]
]
],
'bookingHosts' => [
[
'label' => '<string>',
'calOwnerUid' => '<string>',
'id' => '<string>',
'isDefault' => true
]
],
'calendarRouting' => [
'fieldId' => '<string>',
'rules' => [
[
'match' => [
'optionId' => '<string>',
'value' => true,
'min' => 123,
'max' => 123
],
'hostId' => '<string>'
]
],
'defaultHostId' => '<string>'
],
'publish' => true
]),
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.sideshift.app/api/oauth/v1/discover/offers"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"longDescription\": \"<string>\",\n \"imageUrl\": \"<string>\",\n \"bannerImageUrl\": \"<string>\",\n \"heroUrls\": [\n \"<string>\"\n ],\n \"heroCaptions\": [\n \"<string>\"\n ],\n \"price\": \"<string>\",\n \"calendarLink\": \"<string>\",\n \"videoUrls\": [\n \"<string>\"\n ],\n \"notionDocs\": [\n {\n \"title\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"pricingOptions\": [\n {\n \"label\": \"<string>\",\n \"amount\": \"<string>\",\n \"cta\": \"<string>\",\n \"summary\": \"<string>\",\n \"details\": \"<string>\",\n \"deliverables\": [\n \"<string>\"\n ]\n }\n ],\n \"caseStudies\": [\n {\n \"title\": \"<string>\",\n \"challenge\": \"<string>\",\n \"solution\": \"<string>\",\n \"result\": \"<string>\",\n \"link\": \"<string>\",\n \"imageUrl\": \"<string>\"\n }\n ],\n \"faqs\": [\n {\n \"question\": \"<string>\",\n \"answer\": \"<string>\"\n }\n ],\n \"mediaOrder\": [\n {\n \"url\": \"<string>\"\n }\n ],\n \"leadForm\": {\n \"enabled\": true,\n \"ctaLabel\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"submitLabel\": \"<string>\",\n \"successTitle\": \"<string>\",\n \"successMessage\": \"<string>\",\n \"includeAnswersInCalendarDescription\": true,\n \"fields\": [\n {\n \"label\": \"<string>\",\n \"id\": \"<string>\",\n \"required\": true,\n \"description\": \"<string>\",\n \"placeholder\": \"<string>\",\n \"options\": [\n {\n \"label\": \"<string>\",\n \"id\": \"<string>\"\n }\n ],\n \"autofillSource\": \"active_company_website_or_appstore\",\n \"allowOther\": true,\n \"minSelections\": 123,\n \"maxSelections\": 123,\n \"maxFiles\": 123,\n \"maxFileSizeMb\": 123,\n \"acceptedFileTypes\": [\n \"<string>\"\n ],\n \"maxColors\": 123,\n \"numberMin\": 123,\n \"numberMax\": 123,\n \"numberPrefix\": \"<string>\",\n \"numberSuffix\": \"<string>\"\n }\n ]\n },\n \"bookingHosts\": [\n {\n \"label\": \"<string>\",\n \"calOwnerUid\": \"<string>\",\n \"id\": \"<string>\",\n \"isDefault\": true\n }\n ],\n \"calendarRouting\": {\n \"fieldId\": \"<string>\",\n \"rules\": [\n {\n \"match\": {\n \"optionId\": \"<string>\",\n \"value\": true,\n \"min\": 123,\n \"max\": 123\n },\n \"hostId\": \"<string>\"\n }\n ],\n \"defaultHostId\": \"<string>\"\n },\n \"publish\": true\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.sideshift.app/api/oauth/v1/discover/offers")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"longDescription\": \"<string>\",\n \"imageUrl\": \"<string>\",\n \"bannerImageUrl\": \"<string>\",\n \"heroUrls\": [\n \"<string>\"\n ],\n \"heroCaptions\": [\n \"<string>\"\n ],\n \"price\": \"<string>\",\n \"calendarLink\": \"<string>\",\n \"videoUrls\": [\n \"<string>\"\n ],\n \"notionDocs\": [\n {\n \"title\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"pricingOptions\": [\n {\n \"label\": \"<string>\",\n \"amount\": \"<string>\",\n \"cta\": \"<string>\",\n \"summary\": \"<string>\",\n \"details\": \"<string>\",\n \"deliverables\": [\n \"<string>\"\n ]\n }\n ],\n \"caseStudies\": [\n {\n \"title\": \"<string>\",\n \"challenge\": \"<string>\",\n \"solution\": \"<string>\",\n \"result\": \"<string>\",\n \"link\": \"<string>\",\n \"imageUrl\": \"<string>\"\n }\n ],\n \"faqs\": [\n {\n \"question\": \"<string>\",\n \"answer\": \"<string>\"\n }\n ],\n \"mediaOrder\": [\n {\n \"url\": \"<string>\"\n }\n ],\n \"leadForm\": {\n \"enabled\": true,\n \"ctaLabel\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"submitLabel\": \"<string>\",\n \"successTitle\": \"<string>\",\n \"successMessage\": \"<string>\",\n \"includeAnswersInCalendarDescription\": true,\n \"fields\": [\n {\n \"label\": \"<string>\",\n \"id\": \"<string>\",\n \"required\": true,\n \"description\": \"<string>\",\n \"placeholder\": \"<string>\",\n \"options\": [\n {\n \"label\": \"<string>\",\n \"id\": \"<string>\"\n }\n ],\n \"autofillSource\": \"active_company_website_or_appstore\",\n \"allowOther\": true,\n \"minSelections\": 123,\n \"maxSelections\": 123,\n \"maxFiles\": 123,\n \"maxFileSizeMb\": 123,\n \"acceptedFileTypes\": [\n \"<string>\"\n ],\n \"maxColors\": 123,\n \"numberMin\": 123,\n \"numberMax\": 123,\n \"numberPrefix\": \"<string>\",\n \"numberSuffix\": \"<string>\"\n }\n ]\n },\n \"bookingHosts\": [\n {\n \"label\": \"<string>\",\n \"calOwnerUid\": \"<string>\",\n \"id\": \"<string>\",\n \"isDefault\": true\n }\n ],\n \"calendarRouting\": {\n \"fieldId\": \"<string>\",\n \"rules\": [\n {\n \"match\": {\n \"optionId\": \"<string>\",\n \"value\": true,\n \"min\": 123,\n \"max\": 123\n },\n \"hostId\": \"<string>\"\n }\n ],\n \"defaultHostId\": \"<string>\"\n },\n \"publish\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.sideshift.app/api/oauth/v1/discover/offers")
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 \"longDescription\": \"<string>\",\n \"imageUrl\": \"<string>\",\n \"bannerImageUrl\": \"<string>\",\n \"heroUrls\": [\n \"<string>\"\n ],\n \"heroCaptions\": [\n \"<string>\"\n ],\n \"price\": \"<string>\",\n \"calendarLink\": \"<string>\",\n \"videoUrls\": [\n \"<string>\"\n ],\n \"notionDocs\": [\n {\n \"title\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"pricingOptions\": [\n {\n \"label\": \"<string>\",\n \"amount\": \"<string>\",\n \"cta\": \"<string>\",\n \"summary\": \"<string>\",\n \"details\": \"<string>\",\n \"deliverables\": [\n \"<string>\"\n ]\n }\n ],\n \"caseStudies\": [\n {\n \"title\": \"<string>\",\n \"challenge\": \"<string>\",\n \"solution\": \"<string>\",\n \"result\": \"<string>\",\n \"link\": \"<string>\",\n \"imageUrl\": \"<string>\"\n }\n ],\n \"faqs\": [\n {\n \"question\": \"<string>\",\n \"answer\": \"<string>\"\n }\n ],\n \"mediaOrder\": [\n {\n \"url\": \"<string>\"\n }\n ],\n \"leadForm\": {\n \"enabled\": true,\n \"ctaLabel\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"submitLabel\": \"<string>\",\n \"successTitle\": \"<string>\",\n \"successMessage\": \"<string>\",\n \"includeAnswersInCalendarDescription\": true,\n \"fields\": [\n {\n \"label\": \"<string>\",\n \"id\": \"<string>\",\n \"required\": true,\n \"description\": \"<string>\",\n \"placeholder\": \"<string>\",\n \"options\": [\n {\n \"label\": \"<string>\",\n \"id\": \"<string>\"\n }\n ],\n \"autofillSource\": \"active_company_website_or_appstore\",\n \"allowOther\": true,\n \"minSelections\": 123,\n \"maxSelections\": 123,\n \"maxFiles\": 123,\n \"maxFileSizeMb\": 123,\n \"acceptedFileTypes\": [\n \"<string>\"\n ],\n \"maxColors\": 123,\n \"numberMin\": 123,\n \"numberMax\": 123,\n \"numberPrefix\": \"<string>\",\n \"numberSuffix\": \"<string>\"\n }\n ]\n },\n \"bookingHosts\": [\n {\n \"label\": \"<string>\",\n \"calOwnerUid\": \"<string>\",\n \"id\": \"<string>\",\n \"isDefault\": true\n }\n ],\n \"calendarRouting\": {\n \"fieldId\": \"<string>\",\n \"rules\": [\n {\n \"match\": {\n \"optionId\": \"<string>\",\n \"value\": true,\n \"min\": 123,\n \"max\": 123\n },\n \"hostId\": \"<string>\"\n }\n ],\n \"defaultHostId\": \"<string>\"\n },\n \"publish\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"title": "<string>",
"description": "<string>",
"longDescription": "<string>",
"company": "<string>",
"imageUrl": "<string>",
"price": "<string>",
"faqs": [
{
"question": "<string>",
"answer": "<string>"
}
],
"companyId": "<string>",
"companyAvatarUrl": "<string>",
"bannerImageUrl": "<string>",
"calendarLink": "<string>",
"heroUrls": [
"<string>"
],
"heroCaptions": [
"<string>"
],
"videoUrls": [
"<string>"
],
"notionDocs": [
{
"title": "<string>",
"url": "<string>"
}
],
"pricingOptions": [
{
"label": "<string>",
"amount": "<string>",
"cta": "<string>",
"summary": "<string>",
"details": "<string>",
"deliverables": [
"<string>"
]
}
],
"caseStudies": [
{
"title": "<string>",
"challenge": "<string>",
"solution": "<string>",
"result": "<string>",
"link": "<string>",
"imageUrl": "<string>"
}
],
"createdAt": "<string>",
"mediaOrder": [
{
"url": "<string>"
}
],
"leadForm": {
"enabled": true,
"ctaLabel": "<string>",
"title": "<string>",
"description": "<string>",
"submitLabel": "<string>",
"successTitle": "<string>",
"successMessage": "<string>",
"includeAnswersInCalendarDescription": true,
"fields": [
{
"label": "<string>",
"id": "<string>",
"required": true,
"description": "<string>",
"placeholder": "<string>",
"options": [
{
"label": "<string>",
"id": "<string>"
}
],
"autofillSource": "active_company_website_or_appstore",
"allowOther": true,
"minSelections": 123,
"maxSelections": 123,
"maxFiles": 123,
"maxFileSizeMb": 123,
"acceptedFileTypes": [
"<string>"
],
"maxColors": 123,
"numberMin": 123,
"numberMax": 123,
"numberPrefix": "<string>",
"numberSuffix": "<string>"
}
]
},
"bookingHosts": [
{
"label": "<string>",
"calOwnerUid": "<string>",
"id": "<string>",
"isDefault": true
}
],
"calendarRouting": {
"fieldId": "<string>",
"rules": [
{
"match": {
"optionId": "<string>",
"value": true,
"min": 123,
"max": 123
},
"hostId": "<string>"
}
],
"defaultHostId": "<string>"
},
"responseTime": "<string>",
"isVerified": true,
"totalViews": 123,
"avgEngagement": 123,
"campaignCount": 123
}
}{
"error": {
"code": "unauthorized",
"message": "Missing bearer access token",
"requestId": "req_..."
}
}{
"error": {
"code": "insufficient_scope",
"message": "Requires scope 'campaigns:write'",
"requestId": "req_..."
}
}{
"error": {
"code": "not_found",
"message": "Resource not found",
"requestId": "req_..."
}
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded",
"requestId": "req_..."
}
}Save Discover offer
Create or update the token tenant’s Discover offer/listing. Requires the discover:write scope.
curl --request POST \
--url https://app.sideshift.app/api/oauth/v1/discover/offers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"longDescription": "<string>",
"imageUrl": "<string>",
"bannerImageUrl": "<string>",
"heroUrls": [
"<string>"
],
"heroCaptions": [
"<string>"
],
"price": "<string>",
"calendarLink": "<string>",
"videoUrls": [
"<string>"
],
"notionDocs": [
{
"title": "<string>",
"url": "<string>"
}
],
"pricingOptions": [
{
"label": "<string>",
"amount": "<string>",
"cta": "<string>",
"summary": "<string>",
"details": "<string>",
"deliverables": [
"<string>"
]
}
],
"caseStudies": [
{
"title": "<string>",
"challenge": "<string>",
"solution": "<string>",
"result": "<string>",
"link": "<string>",
"imageUrl": "<string>"
}
],
"faqs": [
{
"question": "<string>",
"answer": "<string>"
}
],
"mediaOrder": [
{
"url": "<string>"
}
],
"leadForm": {
"enabled": true,
"ctaLabel": "<string>",
"title": "<string>",
"description": "<string>",
"submitLabel": "<string>",
"successTitle": "<string>",
"successMessage": "<string>",
"includeAnswersInCalendarDescription": true,
"fields": [
{
"label": "<string>",
"id": "<string>",
"required": true,
"description": "<string>",
"placeholder": "<string>",
"options": [
{
"label": "<string>",
"id": "<string>"
}
],
"autofillSource": "active_company_website_or_appstore",
"allowOther": true,
"minSelections": 123,
"maxSelections": 123,
"maxFiles": 123,
"maxFileSizeMb": 123,
"acceptedFileTypes": [
"<string>"
],
"maxColors": 123,
"numberMin": 123,
"numberMax": 123,
"numberPrefix": "<string>",
"numberSuffix": "<string>"
}
]
},
"bookingHosts": [
{
"label": "<string>",
"calOwnerUid": "<string>",
"id": "<string>",
"isDefault": true
}
],
"calendarRouting": {
"fieldId": "<string>",
"rules": [
{
"match": {
"optionId": "<string>",
"value": true,
"min": 123,
"max": 123
},
"hostId": "<string>"
}
],
"defaultHostId": "<string>"
},
"publish": true
}
'import requests
url = "https://app.sideshift.app/api/oauth/v1/discover/offers"
payload = {
"title": "<string>",
"description": "<string>",
"longDescription": "<string>",
"imageUrl": "<string>",
"bannerImageUrl": "<string>",
"heroUrls": ["<string>"],
"heroCaptions": ["<string>"],
"price": "<string>",
"calendarLink": "<string>",
"videoUrls": ["<string>"],
"notionDocs": [
{
"title": "<string>",
"url": "<string>"
}
],
"pricingOptions": [
{
"label": "<string>",
"amount": "<string>",
"cta": "<string>",
"summary": "<string>",
"details": "<string>",
"deliverables": ["<string>"]
}
],
"caseStudies": [
{
"title": "<string>",
"challenge": "<string>",
"solution": "<string>",
"result": "<string>",
"link": "<string>",
"imageUrl": "<string>"
}
],
"faqs": [
{
"question": "<string>",
"answer": "<string>"
}
],
"mediaOrder": [{ "url": "<string>" }],
"leadForm": {
"enabled": True,
"ctaLabel": "<string>",
"title": "<string>",
"description": "<string>",
"submitLabel": "<string>",
"successTitle": "<string>",
"successMessage": "<string>",
"includeAnswersInCalendarDescription": True,
"fields": [
{
"label": "<string>",
"id": "<string>",
"required": True,
"description": "<string>",
"placeholder": "<string>",
"options": [
{
"label": "<string>",
"id": "<string>"
}
],
"autofillSource": "active_company_website_or_appstore",
"allowOther": True,
"minSelections": 123,
"maxSelections": 123,
"maxFiles": 123,
"maxFileSizeMb": 123,
"acceptedFileTypes": ["<string>"],
"maxColors": 123,
"numberMin": 123,
"numberMax": 123,
"numberPrefix": "<string>",
"numberSuffix": "<string>"
}
]
},
"bookingHosts": [
{
"label": "<string>",
"calOwnerUid": "<string>",
"id": "<string>",
"isDefault": True
}
],
"calendarRouting": {
"fieldId": "<string>",
"rules": [
{
"match": {
"optionId": "<string>",
"value": True,
"min": 123,
"max": 123
},
"hostId": "<string>"
}
],
"defaultHostId": "<string>"
},
"publish": True
}
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>',
longDescription: '<string>',
imageUrl: '<string>',
bannerImageUrl: '<string>',
heroUrls: ['<string>'],
heroCaptions: ['<string>'],
price: '<string>',
calendarLink: '<string>',
videoUrls: ['<string>'],
notionDocs: [{title: '<string>', url: '<string>'}],
pricingOptions: [
{
label: '<string>',
amount: '<string>',
cta: '<string>',
summary: '<string>',
details: '<string>',
deliverables: ['<string>']
}
],
caseStudies: [
{
title: '<string>',
challenge: '<string>',
solution: '<string>',
result: '<string>',
link: '<string>',
imageUrl: '<string>'
}
],
faqs: [{question: '<string>', answer: '<string>'}],
mediaOrder: [{url: '<string>'}],
leadForm: {
enabled: true,
ctaLabel: '<string>',
title: '<string>',
description: '<string>',
submitLabel: '<string>',
successTitle: '<string>',
successMessage: '<string>',
includeAnswersInCalendarDescription: true,
fields: [
{
label: '<string>',
id: '<string>',
required: true,
description: '<string>',
placeholder: '<string>',
options: [{label: '<string>', id: '<string>'}],
autofillSource: 'active_company_website_or_appstore',
allowOther: true,
minSelections: 123,
maxSelections: 123,
maxFiles: 123,
maxFileSizeMb: 123,
acceptedFileTypes: ['<string>'],
maxColors: 123,
numberMin: 123,
numberMax: 123,
numberPrefix: '<string>',
numberSuffix: '<string>'
}
]
},
bookingHosts: [{label: '<string>', calOwnerUid: '<string>', id: '<string>', isDefault: true}],
calendarRouting: {
fieldId: '<string>',
rules: [
{
match: {optionId: '<string>', value: true, min: 123, max: 123},
hostId: '<string>'
}
],
defaultHostId: '<string>'
},
publish: true
})
};
fetch('https://app.sideshift.app/api/oauth/v1/discover/offers', 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.sideshift.app/api/oauth/v1/discover/offers",
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>',
'longDescription' => '<string>',
'imageUrl' => '<string>',
'bannerImageUrl' => '<string>',
'heroUrls' => [
'<string>'
],
'heroCaptions' => [
'<string>'
],
'price' => '<string>',
'calendarLink' => '<string>',
'videoUrls' => [
'<string>'
],
'notionDocs' => [
[
'title' => '<string>',
'url' => '<string>'
]
],
'pricingOptions' => [
[
'label' => '<string>',
'amount' => '<string>',
'cta' => '<string>',
'summary' => '<string>',
'details' => '<string>',
'deliverables' => [
'<string>'
]
]
],
'caseStudies' => [
[
'title' => '<string>',
'challenge' => '<string>',
'solution' => '<string>',
'result' => '<string>',
'link' => '<string>',
'imageUrl' => '<string>'
]
],
'faqs' => [
[
'question' => '<string>',
'answer' => '<string>'
]
],
'mediaOrder' => [
[
'url' => '<string>'
]
],
'leadForm' => [
'enabled' => true,
'ctaLabel' => '<string>',
'title' => '<string>',
'description' => '<string>',
'submitLabel' => '<string>',
'successTitle' => '<string>',
'successMessage' => '<string>',
'includeAnswersInCalendarDescription' => true,
'fields' => [
[
'label' => '<string>',
'id' => '<string>',
'required' => true,
'description' => '<string>',
'placeholder' => '<string>',
'options' => [
[
'label' => '<string>',
'id' => '<string>'
]
],
'autofillSource' => 'active_company_website_or_appstore',
'allowOther' => true,
'minSelections' => 123,
'maxSelections' => 123,
'maxFiles' => 123,
'maxFileSizeMb' => 123,
'acceptedFileTypes' => [
'<string>'
],
'maxColors' => 123,
'numberMin' => 123,
'numberMax' => 123,
'numberPrefix' => '<string>',
'numberSuffix' => '<string>'
]
]
],
'bookingHosts' => [
[
'label' => '<string>',
'calOwnerUid' => '<string>',
'id' => '<string>',
'isDefault' => true
]
],
'calendarRouting' => [
'fieldId' => '<string>',
'rules' => [
[
'match' => [
'optionId' => '<string>',
'value' => true,
'min' => 123,
'max' => 123
],
'hostId' => '<string>'
]
],
'defaultHostId' => '<string>'
],
'publish' => true
]),
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.sideshift.app/api/oauth/v1/discover/offers"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"longDescription\": \"<string>\",\n \"imageUrl\": \"<string>\",\n \"bannerImageUrl\": \"<string>\",\n \"heroUrls\": [\n \"<string>\"\n ],\n \"heroCaptions\": [\n \"<string>\"\n ],\n \"price\": \"<string>\",\n \"calendarLink\": \"<string>\",\n \"videoUrls\": [\n \"<string>\"\n ],\n \"notionDocs\": [\n {\n \"title\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"pricingOptions\": [\n {\n \"label\": \"<string>\",\n \"amount\": \"<string>\",\n \"cta\": \"<string>\",\n \"summary\": \"<string>\",\n \"details\": \"<string>\",\n \"deliverables\": [\n \"<string>\"\n ]\n }\n ],\n \"caseStudies\": [\n {\n \"title\": \"<string>\",\n \"challenge\": \"<string>\",\n \"solution\": \"<string>\",\n \"result\": \"<string>\",\n \"link\": \"<string>\",\n \"imageUrl\": \"<string>\"\n }\n ],\n \"faqs\": [\n {\n \"question\": \"<string>\",\n \"answer\": \"<string>\"\n }\n ],\n \"mediaOrder\": [\n {\n \"url\": \"<string>\"\n }\n ],\n \"leadForm\": {\n \"enabled\": true,\n \"ctaLabel\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"submitLabel\": \"<string>\",\n \"successTitle\": \"<string>\",\n \"successMessage\": \"<string>\",\n \"includeAnswersInCalendarDescription\": true,\n \"fields\": [\n {\n \"label\": \"<string>\",\n \"id\": \"<string>\",\n \"required\": true,\n \"description\": \"<string>\",\n \"placeholder\": \"<string>\",\n \"options\": [\n {\n \"label\": \"<string>\",\n \"id\": \"<string>\"\n }\n ],\n \"autofillSource\": \"active_company_website_or_appstore\",\n \"allowOther\": true,\n \"minSelections\": 123,\n \"maxSelections\": 123,\n \"maxFiles\": 123,\n \"maxFileSizeMb\": 123,\n \"acceptedFileTypes\": [\n \"<string>\"\n ],\n \"maxColors\": 123,\n \"numberMin\": 123,\n \"numberMax\": 123,\n \"numberPrefix\": \"<string>\",\n \"numberSuffix\": \"<string>\"\n }\n ]\n },\n \"bookingHosts\": [\n {\n \"label\": \"<string>\",\n \"calOwnerUid\": \"<string>\",\n \"id\": \"<string>\",\n \"isDefault\": true\n }\n ],\n \"calendarRouting\": {\n \"fieldId\": \"<string>\",\n \"rules\": [\n {\n \"match\": {\n \"optionId\": \"<string>\",\n \"value\": true,\n \"min\": 123,\n \"max\": 123\n },\n \"hostId\": \"<string>\"\n }\n ],\n \"defaultHostId\": \"<string>\"\n },\n \"publish\": true\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.sideshift.app/api/oauth/v1/discover/offers")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"longDescription\": \"<string>\",\n \"imageUrl\": \"<string>\",\n \"bannerImageUrl\": \"<string>\",\n \"heroUrls\": [\n \"<string>\"\n ],\n \"heroCaptions\": [\n \"<string>\"\n ],\n \"price\": \"<string>\",\n \"calendarLink\": \"<string>\",\n \"videoUrls\": [\n \"<string>\"\n ],\n \"notionDocs\": [\n {\n \"title\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"pricingOptions\": [\n {\n \"label\": \"<string>\",\n \"amount\": \"<string>\",\n \"cta\": \"<string>\",\n \"summary\": \"<string>\",\n \"details\": \"<string>\",\n \"deliverables\": [\n \"<string>\"\n ]\n }\n ],\n \"caseStudies\": [\n {\n \"title\": \"<string>\",\n \"challenge\": \"<string>\",\n \"solution\": \"<string>\",\n \"result\": \"<string>\",\n \"link\": \"<string>\",\n \"imageUrl\": \"<string>\"\n }\n ],\n \"faqs\": [\n {\n \"question\": \"<string>\",\n \"answer\": \"<string>\"\n }\n ],\n \"mediaOrder\": [\n {\n \"url\": \"<string>\"\n }\n ],\n \"leadForm\": {\n \"enabled\": true,\n \"ctaLabel\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"submitLabel\": \"<string>\",\n \"successTitle\": \"<string>\",\n \"successMessage\": \"<string>\",\n \"includeAnswersInCalendarDescription\": true,\n \"fields\": [\n {\n \"label\": \"<string>\",\n \"id\": \"<string>\",\n \"required\": true,\n \"description\": \"<string>\",\n \"placeholder\": \"<string>\",\n \"options\": [\n {\n \"label\": \"<string>\",\n \"id\": \"<string>\"\n }\n ],\n \"autofillSource\": \"active_company_website_or_appstore\",\n \"allowOther\": true,\n \"minSelections\": 123,\n \"maxSelections\": 123,\n \"maxFiles\": 123,\n \"maxFileSizeMb\": 123,\n \"acceptedFileTypes\": [\n \"<string>\"\n ],\n \"maxColors\": 123,\n \"numberMin\": 123,\n \"numberMax\": 123,\n \"numberPrefix\": \"<string>\",\n \"numberSuffix\": \"<string>\"\n }\n ]\n },\n \"bookingHosts\": [\n {\n \"label\": \"<string>\",\n \"calOwnerUid\": \"<string>\",\n \"id\": \"<string>\",\n \"isDefault\": true\n }\n ],\n \"calendarRouting\": {\n \"fieldId\": \"<string>\",\n \"rules\": [\n {\n \"match\": {\n \"optionId\": \"<string>\",\n \"value\": true,\n \"min\": 123,\n \"max\": 123\n },\n \"hostId\": \"<string>\"\n }\n ],\n \"defaultHostId\": \"<string>\"\n },\n \"publish\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.sideshift.app/api/oauth/v1/discover/offers")
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 \"longDescription\": \"<string>\",\n \"imageUrl\": \"<string>\",\n \"bannerImageUrl\": \"<string>\",\n \"heroUrls\": [\n \"<string>\"\n ],\n \"heroCaptions\": [\n \"<string>\"\n ],\n \"price\": \"<string>\",\n \"calendarLink\": \"<string>\",\n \"videoUrls\": [\n \"<string>\"\n ],\n \"notionDocs\": [\n {\n \"title\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"pricingOptions\": [\n {\n \"label\": \"<string>\",\n \"amount\": \"<string>\",\n \"cta\": \"<string>\",\n \"summary\": \"<string>\",\n \"details\": \"<string>\",\n \"deliverables\": [\n \"<string>\"\n ]\n }\n ],\n \"caseStudies\": [\n {\n \"title\": \"<string>\",\n \"challenge\": \"<string>\",\n \"solution\": \"<string>\",\n \"result\": \"<string>\",\n \"link\": \"<string>\",\n \"imageUrl\": \"<string>\"\n }\n ],\n \"faqs\": [\n {\n \"question\": \"<string>\",\n \"answer\": \"<string>\"\n }\n ],\n \"mediaOrder\": [\n {\n \"url\": \"<string>\"\n }\n ],\n \"leadForm\": {\n \"enabled\": true,\n \"ctaLabel\": \"<string>\",\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"submitLabel\": \"<string>\",\n \"successTitle\": \"<string>\",\n \"successMessage\": \"<string>\",\n \"includeAnswersInCalendarDescription\": true,\n \"fields\": [\n {\n \"label\": \"<string>\",\n \"id\": \"<string>\",\n \"required\": true,\n \"description\": \"<string>\",\n \"placeholder\": \"<string>\",\n \"options\": [\n {\n \"label\": \"<string>\",\n \"id\": \"<string>\"\n }\n ],\n \"autofillSource\": \"active_company_website_or_appstore\",\n \"allowOther\": true,\n \"minSelections\": 123,\n \"maxSelections\": 123,\n \"maxFiles\": 123,\n \"maxFileSizeMb\": 123,\n \"acceptedFileTypes\": [\n \"<string>\"\n ],\n \"maxColors\": 123,\n \"numberMin\": 123,\n \"numberMax\": 123,\n \"numberPrefix\": \"<string>\",\n \"numberSuffix\": \"<string>\"\n }\n ]\n },\n \"bookingHosts\": [\n {\n \"label\": \"<string>\",\n \"calOwnerUid\": \"<string>\",\n \"id\": \"<string>\",\n \"isDefault\": true\n }\n ],\n \"calendarRouting\": {\n \"fieldId\": \"<string>\",\n \"rules\": [\n {\n \"match\": {\n \"optionId\": \"<string>\",\n \"value\": true,\n \"min\": 123,\n \"max\": 123\n },\n \"hostId\": \"<string>\"\n }\n ],\n \"defaultHostId\": \"<string>\"\n },\n \"publish\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"title": "<string>",
"description": "<string>",
"longDescription": "<string>",
"company": "<string>",
"imageUrl": "<string>",
"price": "<string>",
"faqs": [
{
"question": "<string>",
"answer": "<string>"
}
],
"companyId": "<string>",
"companyAvatarUrl": "<string>",
"bannerImageUrl": "<string>",
"calendarLink": "<string>",
"heroUrls": [
"<string>"
],
"heroCaptions": [
"<string>"
],
"videoUrls": [
"<string>"
],
"notionDocs": [
{
"title": "<string>",
"url": "<string>"
}
],
"pricingOptions": [
{
"label": "<string>",
"amount": "<string>",
"cta": "<string>",
"summary": "<string>",
"details": "<string>",
"deliverables": [
"<string>"
]
}
],
"caseStudies": [
{
"title": "<string>",
"challenge": "<string>",
"solution": "<string>",
"result": "<string>",
"link": "<string>",
"imageUrl": "<string>"
}
],
"createdAt": "<string>",
"mediaOrder": [
{
"url": "<string>"
}
],
"leadForm": {
"enabled": true,
"ctaLabel": "<string>",
"title": "<string>",
"description": "<string>",
"submitLabel": "<string>",
"successTitle": "<string>",
"successMessage": "<string>",
"includeAnswersInCalendarDescription": true,
"fields": [
{
"label": "<string>",
"id": "<string>",
"required": true,
"description": "<string>",
"placeholder": "<string>",
"options": [
{
"label": "<string>",
"id": "<string>"
}
],
"autofillSource": "active_company_website_or_appstore",
"allowOther": true,
"minSelections": 123,
"maxSelections": 123,
"maxFiles": 123,
"maxFileSizeMb": 123,
"acceptedFileTypes": [
"<string>"
],
"maxColors": 123,
"numberMin": 123,
"numberMax": 123,
"numberPrefix": "<string>",
"numberSuffix": "<string>"
}
]
},
"bookingHosts": [
{
"label": "<string>",
"calOwnerUid": "<string>",
"id": "<string>",
"isDefault": true
}
],
"calendarRouting": {
"fieldId": "<string>",
"rules": [
{
"match": {
"optionId": "<string>",
"value": true,
"min": 123,
"max": 123
},
"hostId": "<string>"
}
],
"defaultHostId": "<string>"
},
"responseTime": "<string>",
"isVerified": true,
"totalViews": 123,
"avgEngagement": 123,
"campaignCount": 123
}
}{
"error": {
"code": "unauthorized",
"message": "Missing bearer access token",
"requestId": "req_..."
}
}{
"error": {
"code": "insufficient_scope",
"message": "Requires scope 'campaigns:write'",
"requestId": "req_..."
}
}{
"error": {
"code": "not_found",
"message": "Resource not found",
"requestId": "req_..."
}
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded",
"requestId": "req_..."
}
}Authorizations
OAuth 2.1 authorization code + PKCE (S256). Tokens are tenant-bound (company_id) and scoped. Discover endpoints via /.well-known/oauth-authorization-server.
Body
Discover offer/listing fields. The OAuth POST REBUILDS the entire public listing from the body (a full replace, not a merge). companyId is bound to the token tenant and is NOT a client input. The completeness guard (lib/api/discover/oauth-offer-validation.ts) requires title, description, longDescription, and an explicit category regardless of the publish flag. Unknown fields pass through (the route never strict-parses the body).
Offer title (max 120 chars). Required.
120Short description (max 500 chars). Required.
500Full description (max 5000 chars). Required.
5000Marketplace category. Required and must be exactly one of ugc_agencies, clipping, or wildcards.
ugc_agencies, clipping, wildcards Card/thumbnail image URL.
Banner image URL.
Hero gallery image URLs (max 10).
Captions aligned to heroUrls (max 10).
Display price string; derived from the first pricing option when omitted.
Legacy single cal.com booking link (prefer bookingHosts).
Showcase video URLs (max 8).
Linked Notion docs (max 12).
Show child attributes
Show child attributes
Pricing option rows (max 6).
Show child attributes
Show child attributes
Case studies (max 8).
Show child attributes
Show child attributes
FAQ entries (max 10).
Show child attributes
Show child attributes
Explicit media ordering for the gallery (max 20).
Show child attributes
Show child attributes
The Discover lead-capture form config. Mirrors DiscoverLeadFormConfig (lib/discover/lead-form.ts).
Show child attributes
Show child attributes
Bookable calendar hosts (max 2; exactly one default).
Show child attributes
Show child attributes
Route leads to different hosts by a lead-form answer. Requires >=2 booking hosts; null to disable.
Show child attributes
Show child attributes
false saves a draft ("save progress") without publishing or unpublishing; defaults to true (publish).
Response
The upserted Discover offer.
The Discover offer. Always present (a missing offer 404s instead of returning null).
Show child attributes
Show child attributes