Neut Widget Customer Reference

Use this reference after the quickstart is working. It lists supported widget IDs, query variables, subject values, status filters, colorways, and bootstrap URL parameters.

Widget IDs And Paths

Widget widget_id Hosted path
Bill Preview bill-preview /bill-preview-embed.html
Vote Breakdown vote-breakdown /vote-breakdown-embed.html
Legislation By Subject legislation-by-subject /legislation-by-subject-embed.html

The production widget origin is https://widgets.neut.us.

Common Variables

Variable Type Required Notes
widget_id string Yes Must match one supported widget ID.
instance_id string Yes Unique per placement. Use letters, numbers, dot, underscore, colon, or hyphen. Max 128 characters.
article_id string No Useful for customer analytics or tracing.
colorway string No Defaults to Default.

Do not include tenant_id in the browser payload. The customer backend reads it from server configuration.

Widget Variables

Bill Preview

Variable Type Required Example Notes
bill_typestringYesHRUsually uppercase.
bill_numberintegerYes1Positive bill number.
congressintegerYes119Only the current Congress (119th) is currently supported.
temp_text_urlstringNoHTTPS URLFallback bill text URL for same-day coverage.
temp_titlestringNoSample Bill TitleFallback title for same-day coverage.

Vote Breakdown

Variable Type Required Example Notes
member_typestringYesRepresentativeMust be Representative or Senator.
last_namestringYesLofgrenMember last name.
state_codestringYesCATwo-letter state code.
districtintegerHouse only18Use for House members. Omit for senators.
congressintegerYes119Only the current Congress (119th) is currently supported.
pageintegerNo1Defaults to 1.
limitintegerNo5Defaults to 10.

Legislation By Subject

Variable Type Required Example Notes
member_typestringYesRepresentativeMust be Representative or Senator.
last_namestringYesLofgrenMember last name.
state_codestringYesCATwo-letter state code.
districtintegerHouse only18Use for House members. Omit for senators.
congressintegerYes119Only the current Congress (119th) is currently supported.
subjectstringYesHealth & Social WelfareMust match a supported subject.
status_filterstringNoAllDefaults to All.
show_subject_filterbooleanNofalseDefaults to true if omitted by the final iframe URL.
show_status_filterbooleanNofalseDefaults to true if omitted by the final iframe URL.

Supported Values

Subjects

  • Animals & Agriculture
  • Business & Trade
  • Crime
  • Culture and Society
  • Education
  • Energy & Conservation
  • Finance & Taxes
  • Geopolitics
  • Government Operations
  • Health & Social Welfare
  • Human, Civil, & Immigration Rights
  • Infrastructure & Housing
  • Labor & Employment
  • National Security & International Affairs
  • STEM

Status Filters

  • All
  • Introduced
  • With First Chamber
  • With Second Chamber
  • Presented to President
  • Became Law
  • Vetoed by President
  • Passed Resolutions

Colorways

  • Default
  • Dark
  • Paper
  • WashedSage
  • Slate
  • MonoLight

Bootstrap URL Parameters

Query parameter Source Notes
tenant_idServer configWIDGET_TENANT_ID.
widget_idValidated requestMust match the hosted path.
customer_originServer configHOST_ORIGIN; scheme and host only.
bootstrap_timestampServer generatedBase-10 Unix timestamp in whole seconds.
bootstrap_nonceServer generatedFresh random nonce for each embed URL.
bootstrap_key_idServer configNEUT_MINT_KEY_ID.
bootstrap_assertionServer generatedHMAC assertion signed with NEUT_MINT_SECRET.

The hosted widget exchanges these bootstrap parameters with Neut. Do not put legacy access token, origin, timestamp, nonce, key ID, or signature params in the iframe URL.