Generate a pain-points report (1 credit)
curl --request POST \
--url https://app.reechee.io/api/v1/products/{id}/generate-report \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.reechee.io/api/v1/products/{id}/generate-report"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.reechee.io/api/v1/products/{id}/generate-report', 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/products/{id}/generate-report",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.reechee.io/api/v1/products/{id}/generate-report"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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/products/{id}/generate-report")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.reechee.io/api/v1/products/{id}/generate-report")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"status": "<string>",
"message": "<string>",
"credits_remaining": 123,
"already_in_progress": true
}
}{
"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": "Report generation service unavailable. No credit was charged."
}
}Endpoints
Generate a pain-points report (1 credit)
Start generating the full pain-points report for a product. Spends 1 credit.
Generation is asynchronous (2-3 minutes): this returns status: generating
immediately - poll GET /products/{id}/pain-points (with your key) for the
finished report. No charge if a report is already generating. Requires a spend
budget on the credential (per-key spend cap, or an OAuth connection’s
consent-time credit budget).
POST
/
products
/
{id}
/
generate-report
Generate a pain-points report (1 credit)
curl --request POST \
--url https://app.reechee.io/api/v1/products/{id}/generate-report \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.reechee.io/api/v1/products/{id}/generate-report"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.reechee.io/api/v1/products/{id}/generate-report', 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/products/{id}/generate-report",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.reechee.io/api/v1/products/{id}/generate-report"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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/products/{id}/generate-report")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.reechee.io/api/v1/products/{id}/generate-report")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"status": "<string>",
"message": "<string>",
"credits_remaining": 123,
"already_in_progress": true
}
}{
"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": "Report generation service unavailable. No credit was charged."
}
}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
Product id (uuid).
⌘I