curl --request GET \
--url https://enterprise.tavrn.ai/v2/cases/{case_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://enterprise.tavrn.ai/v2/cases/{case_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://enterprise.tavrn.ai/v2/cases/{case_id}', 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://enterprise.tavrn.ai/v2/cases/{case_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://enterprise.tavrn.ai/v2/cases/{case_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://enterprise.tavrn.ai/v2/cases/{case_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://enterprise.tavrn.ai/v2/cases/{case_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "case_abc123",
"case_number": "EI-2025-0001",
"title": "Jane Doe v. ACME Corp",
"client_name": "Jane Doe",
"case_category": "personal_injury",
"status": "active",
"created_at": "2025-02-01T12:34:56Z",
"updated_at": "2025-02-01T12:34:56Z",
"description": "Rear-end MVA with cervical injury",
"client_date_of_birth": "1989-04-12",
"client_address": "123 Main St, Austin, TX 78701",
"client_phone": "+1-512-555-0101",
"client_email": "jane@example.com",
"date_of_injury": "2025-01-10",
"deposition_date": "2025-06-15",
"external_id": "expert-institute-12345"
}{
"error": {
"code": "validation_error",
"message": "The patient.date_of_birth field is required"
}
}Get case by ID
Retrieve a specific case by its ID
curl --request GET \
--url https://enterprise.tavrn.ai/v2/cases/{case_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://enterprise.tavrn.ai/v2/cases/{case_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://enterprise.tavrn.ai/v2/cases/{case_id}', 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://enterprise.tavrn.ai/v2/cases/{case_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://enterprise.tavrn.ai/v2/cases/{case_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://enterprise.tavrn.ai/v2/cases/{case_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://enterprise.tavrn.ai/v2/cases/{case_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "case_abc123",
"case_number": "EI-2025-0001",
"title": "Jane Doe v. ACME Corp",
"client_name": "Jane Doe",
"case_category": "personal_injury",
"status": "active",
"created_at": "2025-02-01T12:34:56Z",
"updated_at": "2025-02-01T12:34:56Z",
"description": "Rear-end MVA with cervical injury",
"client_date_of_birth": "1989-04-12",
"client_address": "123 Main St, Austin, TX 78701",
"client_phone": "+1-512-555-0101",
"client_email": "jane@example.com",
"date_of_injury": "2025-01-10",
"deposition_date": "2025-06-15",
"external_id": "expert-institute-12345"
}{
"error": {
"code": "validation_error",
"message": "The patient.date_of_birth field is required"
}
}Authorizations
API key authentication. Use format: Authorization: Bearer tavrn_sk_live_...
Path Parameters
Case ID
Response
Successful response
Unique case identifier
"case_abc123"
Auto-generated case number
"EI-2025-0001"
Case title
"Jane Doe v. ACME Corp"
Client's name
"Jane Doe"
Case category
personal_injury, motor_vehicle_accident, medical_malpractice, workers_compensation, product_liability, premises_liability, wrongful_death, other "personal_injury"
Case status
active, pending, closed, archived "active"
Creation timestamp (ISO 8601)
"2025-02-01T12:34:56Z"
Last update timestamp (ISO 8601)
"2025-02-01T12:34:56Z"
Case description
"Rear-end MVA with cervical injury"
Client's date of birth (YYYY-MM-DD)
"1989-04-12"
Client's address
"123 Main St, Austin, TX 78701"
Client's phone number
"+1-512-555-0101"
Client's email address
"jane@example.com"
Date of injury (YYYY-MM-DD)
"2025-01-10"
Deposition date (YYYY-MM-DD)
"2025-06-15"
External identifier for client mapping
"expert-institute-12345"