Authentication

Every request authenticates with a PartnerKey header. One key represents one account, the API resolves your user from the key, so there's no separate login step.

curl "$BASE_URL/partner/me" -H "PartnerKey: $PARTNER_KEY"
{
  "id": "u_123",
  "firstName": "Jamie",
  "lastName": "Rivera",
  "email": "jamie@example.com",
  "agency": "Rivera Insurance Group",
  "companyId": "c_456",
  "enabledStates": ["WA", "OR", "ID"]
}

enabledStates is the list of state codes your account can file in. It covers the states Valley has open to every account plus any changes made for your account specifically, and it matches the states returned by /filing-states. /create-filing rejects a filing for any other state with 403 Forbidden.

Base URL

https://api.valleyinsllc.com/api/v1

Don't send both auth methods

Do not send a PartnerKey header and an Authorization: Bearer token on the same request. The API rejects that combination with 400 Bad Request, pick one method per request.

Keep your key secret

Read your key from an environment variable, never hardcode it, and never paste it into a chat prompt or commit it to source control.

Requesting a key: contact Gina Doyle at gina@valleyinsllc.com.