curl --request POST \
--url https://public-api.lonescale.com/brief \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"crm_contact_id": "710432049398",
"custom_details": "Met at Money20/20. Asked about multi-entity consolidation.",
"language": "en"
}
'import requests
url = "https://public-api.lonescale.com/brief"
payload = {
"crm_contact_id": "710432049398",
"custom_details": "Met at Money20/20. Asked about multi-entity consolidation.",
"language": "en"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
crm_contact_id: '710432049398',
custom_details: 'Met at Money20/20. Asked about multi-entity consolidation.',
language: 'en'
})
};
fetch('https://public-api.lonescale.com/brief', 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://public-api.lonescale.com/brief",
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([
'crm_contact_id' => '710432049398',
'custom_details' => 'Met at Money20/20. Asked about multi-entity consolidation.',
'language' => 'en'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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://public-api.lonescale.com/brief"
payload := strings.NewReader("{\n \"crm_contact_id\": \"710432049398\",\n \"custom_details\": \"Met at Money20/20. Asked about multi-entity consolidation.\",\n \"language\": \"en\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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://public-api.lonescale.com/brief")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"crm_contact_id\": \"710432049398\",\n \"custom_details\": \"Met at Money20/20. Asked about multi-entity consolidation.\",\n \"language\": \"en\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.lonescale.com/brief")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"crm_contact_id\": \"710432049398\",\n \"custom_details\": \"Met at Money20/20. Asked about multi-entity consolidation.\",\n \"language\": \"en\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3f0b1f0e-8a3c-4f0e-9a51-2b7b3c1d9e10",
"status": "done",
"brief": {
"hook": {
"line": "She moved to CFO in March and your team spoke with her predecessor in 2025.",
"linkedin_fact": "CFO at Acme since March 2026",
"crm_fact": "Call with Paul Martin on 2025-11-12 about consolidation"
},
"outreach_messages": {
"email": {
"subject": "consolidation at acme",
"body": "Hi Jane,\n\nCongrats on the CFO role. My colleague Alice spoke with Paul Martin last November about multi-entity consolidation.\n\nIs it still done by hand each month?\n\nYann"
},
"linkedin": "Jane,\n\nCongrats on the CFO role at Acme.\n\nIs multi-entity consolidation still manual on your side?"
},
"red_flags": [],
"crm_matched": true,
"contact_found_in_crm": true,
"crm_save": {
"status": "saved",
"fields": [
"ls_brief_subject",
"ls_brief_body"
]
}
}
}{
"id": "3f0b1f0e-8a3c-4f0e-9a51-2b7b3c1d9e10",
"status": "running"
}{
"message": "A contact needs one of crm_contact_id, email, linkedin_url, full_name, company_domain or company_name",
"error": "Bad Request",
"statusCode": 400
}{
"message": "Invalid API Key",
"error": "Unauthorized",
"statusCode": 401
}{
"message": "AI assistant is not enabled for this member",
"error": "Forbidden",
"statusCode": 403
}Brief one contact
Writes the outreach brief of one person: why write to them now (the hook), an email draft and a LinkedIn message, grounded in your CRM history (the person, their account, past exchanges, deals, tickets) and their profile. The drafts follow the skills and the email templates your organisation set in LoneScale.
The CRM record id is the best input. Without it the person is looked up by email, then by LinkedIn URL; a person your CRM does not know still gets a brief when you give their current job title or company, or LoneScale holds their profile. Otherwise the brief comes back failed with what to add, and an unknown crm_contact_id comes back failed too.
A brief takes 30 to 90 seconds. The request waits up to 45 seconds: it answers 200 with the brief when it is written in time, else 202 with status: "running" and the run id to read on GET /brief/runs/{id}.
When an admin picked the fields for it (Chrome extension settings), the email draft is also written to the CRM record: see crm_save.
Requires the AI assistant to be enabled for the API key’s holder. No credits are charged. Rate limited to 10 requests per minute.
curl --request POST \
--url https://public-api.lonescale.com/brief \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"crm_contact_id": "710432049398",
"custom_details": "Met at Money20/20. Asked about multi-entity consolidation.",
"language": "en"
}
'import requests
url = "https://public-api.lonescale.com/brief"
payload = {
"crm_contact_id": "710432049398",
"custom_details": "Met at Money20/20. Asked about multi-entity consolidation.",
"language": "en"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
crm_contact_id: '710432049398',
custom_details: 'Met at Money20/20. Asked about multi-entity consolidation.',
language: 'en'
})
};
fetch('https://public-api.lonescale.com/brief', 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://public-api.lonescale.com/brief",
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([
'crm_contact_id' => '710432049398',
'custom_details' => 'Met at Money20/20. Asked about multi-entity consolidation.',
'language' => 'en'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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://public-api.lonescale.com/brief"
payload := strings.NewReader("{\n \"crm_contact_id\": \"710432049398\",\n \"custom_details\": \"Met at Money20/20. Asked about multi-entity consolidation.\",\n \"language\": \"en\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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://public-api.lonescale.com/brief")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"crm_contact_id\": \"710432049398\",\n \"custom_details\": \"Met at Money20/20. Asked about multi-entity consolidation.\",\n \"language\": \"en\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.lonescale.com/brief")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"crm_contact_id\": \"710432049398\",\n \"custom_details\": \"Met at Money20/20. Asked about multi-entity consolidation.\",\n \"language\": \"en\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3f0b1f0e-8a3c-4f0e-9a51-2b7b3c1d9e10",
"status": "done",
"brief": {
"hook": {
"line": "She moved to CFO in March and your team spoke with her predecessor in 2025.",
"linkedin_fact": "CFO at Acme since March 2026",
"crm_fact": "Call with Paul Martin on 2025-11-12 about consolidation"
},
"outreach_messages": {
"email": {
"subject": "consolidation at acme",
"body": "Hi Jane,\n\nCongrats on the CFO role. My colleague Alice spoke with Paul Martin last November about multi-entity consolidation.\n\nIs it still done by hand each month?\n\nYann"
},
"linkedin": "Jane,\n\nCongrats on the CFO role at Acme.\n\nIs multi-entity consolidation still manual on your side?"
},
"red_flags": [],
"crm_matched": true,
"contact_found_in_crm": true,
"crm_save": {
"status": "saved",
"fields": [
"ls_brief_subject",
"ls_brief_body"
]
}
}
}{
"id": "3f0b1f0e-8a3c-4f0e-9a51-2b7b3c1d9e10",
"status": "running"
}{
"message": "A contact needs one of crm_contact_id, email, linkedin_url, full_name, company_domain or company_name",
"error": "Bad Request",
"statusCode": 400
}{
"message": "Invalid API Key",
"error": "Unauthorized",
"statusCode": 401
}{
"message": "AI assistant is not enabled for this member",
"error": "Forbidden",
"statusCode": 403
}Body
Who the brief is about. The CRM record id is the best input. Otherwise give the person's name with their current job title or company, and their LinkedIn URL or email when known: a person your CRM does not know still gets a brief, written from the fields given here and the profile LoneScale holds. A LinkedIn URL alone is enough only when LoneScale holds that profile. A brief with nothing to stand on (no CRM record, no profile, no role, no company, no custom_details) is refused with what to add.
The CRM record of the person: a HubSpot contact id, or a Salesforce Contact or Lead id. The best input: the brief reads the record, its account and their history, and the LinkedIn profile LoneScale holds for the URL on the record. An id the CRM does not know is refused.
"710432049398"

