curl --request POST \
--url https://api.lumisreach.com/api/v1/lincoln/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"wait_seconds": 120,
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"message": "<string>",
"approvals": [
{
"approval_id": "<string>",
"approved": true,
"reason": "<string>"
}
]
}
'import requests
url = "https://api.lumisreach.com/api/v1/lincoln/messages"
payload = {
"wait_seconds": 120,
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"message": "<string>",
"approvals": [
{
"approval_id": "<string>",
"approved": True,
"reason": "<string>"
}
]
}
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({
wait_seconds: 120,
conversation_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
message: '<string>',
approvals: [{approval_id: '<string>', approved: true, reason: '<string>'}]
})
};
fetch('https://api.lumisreach.com/api/v1/lincoln/messages', 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.lumisreach.com/api/v1/lincoln/messages",
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([
'wait_seconds' => 120,
'conversation_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'message' => '<string>',
'approvals' => [
[
'approval_id' => '<string>',
'approved' => true,
'reason' => '<string>'
]
]
]),
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.lumisreach.com/api/v1/lincoln/messages"
payload := strings.NewReader("{\n \"wait_seconds\": 120,\n \"conversation_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"message\": \"<string>\",\n \"approvals\": [\n {\n \"approval_id\": \"<string>\",\n \"approved\": true,\n \"reason\": \"<string>\"\n }\n ]\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://api.lumisreach.com/api/v1/lincoln/messages")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"wait_seconds\": 120,\n \"conversation_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"message\": \"<string>\",\n \"approvals\": [\n {\n \"approval_id\": \"<string>\",\n \"approved\": true,\n \"reason\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lumisreach.com/api/v1/lincoln/messages")
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 \"wait_seconds\": 120,\n \"conversation_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"message\": \"<string>\",\n \"approvals\": [\n {\n \"approval_id\": \"<string>\",\n \"approved\": true,\n \"reason\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"status": "working",
"run_id": "<string>",
"reply": "<string>",
"actions": [
{
"tool_call_id": "<string>",
"tool": "<string>",
"status": "running",
"input": "<unknown>",
"output": "<unknown>",
"error": "<string>"
}
],
"pending_approvals": [
{
"approval_id": "<string>",
"tool_call_id": "<string>",
"tool": "<string>",
"input": "<unknown>",
"reason": "<string>"
}
],
"error": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}Message Lincoln AI
Tell Lincoln AI what to do in plain language, the same as typing in Dashboard → Conversations: it plans the work and carries it out with your workspace’s tools (phone numbers, voice agents, campaigns, contacts, automations, videos and more). Omit conversation_id to start a new conversation; pass it to continue one. The request waits up to wait_seconds for Lincoln to finish and returns its reply and the actions it took. If it is still working, status is working: poll GET /v1/lincoln/conversations/{id}. Anything that spends money or can’t be undone pauses with status: awaiting_approval and a list of pending_approvals; send them back as approvals to continue. Requires Lincoln AI on the workspace’s plan. Tool actions are billed as they would be in the dashboard.
curl --request POST \
--url https://api.lumisreach.com/api/v1/lincoln/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"wait_seconds": 120,
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"message": "<string>",
"approvals": [
{
"approval_id": "<string>",
"approved": true,
"reason": "<string>"
}
]
}
'import requests
url = "https://api.lumisreach.com/api/v1/lincoln/messages"
payload = {
"wait_seconds": 120,
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"message": "<string>",
"approvals": [
{
"approval_id": "<string>",
"approved": True,
"reason": "<string>"
}
]
}
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({
wait_seconds: 120,
conversation_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
message: '<string>',
approvals: [{approval_id: '<string>', approved: true, reason: '<string>'}]
})
};
fetch('https://api.lumisreach.com/api/v1/lincoln/messages', 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.lumisreach.com/api/v1/lincoln/messages",
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([
'wait_seconds' => 120,
'conversation_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'message' => '<string>',
'approvals' => [
[
'approval_id' => '<string>',
'approved' => true,
'reason' => '<string>'
]
]
]),
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.lumisreach.com/api/v1/lincoln/messages"
payload := strings.NewReader("{\n \"wait_seconds\": 120,\n \"conversation_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"message\": \"<string>\",\n \"approvals\": [\n {\n \"approval_id\": \"<string>\",\n \"approved\": true,\n \"reason\": \"<string>\"\n }\n ]\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://api.lumisreach.com/api/v1/lincoln/messages")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"wait_seconds\": 120,\n \"conversation_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"message\": \"<string>\",\n \"approvals\": [\n {\n \"approval_id\": \"<string>\",\n \"approved\": true,\n \"reason\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lumisreach.com/api/v1/lincoln/messages")
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 \"wait_seconds\": 120,\n \"conversation_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"message\": \"<string>\",\n \"approvals\": [\n {\n \"approval_id\": \"<string>\",\n \"approved\": true,\n \"reason\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"status": "working",
"run_id": "<string>",
"reply": "<string>",
"actions": [
{
"tool_call_id": "<string>",
"tool": "<string>",
"status": "running",
"input": "<unknown>",
"output": "<unknown>",
"error": "<string>"
}
],
"pending_approvals": [
{
"approval_id": "<string>",
"tool_call_id": "<string>",
"tool": "<string>",
"input": "<unknown>",
"reason": "<string>"
}
],
"error": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
UUID — when present, deduplicates repeat submissions. See /api-reference/idempotency.
Body
How long to hold the request open for Lincoln to finish. 0 returns immediately. If the turn is still running when this runs out, status is working: poll GET /v1/lincoln/conversations/{id}.
0 <= x <= 240Continue this conversation. Omit to start a new one.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$What you want Lincoln to do, in plain language. Send this or approvals, not both.
1 - 20000Answers to the actions Lincoln is waiting on (pending_approvals). Every pending approval must be answered. Send this or message, not both.
1Show child attributes
Show child attributes
Response
Success
Show child attributes
Show child attributes