Get case by 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",
"metadata": {
"external_id": "case-123"
},
"owner_email": "jane.smith@example.com",
"interested_parties": [
"john.doe@example.com"
],
"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",
"request_id": "req_0c1f1f1cd1c84e2f8d4b6a2e9f3b7a11",
"param": "patient.date_of_birth",
"doc_url": "https://docs.tavrn.ai/guides/v2/errors#validation_error"
}
}{
"error": {
"code": "internal_error",
"message": "Internal server error",
"request_id": "req_0c1f1f1cd1c84e2f8d4b6a2e9f3b7a11",
"doc_url": "https://docs.tavrn.ai/guides/v2/errors#internal_error"
}
}Cases
Get case by ID
Retrieve a specific case by its ID
GET
/
v2
/
cases
/
{case_id}
Get case by 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",
"metadata": {
"external_id": "case-123"
},
"owner_email": "jane.smith@example.com",
"interested_parties": [
"john.doe@example.com"
],
"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",
"request_id": "req_0c1f1f1cd1c84e2f8d4b6a2e9f3b7a11",
"param": "patient.date_of_birth",
"doc_url": "https://docs.tavrn.ai/guides/v2/errors#validation_error"
}
}{
"error": {
"code": "internal_error",
"message": "Internal server error",
"request_id": "req_0c1f1f1cd1c84e2f8d4b6a2e9f3b7a11",
"doc_url": "https://docs.tavrn.ai/guides/v2/errors#internal_error"
}
}Authorizations
API key authentication. Use format: Authorization: Bearer tavrn_sk_live_... Live keys (tavrn_sk_live_...) work only against https://enterprise.tavrn.ai; sandbox test keys (tavrn_sk_test_..., from https://sandbox.tavrn.ai) work only against https://sandbox.tavrn.ai.
Headers
Response
Successful response