{"openapi":"3.1.0","info":{"title":"CarrierKYC agent API","version":"1.0.0","description":"Check US motor carriers against public FMCSA records, watch them for changes and buy credits, with an API key. MCP server: https://carrierkyc.com/mcp"},"servers":[{"url":"https://carrierkyc.com/api/v1"}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"ckyc_live_… API key"}}},"security":[{"bearer":[]}],"paths":{"/signup":{"post":{"summary":"Create an account. Returns an API key (shown once) and 3 free credits. The email's owner gets a link to claim the account.","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email"],"properties":{"email":{"type":"string","description":"Email of the person responsible for the account"},"company":{"type":"string","description":"Company name"}}}}}},"responses":{"default":{"description":"JSON. Errors are { error: { code, message } }; 402 payment_required carries error.payment with packs and ways to pay.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/me":{"get":{"summary":"Account, credit balance with each grant's expiry, recent usage and claim status.","responses":{"default":{"description":"JSON. Errors are { error: { code, message } }; 402 payment_required carries error.payment with packs and ways to pay.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/claim":{"post":{"summary":"Email the account's owner a fresh claim link (at most 3 a day).","responses":{"default":{"description":"JSON. Errors are { error: { code, message } }; 402 payment_required carries error.payment with packs and ways to pay.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/usage":{"get":{"summary":"Credit usage, newest first.","parameters":[{"name":"limit","in":"query","required":false,"description":"1 to 200, default 50","schema":{"type":"string"}}],"responses":{"default":{"description":"JSON. Errors are { error: { code, message } }; 402 payment_required carries error.payment with packs and ways to pay.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/carriers/{usdot}":{"get":{"summary":"Check a carrier by USDOT number: FMCSA record, risk band, signals with sources, contact data. 1 credit when found; not-found and partial checks are free.","parameters":[{"name":"usdot","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"JSON. Errors are { error: { code, message } }; 402 payment_required carries error.payment with packs and ways to pay.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/carriers/mc/{mc}":{"get":{"summary":"Check a carrier by MC number (with or without the MC prefix). Same result and price as by USDOT.","parameters":[{"name":"mc","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"JSON. Errors are { error: { code, message } }; 402 payment_required carries error.payment with packs and ways to pay.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/carriers/batch":{"post":{"summary":"Check up to 100 carriers. The balance must cover every number first; only carriers found with complete data are charged.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"usdots":{"type":"array","items":{"type":"string"},"description":"USDOT numbers"},"mcs":{"type":"array","items":{"type":"string"},"description":"MC numbers"}}}}}},"responses":{"default":{"description":"JSON. Errors are { error: { code, message } }; 402 payment_required carries error.payment with packs and ways to pay.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/watchlist":{"get":{"summary":"Watched carriers with status, band, paid-through date and last check.","responses":{"default":{"description":"JSON. Errors are { error: { code, message } }; 402 payment_required carries error.payment with packs and ways to pay.","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"summary":"Watch a carrier for changes: 1 credit per 30 days, renewed automatically while credits last.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"usdot":{"type":"string","description":"USDOT number (or send mc)"},"mc":{"type":"string","description":"MC number (or send usdot)"},"label":{"type":"string","description":"Your own note, e.g. a load reference"},"auto_renew":{"type":"boolean","description":"Renew every 30 days for 1 credit (default true)"}}}}}},"responses":{"default":{"description":"JSON. Errors are { error: { code, message } }; 402 payment_required carries error.payment with packs and ways to pay.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/watchlist/changes":{"get":{"summary":"Changes on watched carriers. Without since, newest first. With since, oldest first: call again with since set to the response's latest while has_more is true. A change is listed 2 minutes after it is detected.","parameters":[{"name":"since","in":"query","required":false,"description":"ISO 8601; only changes detected after it (pass the previous response's latest)","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1 to 500, default 100","schema":{"type":"string"}}],"responses":{"default":{"description":"JSON. Errors are { error: { code, message } }; 402 payment_required carries error.payment with packs and ways to pay.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/watchlist/settings":{"put":{"summary":"Turn the email digest of changes on or off.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email_alerts"],"properties":{"email_alerts":{"type":"boolean","description":"true or false"}}}}}},"responses":{"default":{"description":"JSON. Errors are { error: { code, message } }; 402 payment_required carries error.payment with packs and ways to pay.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/watchlist/{usdot}":{"delete":{"summary":"Stop watching a carrier. No refund for the rest of the period.","parameters":[{"name":"usdot","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"JSON. Errors are { error: { code, message } }; 402 payment_required carries error.payment with packs and ways to pay.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/billing":{"get":{"summary":"Balance, credit packs and the ways to pay that are switched on.","responses":{"default":{"description":"JSON. Errors are { error: { code, message } }; 402 payment_required carries error.payment with packs and ways to pay.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/billing/checkout":{"post":{"summary":"A Stripe Checkout link for a person to buy a pack by card.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["pack"],"properties":{"pack":{"type":"string","description":"starter, growth or scale"}}}}}},"responses":{"default":{"description":"JSON. Errors are { error: { code, message } }; 402 payment_required carries error.payment with packs and ways to pay.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/billing/stripe-pay":{"post":{"summary":"Redeem a `stripe pay` transfer for credits at the starter rate.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["transfer_id"],"properties":{"transfer_id":{"type":"string","description":"The id stripe pay printed"}}}}}},"responses":{"default":{"description":"JSON. Errors are { error: { code, message } }; 402 payment_required carries error.payment with packs and ways to pay.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/accounts/{account_id}/pay":{"post":{"summary":"Machine Payments Protocol: answers 402 with a challenge for the pack in ?pack=; an MPP client pays and retries. No API key.","security":[],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string"}},{"name":"pack","in":"query","required":false,"description":"starter, growth or scale","schema":{"type":"string"}}],"responses":{"default":{"description":"JSON. Errors are { error: { code, message } }; 402 payment_required carries error.payment with packs and ways to pay.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/keys":{"get":{"summary":"API keys on the account.","responses":{"default":{"description":"JSON. Errors are { error: { code, message } }; 402 payment_required carries error.payment with packs and ways to pay.","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"summary":"Create an API key (shown once).","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"A label for the key"}}}}}},"responses":{"default":{"description":"JSON. Errors are { error: { code, message } }; 402 payment_required carries error.payment with packs and ways to pay.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/keys/{key_id}":{"delete":{"summary":"Revoke a key. The last active key can't be revoked.","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"JSON. Errors are { error: { code, message } }; 402 payment_required carries error.payment with packs and ways to pay.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/tools/factoring-cost":{"post":{"summary":"Factoring cost calculator: fee, advance, reserve, net to carrier and APR for one invoice. Free.","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["invoice","advance_pct","days_to_pay","fee"],"properties":{"invoice":{"type":"number","description":"Invoice face value, $"},"advance_pct":{"type":"number","description":"Advance rate, %"},"days_to_pay":{"type":"number","description":"Days until the debtor pays"},"fee":{"type":"object","description":"{kind: flat, fee_pct} or {kind: tiered, tiers: [{up_to_days, fee_pct}], increment?: {every_days, add_pct}}"}}}}}},"responses":{"default":{"description":"JSON. Errors are { error: { code, message } }; 402 payment_required carries error.payment with packs and ways to pay.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/tools/noa":{"post":{"summary":"Draft a notice of assignment or letter of release, with placeholders for missing fields. A template, not legal advice. Free.","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["doc"],"properties":{"doc":{"type":"string","description":"noa or release"},"factor":{"type":"object","description":"{name, address, phone?, email?, signer_name?, signer_title?}"},"carrier":{"type":"object","description":"{legal_name, dba?, usdot?, mc?, address?}"},"debtor":{"type":"object","description":"{name, attention?, address?}"}}}}}},"responses":{"default":{"description":"JSON. Errors are { error: { code, message } }; 402 payment_required carries error.payment with packs and ways to pay.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/tools/remit-change-checklist":{"get":{"summary":"Verification steps and red flags for a carrier's payment-change request. Free.","security":[],"responses":{"default":{"description":"JSON. Errors are { error: { code, message } }; 402 payment_required carries error.payment with packs and ways to pay.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/tools/ucc-search/{state}":{"get":{"summary":"A state's UCC filing office, online search URL, fees and notes. Free.","security":[],"parameters":[{"name":"state","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"JSON. Errors are { error: { code, message } }; 402 payment_required carries error.payment with packs and ways to pay.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/report/latest":{"get":{"summary":"The latest monthly Freight Identity Risk Report: headline numbers, markdown and CSV link. Free.","security":[],"responses":{"default":{"description":"JSON. Errors are { error: { code, message } }; 402 payment_required carries error.payment with packs and ways to pay.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/report/states/{state}":{"get":{"summary":"One state's page of the report, as markdown. Free.","security":[],"parameters":[{"name":"state","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"default":{"description":"JSON. Errors are { error: { code, message } }; 402 payment_required carries error.payment with packs and ways to pay.","content":{"application/json":{"schema":{"type":"object"}}}}}}}}}