Get State HSA Tax Guide: GET /api/v1/states/{slug}

For AI agents: this page is also Markdown at /developers/get-state-guide.md. Every docs page is listed in /developers/llms.txt.

Retrieve state-specific HSA tax information.

GET /api/v1/states/{slug}

Use 'all' as slug to get full list of all states.

Parameters

NameInRequiredDefaultDescription
slugpathyesState slug in lowercase (e.g., 'california', 'texas') or 'all' for full list

Example request

curl "https://www.hsatrackr.com/api/v1/states/california"

Example response

A real response from the live handler.

{
  "data": {
    "slug": "california",
    "name": "California",
    "abbreviation": "CA",
    "taxTreatment": "none",
    "incomeTaxRate": "1%–13.3%",
    "hasStateTax": true,
    "summary": "California does NOT recognize HSA tax benefits. Contributions are taxed, and investment gains are taxable income.",
    "details": "California does not conform to federal HSA tax treatment. HSA contributions are not deductible on your California state tax return. Investment earnings within the HSA are subject to California income tax and must be reported annually. Qualified withdrawals for medical expenses are still tax-free at the federal level, but you've already been taxed on the contributions and earnings at the state level. California treats HSAs similarly to regular investment accounts for state tax purposes.",
    "notes": "California residents should track HSA investment gains for state tax reporting. Consider the state tax impact when deciding contribution amounts."
  },
  "meta": {
    "source": "https://www.hsatrackr.com/states/california",
    "citation_url": "https://www.hsatrackr.com/states/california",
    "updated": "2026-01-01",
    "disclaimer": "This information is for educational purposes only and does not constitute tax, legal, or financial advice. Consult a qualified professional for your specific situation.",
    "api_docs": "https://www.hsatrackr.com/api/v1"
  }
}

Response fields

Every response is { data, meta }. meta.citation_url is the public page to cite.

When the response is: state

FieldTypeAlways present
slugstringyes
namestringyes
abbreviationstringyes
taxTreatmentstringyes
incomeTaxRatestringyes
hasStateTaxbooleanyes
summarystringyes
detailsstringyes
notesstring or nullyes

When the response is: all states (slug=all)

FieldTypeAlways present
statesobject[]yes
totalintegeryes

Errors

StatusMeaning
404Resource not found
429Rate limit exceeded (30 requests per minute per IP)

Full contract: openapi.json. All endpoints: API overview.