Generate a sales pitch (1 credit)
curl --request POST \
--url https://app.reechee.io/api/v1/opportunities/{id}/generate-pitch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"channels": [
"email"
],
"features": "fast onboarding, SOC 2"
}
'import requests
url = "https://app.reechee.io/api/v1/opportunities/{id}/generate-pitch"
payload = {
"channels": ["email"],
"features": "fast onboarding, SOC 2"
}
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({channels: ['email'], features: 'fast onboarding, SOC 2'})
};
fetch('https://app.reechee.io/api/v1/opportunities/{id}/generate-pitch', 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.reechee.io/api/v1/opportunities/{id}/generate-pitch",
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([
'channels' => [
'email'
],
'features' => 'fast onboarding, SOC 2'
]),
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.reechee.io/api/v1/opportunities/{id}/generate-pitch"
payload := strings.NewReader("{\n \"channels\": [\n \"email\"\n ],\n \"features\": \"fast onboarding, SOC 2\"\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.reechee.io/api/v1/opportunities/{id}/generate-pitch")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"channels\": [\n \"email\"\n ],\n \"features\": \"fast onboarding, SOC 2\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.reechee.io/api/v1/opportunities/{id}/generate-pitch")
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 \"channels\": [\n \"email\"\n ],\n \"features\": \"fast onboarding, SOC 2\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"generation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"markdown": "<string>",
"app_url": "<string>",
"credits_remaining": 123
}
}{
"success": false,
"error": {
"code": "invalid_request",
"message": "Invalid request"
}
}{
"success": false,
"error": {
"code": "unauthorized",
"message": "API key required"
}
}{
"success": false,
"error": {
"code": "payment_required",
"message": "API key spend cap reached",
"details": {
"reason": "spend_cap_reached",
"spend_cap": 100,
"spend_used": 100,
"spend_remaining": 0,
"credits_required": 1
}
}
}{
"success": false,
"error": {
"code": "forbidden",
"message": "This API key has no spend cap. Set a per-key spend cap in Settings to enable credit-spending tools.",
"details": {
"reason": "spend_cap_required"
}
}
}{
"success": false,
"error": {
"code": "not_found",
"message": "Resource not found"
}
}{
"success": false,
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded",
"details": {
"retry_after_seconds": 12,
"limit": 60,
"remaining": 0
}
}
}{
"success": false,
"error": {
"code": "internal_error",
"message": "Pitch generation failed: model timeout. The credit was refunded."
}
}Endpoints
Generate a sales pitch (1 credit)
Generate personalized outreach drafts (email, LinkedIn message, and/or call
talking points) for an opportunity, grounded in the reviewer’s pain points -
the same generation rail as the app’s Pitch Copilot. Spends 1 credit;
the credit is refunded if generation fails. Synchronous (typically 10-30
seconds): the response carries the drafts as markdown, and the generation is
saved to the app’s pitch history (app_url deep-links to it). Requires a
spend budget on the credential (per-key spend cap, or an OAuth
connection’s consent-time credit budget).
POST
/
opportunities
/
{id}
/
generate-pitch
Generate a sales pitch (1 credit)
curl --request POST \
--url https://app.reechee.io/api/v1/opportunities/{id}/generate-pitch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"channels": [
"email"
],
"features": "fast onboarding, SOC 2"
}
'import requests
url = "https://app.reechee.io/api/v1/opportunities/{id}/generate-pitch"
payload = {
"channels": ["email"],
"features": "fast onboarding, SOC 2"
}
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({channels: ['email'], features: 'fast onboarding, SOC 2'})
};
fetch('https://app.reechee.io/api/v1/opportunities/{id}/generate-pitch', 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.reechee.io/api/v1/opportunities/{id}/generate-pitch",
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([
'channels' => [
'email'
],
'features' => 'fast onboarding, SOC 2'
]),
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.reechee.io/api/v1/opportunities/{id}/generate-pitch"
payload := strings.NewReader("{\n \"channels\": [\n \"email\"\n ],\n \"features\": \"fast onboarding, SOC 2\"\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.reechee.io/api/v1/opportunities/{id}/generate-pitch")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"channels\": [\n \"email\"\n ],\n \"features\": \"fast onboarding, SOC 2\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.reechee.io/api/v1/opportunities/{id}/generate-pitch")
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 \"channels\": [\n \"email\"\n ],\n \"features\": \"fast onboarding, SOC 2\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"generation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"markdown": "<string>",
"app_url": "<string>",
"credits_remaining": 123
}
}{
"success": false,
"error": {
"code": "invalid_request",
"message": "Invalid request"
}
}{
"success": false,
"error": {
"code": "unauthorized",
"message": "API key required"
}
}{
"success": false,
"error": {
"code": "payment_required",
"message": "API key spend cap reached",
"details": {
"reason": "spend_cap_reached",
"spend_cap": 100,
"spend_used": 100,
"spend_remaining": 0,
"credits_required": 1
}
}
}{
"success": false,
"error": {
"code": "forbidden",
"message": "This API key has no spend cap. Set a per-key spend cap in Settings to enable credit-spending tools.",
"details": {
"reason": "spend_cap_required"
}
}
}{
"success": false,
"error": {
"code": "not_found",
"message": "Resource not found"
}
}{
"success": false,
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded",
"details": {
"retry_after_seconds": 12,
"limit": 60,
"remaining": 0
}
}
}{
"success": false,
"error": {
"code": "internal_error",
"message": "Pitch generation failed: model timeout. The credit was refunded."
}
}Authorizations
A paid-team API key, sent as Authorization: Bearer rch_live_…. Create and
revoke keys in the app under Settings → API keys.
Path Parameters
Opportunity id (uuid).
Body
application/json
⌘I