curl --request POST \
--url https://api.lumisreach.com/api/v1/quick/ai-texts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"to_numbers": [
"<string>"
],
"goal": "<string>",
"language": "en",
"max_messages": 5,
"reply_delay_seconds": 0,
"conversation_timeout_hours": 48,
"first_message": "<string>",
"instructions": "<string>",
"contact_name": "<string>"
}
'import requests
url = "https://api.lumisreach.com/api/v1/quick/ai-texts"
payload = {
"to_numbers": ["<string>"],
"goal": "<string>",
"language": "en",
"max_messages": 5,
"reply_delay_seconds": 0,
"conversation_timeout_hours": 48,
"first_message": "<string>",
"instructions": "<string>",
"contact_name": "<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({
to_numbers: ['<string>'],
goal: '<string>',
language: 'en',
max_messages: 5,
reply_delay_seconds: 0,
conversation_timeout_hours: 48,
first_message: '<string>',
instructions: '<string>',
contact_name: '<string>'
})
};
fetch('https://api.lumisreach.com/api/v1/quick/ai-texts', 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/quick/ai-texts",
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([
'to_numbers' => [
'<string>'
],
'goal' => '<string>',
'language' => 'en',
'max_messages' => 5,
'reply_delay_seconds' => 0,
'conversation_timeout_hours' => 48,
'first_message' => '<string>',
'instructions' => '<string>',
'contact_name' => '<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/quick/ai-texts"
payload := strings.NewReader("{\n \"to_numbers\": [\n \"<string>\"\n ],\n \"goal\": \"<string>\",\n \"language\": \"en\",\n \"max_messages\": 5,\n \"reply_delay_seconds\": 0,\n \"conversation_timeout_hours\": 48,\n \"first_message\": \"<string>\",\n \"instructions\": \"<string>\",\n \"contact_name\": \"<string>\"\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/quick/ai-texts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"to_numbers\": [\n \"<string>\"\n ],\n \"goal\": \"<string>\",\n \"language\": \"en\",\n \"max_messages\": 5,\n \"reply_delay_seconds\": 0,\n \"conversation_timeout_hours\": 48,\n \"first_message\": \"<string>\",\n \"instructions\": \"<string>\",\n \"contact_name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lumisreach.com/api/v1/quick/ai-texts")
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 \"to_numbers\": [\n \"<string>\"\n ],\n \"goal\": \"<string>\",\n \"language\": \"en\",\n \"max_messages\": 5,\n \"reply_delay_seconds\": 0,\n \"conversation_timeout_hours\": 48,\n \"first_message\": \"<string>\",\n \"instructions\": \"<string>\",\n \"contact_name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "ai_text",
"status": "<string>",
"from_number": "<string>",
"target_count": 123,
"status_url": "<string>",
"pricing": {
"per_message_usd": 123,
"note": "<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>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}Start a Quick AI Text conversation
Has an AI agent text one or more phone numbers and keep the conversation going until the goal is met. No phone-number purchase is required — messages are sent from a shared LumisReach number that is already registered on the approved LumisReach A2P 10DLC campaign. Supply first_message or let the agent write the opener from the goal. STOP is honored automatically. Shared numbers have a daily volume ceiling (500 messages) so carriers do not throttle the shared campaign; a job spreads across the pool and each destination reports the from_number it used. Billing: $0.05 per outbound message (opener and every AI reply; inbound replies are free), charged to the wallet of the organization that owns the API key. Returns 409 when the shared pool has no daily volume left.
curl --request POST \
--url https://api.lumisreach.com/api/v1/quick/ai-texts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"to_numbers": [
"<string>"
],
"goal": "<string>",
"language": "en",
"max_messages": 5,
"reply_delay_seconds": 0,
"conversation_timeout_hours": 48,
"first_message": "<string>",
"instructions": "<string>",
"contact_name": "<string>"
}
'import requests
url = "https://api.lumisreach.com/api/v1/quick/ai-texts"
payload = {
"to_numbers": ["<string>"],
"goal": "<string>",
"language": "en",
"max_messages": 5,
"reply_delay_seconds": 0,
"conversation_timeout_hours": 48,
"first_message": "<string>",
"instructions": "<string>",
"contact_name": "<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({
to_numbers: ['<string>'],
goal: '<string>',
language: 'en',
max_messages: 5,
reply_delay_seconds: 0,
conversation_timeout_hours: 48,
first_message: '<string>',
instructions: '<string>',
contact_name: '<string>'
})
};
fetch('https://api.lumisreach.com/api/v1/quick/ai-texts', 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/quick/ai-texts",
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([
'to_numbers' => [
'<string>'
],
'goal' => '<string>',
'language' => 'en',
'max_messages' => 5,
'reply_delay_seconds' => 0,
'conversation_timeout_hours' => 48,
'first_message' => '<string>',
'instructions' => '<string>',
'contact_name' => '<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/quick/ai-texts"
payload := strings.NewReader("{\n \"to_numbers\": [\n \"<string>\"\n ],\n \"goal\": \"<string>\",\n \"language\": \"en\",\n \"max_messages\": 5,\n \"reply_delay_seconds\": 0,\n \"conversation_timeout_hours\": 48,\n \"first_message\": \"<string>\",\n \"instructions\": \"<string>\",\n \"contact_name\": \"<string>\"\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/quick/ai-texts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"to_numbers\": [\n \"<string>\"\n ],\n \"goal\": \"<string>\",\n \"language\": \"en\",\n \"max_messages\": 5,\n \"reply_delay_seconds\": 0,\n \"conversation_timeout_hours\": 48,\n \"first_message\": \"<string>\",\n \"instructions\": \"<string>\",\n \"contact_name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lumisreach.com/api/v1/quick/ai-texts")
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 \"to_numbers\": [\n \"<string>\"\n ],\n \"goal\": \"<string>\",\n \"language\": \"en\",\n \"max_messages\": 5,\n \"reply_delay_seconds\": 0,\n \"conversation_timeout_hours\": 48,\n \"first_message\": \"<string>\",\n \"instructions\": \"<string>\",\n \"contact_name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "ai_text",
"status": "<string>",
"from_number": "<string>",
"target_count": 123,
"status_url": "<string>",
"pricing": {
"per_message_usd": 123,
"note": "<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>"
}
}{
"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
One or more destinations in E.164 format
1 - 20 elementsDestination in E.164 format
^\+[1-9]\d{1,14}$What the AI should accomplish over the thread. Drives the system prompt.
10 - 2000101 <= x <= 200 <= x <= 3001 <= x <= 1681 - 12004000120Response
Success
Show child attributes
Show child attributes