Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.case.dev/llms.txt

Use this file to discover all available pages before exploring further.

The problem: You have 50 hours of video depositions. You suspect the CEO contradicted the CTO on the breach timeline, but you can’t re-watch everything. The solution: Transcribe the audio, search by topic, and use AI to find contradictions.

1. Transcribe the depositions

curl -X POST https://api.case.dev/voice/transcription \
  -H "Authorization: Bearer $CASEDEV_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "audio_url": "https://your-storage.com/user-recording.mp4",
    "speaker_labels": true,
    "auto_chapters": true
  }'

2. Get the transcripts

# Get transcription result
curl "https://api.case.dev/voice/transcription/$JOB_ID" \
  -H "Authorization: Bearer $CASEDEV_API_KEY"
Store transcripts in a vault so your users can search across multiple recordings:
# Create vault
VAULT=$(curl -s -X POST https://api.case.dev/vault \
  -H "Authorization: Bearer $CASEDEV_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Audio Transcripts - User 12345"}')

VAULT_ID=$(echo $VAULT | jq -r '.id')

4. Find contradictions

Help your users extract insights from transcripts:
curl -X POST https://api.case.dev/llm/v1/chat/completions \
  -H "Authorization: Bearer $CASEDEV_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "anthropic/claude-sonnet-4.5",
    "messages": [
      {"role": "system", "content": "Summarize this transcript. Identify key points and action items."},
      {"role": "user", "content": "[TRANSCRIPT TEXT]"}
    ]
  }'
Example output: Build advanced features like contradiction detection for legal applications:
# Search for statements about a specific topic
casedev vault search \
  --id $VAULT_ID \
  --query "timeline of events on July 15th" \
  --top-k 10

# Use AI to identify contradictions (pipe search results)
casedev llm:v1:chat create-completion \
  --model anthropic/claude-sonnet-4.6 \
  --message '{"role":"system","content":"Analyze these statements and identify any contradictions. Cite specific quotes."}' \
  --message '{"role":"user","content":"<search results>"}'
Time saved: What used to take days of re-watching video now takes minutes. The AI finds contradictions you might have missed.