Skip to main content

Verify an Official Source

Use this workflow to confirm where a section is sourced from and how confidently it is linked.

1) Fetch section sources

curl "https://api.localcode.ai/v1/code-sections/{code_section_id}/sources" \
  -H "Authorization: Bearer {LOCALCODE_API_KEY}"

2) Evaluate each source entry

Review:
  • source_url
  • official_source_url
  • source_reference
  • source_verification_status
  • analysis_confidence
Interpretation note: source_url is the URL on the source record, while official_source_url is the canonical provenance URL when that canonical mapping is available. Treat source_verification_status=verified as a trust state; use analysis_confidence only as extraction or matching confidence.

3) Cross-check lineage context

curl "https://api.localcode.ai/v1/code-sections/{code_section_id}/legislative-chain" \
  -H "Authorization: Bearer {LOCALCODE_API_KEY}"
Use shared provenance fields to align section source and lineage evidence.