Settings
Set payment limits
What the agent may offer. Empty means never pay, which is the default.
Setting a ceiling is not spending it: every message naming a figure still waits for a person to approve it.
PUT
/
api
/
v1
/
public
/
outreach
/
settings
/
money
Set payment limits
curl --request PUT \
--url https://api.tryhikoo.com/api/v1/public/outreach/settings/money \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"max_per_mention": 1,
"max_per_month": 1,
"currency": "EUR"
}
'import requests
url = "https://api.tryhikoo.com/api/v1/public/outreach/settings/money"
payload = {
"max_per_mention": 1,
"max_per_month": 1,
"currency": "EUR"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({max_per_mention: 1, max_per_month: 1, currency: 'EUR'})
};
fetch('https://api.tryhikoo.com/api/v1/public/outreach/settings/money', 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://api.tryhikoo.com/api/v1/public/outreach/settings/money",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'max_per_mention' => 1,
'max_per_month' => 1,
'currency' => 'EUR'
]),
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://api.tryhikoo.com/api/v1/public/outreach/settings/money"
payload := strings.NewReader("{\n \"max_per_mention\": 1,\n \"max_per_month\": 1,\n \"currency\": \"EUR\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.tryhikoo.com/api/v1/public/outreach/settings/money")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"max_per_mention\": 1,\n \"max_per_month\": 1,\n \"currency\": \"EUR\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tryhikoo.com/api/v1/public/outreach/settings/money")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"max_per_mention\": 1,\n \"max_per_month\": 1,\n \"currency\": \"EUR\"\n}"
response = http.request(request)
puts response.read_body{
"workspace_id": 123,
"autonomy_preset": "asks_you_everything",
"permissions": [],
"money_max_per_mention": "<string>",
"money_max_per_month": "<string>",
"currency": "EUR",
"follow_up_enabled": true,
"follow_up_max": 3,
"linkedin_enabled": true,
"follow_up_delay_days": 3,
"onboarding_completed_at": "2023-11-07T05:31:56Z",
"offer": [],
"media": [],
"sender_profile": {
"relation": "employee",
"agency_name": "<string>"
},
"asks_you_first_count": 0,
"tells_you_after_count": 0,
"does_it_alone_count": 0,
"agent_mode": false
}{
"detail": "Invalid or expired API key"
}{
"detail": "This website has no active subscription, so its data is unavailable."
}{
"detail": "Website not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Too many requests. Please try again shortly."
}Authorizations
Body
application/json
Response
Successful Response
⌘I
Set payment limits
curl --request PUT \
--url https://api.tryhikoo.com/api/v1/public/outreach/settings/money \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"max_per_mention": 1,
"max_per_month": 1,
"currency": "EUR"
}
'import requests
url = "https://api.tryhikoo.com/api/v1/public/outreach/settings/money"
payload = {
"max_per_mention": 1,
"max_per_month": 1,
"currency": "EUR"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({max_per_mention: 1, max_per_month: 1, currency: 'EUR'})
};
fetch('https://api.tryhikoo.com/api/v1/public/outreach/settings/money', 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://api.tryhikoo.com/api/v1/public/outreach/settings/money",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'max_per_mention' => 1,
'max_per_month' => 1,
'currency' => 'EUR'
]),
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://api.tryhikoo.com/api/v1/public/outreach/settings/money"
payload := strings.NewReader("{\n \"max_per_mention\": 1,\n \"max_per_month\": 1,\n \"currency\": \"EUR\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.tryhikoo.com/api/v1/public/outreach/settings/money")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"max_per_mention\": 1,\n \"max_per_month\": 1,\n \"currency\": \"EUR\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tryhikoo.com/api/v1/public/outreach/settings/money")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"max_per_mention\": 1,\n \"max_per_month\": 1,\n \"currency\": \"EUR\"\n}"
response = http.request(request)
puts response.read_body{
"workspace_id": 123,
"autonomy_preset": "asks_you_everything",
"permissions": [],
"money_max_per_mention": "<string>",
"money_max_per_month": "<string>",
"currency": "EUR",
"follow_up_enabled": true,
"follow_up_max": 3,
"linkedin_enabled": true,
"follow_up_delay_days": 3,
"onboarding_completed_at": "2023-11-07T05:31:56Z",
"offer": [],
"media": [],
"sender_profile": {
"relation": "employee",
"agency_name": "<string>"
},
"asks_you_first_count": 0,
"tells_you_after_count": 0,
"does_it_alone_count": 0,
"agent_mode": false
}{
"detail": "Invalid or expired API key"
}{
"detail": "This website has no active subscription, so its data is unavailable."
}{
"detail": "Website not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Too many requests. Please try again shortly."
}