Place a call
curl --request POST \
--url https://www.lawtte.ai/api/v1/calls \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Jane Doe",
"phone": "+12125550100",
"recipient_type": "client",
"consent_confirmed": true,
"represented_by_counsel": false,
"objective": "Confirm Jane received the settlement paperwork."
}
'import requests
url = "https://www.lawtte.ai/api/v1/calls"
payload = {
"name": "Jane Doe",
"phone": "+12125550100",
"recipient_type": "client",
"consent_confirmed": True,
"represented_by_counsel": False,
"objective": "Confirm Jane received the settlement paperwork."
}
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({
name: 'Jane Doe',
phone: '+12125550100',
recipient_type: 'client',
consent_confirmed: true,
represented_by_counsel: false,
objective: 'Confirm Jane received the settlement paperwork.'
})
};
fetch('https://www.lawtte.ai/api/v1/calls', 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://www.lawtte.ai/api/v1/calls",
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([
'name' => 'Jane Doe',
'phone' => '+12125550100',
'recipient_type' => 'client',
'consent_confirmed' => true,
'represented_by_counsel' => false,
'objective' => 'Confirm Jane received the settlement paperwork.'
]),
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://www.lawtte.ai/api/v1/calls"
payload := strings.NewReader("{\n \"name\": \"Jane Doe\",\n \"phone\": \"+12125550100\",\n \"recipient_type\": \"client\",\n \"consent_confirmed\": true,\n \"represented_by_counsel\": false,\n \"objective\": \"Confirm Jane received the settlement paperwork.\"\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://www.lawtte.ai/api/v1/calls")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Jane Doe\",\n \"phone\": \"+12125550100\",\n \"recipient_type\": \"client\",\n \"consent_confirmed\": true,\n \"represented_by_counsel\": false,\n \"objective\": \"Confirm Jane received the settlement paperwork.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.lawtte.ai/api/v1/calls")
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 \"name\": \"Jane Doe\",\n \"phone\": \"+12125550100\",\n \"recipient_type\": \"client\",\n \"consent_confirmed\": true,\n \"represented_by_counsel\": false,\n \"objective\": \"Confirm Jane received the settlement paperwork.\"\n}"
response = http.request(request)
puts response.read_body{
"call_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "dialing",
"message": "<string>",
"objective": "<string>",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_name": "<string>",
"trial_calls_remaining": 123
}{
"error": {
"code": "unauthorized",
"message": "<string>"
}
}{
"error": {
"code": "unauthorized",
"message": "<string>"
}
}{
"error": {
"code": "unauthorized",
"message": "<string>"
}
}{
"error": {
"code": "unauthorized",
"message": "<string>"
}
}{
"error": {
"code": "unauthorized",
"message": "<string>"
}
}{
"error": {
"code": "unauthorized",
"message": "<string>"
}
}Calls
Place a call
Dials one real person with an objective, or runs a saved outbound agent. It can’t be undone once dialing starts. Calls go out only 8am–9pm in both the recipient’s and the firm’s time zones, at most 50 per firm per day and one per number every two hours, never to numbers on the Do Not Call list. Try POST /calls/check first.
Key permission: Read history and place calls.
POST
/
calls
Place a call
curl --request POST \
--url https://www.lawtte.ai/api/v1/calls \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Jane Doe",
"phone": "+12125550100",
"recipient_type": "client",
"consent_confirmed": true,
"represented_by_counsel": false,
"objective": "Confirm Jane received the settlement paperwork."
}
'import requests
url = "https://www.lawtte.ai/api/v1/calls"
payload = {
"name": "Jane Doe",
"phone": "+12125550100",
"recipient_type": "client",
"consent_confirmed": True,
"represented_by_counsel": False,
"objective": "Confirm Jane received the settlement paperwork."
}
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({
name: 'Jane Doe',
phone: '+12125550100',
recipient_type: 'client',
consent_confirmed: true,
represented_by_counsel: false,
objective: 'Confirm Jane received the settlement paperwork.'
})
};
fetch('https://www.lawtte.ai/api/v1/calls', 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://www.lawtte.ai/api/v1/calls",
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([
'name' => 'Jane Doe',
'phone' => '+12125550100',
'recipient_type' => 'client',
'consent_confirmed' => true,
'represented_by_counsel' => false,
'objective' => 'Confirm Jane received the settlement paperwork.'
]),
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://www.lawtte.ai/api/v1/calls"
payload := strings.NewReader("{\n \"name\": \"Jane Doe\",\n \"phone\": \"+12125550100\",\n \"recipient_type\": \"client\",\n \"consent_confirmed\": true,\n \"represented_by_counsel\": false,\n \"objective\": \"Confirm Jane received the settlement paperwork.\"\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://www.lawtte.ai/api/v1/calls")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Jane Doe\",\n \"phone\": \"+12125550100\",\n \"recipient_type\": \"client\",\n \"consent_confirmed\": true,\n \"represented_by_counsel\": false,\n \"objective\": \"Confirm Jane received the settlement paperwork.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.lawtte.ai/api/v1/calls")
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 \"name\": \"Jane Doe\",\n \"phone\": \"+12125550100\",\n \"recipient_type\": \"client\",\n \"consent_confirmed\": true,\n \"represented_by_counsel\": false,\n \"objective\": \"Confirm Jane received the settlement paperwork.\"\n}"
response = http.request(request)
puts response.read_body{
"call_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "dialing",
"message": "<string>",
"objective": "<string>",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_name": "<string>",
"trial_calls_remaining": 123
}{
"error": {
"code": "unauthorized",
"message": "<string>"
}
}{
"error": {
"code": "unauthorized",
"message": "<string>"
}
}{
"error": {
"code": "unauthorized",
"message": "<string>"
}
}{
"error": {
"code": "unauthorized",
"message": "<string>"
}
}{
"error": {
"code": "unauthorized",
"message": "<string>"
}
}{
"error": {
"code": "unauthorized",
"message": "<string>"
}
}Authorizations
Body
application/json

