Check a call
curl --request POST \
--url https://www.lawtte.ai/api/v1/calls/check \
--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/check"
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/check', 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/check",
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/check"
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/check")
.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/check")
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{
"allowed": true,
"reason": "<string>",
"phone": "<string>",
"from_number": "<string>",
"objective": "<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
Check a call
Runs every rule POST /calls would — consent, represented parties, calling hours, Do Not Call, limits — and dials, reserves and records nothing.
Key permission: Read call history.
POST
/
calls
/
check
Check a call
curl --request POST \
--url https://www.lawtte.ai/api/v1/calls/check \
--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/check"
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/check', 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/check",
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/check"
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/check")
.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/check")
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{
"allowed": true,
"reason": "<string>",
"phone": "<string>",
"from_number": "<string>",
"objective": "<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

