Skip to main content
POST
/
api
/
v1
/
contracts
/
analyze
Analyze Contract
curl --request POST \
  --url https://api.example.com/api/v1/contracts/analyze \
  --header 'Content-Type: application/json' \
  --data '
{
  "s3_key": "<string>"
}
'
{
  "facility": "Memorial Hospital",
  "location": "Houston",
  "state": "TX",
  "agency": "TravelNurse Inc",
  "start_date": "2025-01-06",
  "end_date": "2025-04-06",
  "base_pay": 180000,
  "housing_stipend": 175000,
  "mie_stipend": 54600,
  "sign_on_bonus": 0,
  "completion_bonus": 100000,
  "referral_bonus": 0
}
Sends an uploaded contract to Claude AI for structured extraction of assignment fields. Claude automatically converts hourly/daily/monthly rates to weekly cents.

Request Body

s3_key
string
required
S3 key of the previously uploaded contract file.

Response

{
  "facility": "Memorial Hospital",
  "location": "Houston",
  "state": "TX",
  "agency": "TravelNurse Inc",
  "start_date": "2025-01-06",
  "end_date": "2025-04-06",
  "base_pay": 180000,
  "housing_stipend": 175000,
  "mie_stipend": 54600,
  "sign_on_bonus": 0,
  "completion_bonus": 100000,
  "referral_bonus": 0
}
All monetary values are returned in cents. Fields that couldn’t be extracted are null.

Rate Conversion Rules

Claude applies these conversions automatically:
  • Hourly → weekly: × 36 hours
  • Daily → weekly: × 7 days
  • Monthly → weekly: ÷ 4.33
  • Dollar amounts → cents: × 100

Errors

StatusCause
400Missing s3_key
422Claude could not parse the contract
503Anthropic API key not configured