Valley Insurance Partner API
The Partner API lets your systems price surplus-lines insurance and submit filings to Valley Insurance without a human in the loop.
Two terms come up throughout these docs:
- Surplus lines: insurance placed with a carrier that isn't licensed in the insured's state, used when the standard (admitted) market won't cover a risk. States require this coverage to be reported and taxed through a filing.
- Filing: the paperwork you submit to Valley Insurance after a policy is bound, so we can report it to the state and collect the required taxes and fees.
Every request goes to https://api.valleyinsllc.com/api/v1 and carries a
PartnerKey header. See Authentication for details.
The two jobs
Almost everything a partner does falls into one of two tasks:
- Just need a number to quote a client, before anything is bound? Go to Price a policy. One call, no documents required.
- Ready to submit a bound policy? Go to Submit a filing. It covers finding the right state, uploading documents, creating the filing, and tracking its status.
- Need to know what a state requires or what it charges before you quote a client? See State pricing and requirements.
The filing lifecycle
A filing moves through five stages once you decide to submit one:
- Price it. Call
POST /partner/calculatewith the filing type, state, and premium to get the filing fee, tax, and total. See Price a policy for the full request and response. - Look up the state's required documents. Call
GET /partner/filing-statesand readdescriptionNb/descriptionEd, an HTML requirements checklist, andfilesNb/filesEd, the list of documents to gather, for whichever pair matches yourfilingType. Full breakdown in State pricing and requirements. You can only file in the states listed inenabledStatesonGET /partner/me; contact gina@valleyinsllc.com to request access to others. - Upload each document. Call
POST /partner/upload-user-fileto get a signed URL, thenPUTthe file bytes to it. Covered in Submit a filing, step 2. - Create the filing. Call
POST /partner/create-filingwith the policy details and the uploaded files' paths. This returns the filing record. See Submit a filing, step 3. - Track it. Call
GET /partner/{id}any time to check the filing'sstatus. Lost the id?GET /partner/filingslists your own filings, paginated. See Submit a filing, step 4.
Full walkthrough with request and response bodies: Submit a filing. Want to run the whole thing without writing any code? See Run the whole flow below.
Run the whole flow (one script)
Prefer to see it work before you write any code? Download a single self-contained script that runs every step above against the real API and prints friendly output along the way: fetch your account, price a policy, look up a state's requirements, upload a document, create a filing, and track it. Pick whichever you have available, Node or a shell.
Download try-valley-partner-api.mjs
Download try-valley-partner-api.sh
Running this script creates a real filing in your account, it isn't a dry
run or a sandbox. It uses obvious TEST values (a policy number prefixed
TEST- and an insured name prefixed TEST -), so you can find it
afterward and delete it if you don't want to keep it.
See it referenced again in context in Submit a filing.
What's next
- Authentication: get and use your
PartnerKey. - Price a policy: the fast path to a quote.
- Submit a filing: end-to-end filing walkthrough.
- Run the whole flow: a downloadable script that runs the entire flow for you.
- State pricing and requirements: look up a state's cost and required documents before you file.
- Build with AI: point a coding assistant at the OpenAPI spec.
- API Reference: full schema for every endpoint.
Need a key? Contact Gina Doyle at gina@valleyinsllc.com.