Skip to content

Contract Intelligence Admin

Contract intelligence queue, schedule, registry summary, and materialization APIs.

Owner: Contract intelligence backend

Source Modules

  • scripts/serve_client_portal.py
  • LeafEnterprise/contract_intelligence/

Endpoint Summary

Method Path Summary Auth Handler
POST /api/contract-intelligence/queue-job Queues a contract-intelligence upkeep job. trusted frontend proxy _handle_contract_intelligence_queue_job
GET /api/contract-intelligence/queue-status Returns contract-intelligence queue status. trusted frontend proxy _handle_contract_intelligence_queue_status
GET /api/contract-intelligence/registry-summary Returns contract registry summary and posture. trusted frontend proxy _handle_contract_intelligence_registry_summary
GET /api/contract-intelligence/schedules Lists contract-intelligence recurring schedules. trusted frontend proxy _handle_contract_intelligence_schedules
POST /api/contract-intelligence/schedules/materialize Materializes contract-intelligence schedules into queued jobs. trusted frontend proxy _handle_contract_intelligence_schedule_materialize

Endpoint Details

POST /api/contract-intelligence/queue-job

Queues a contract-intelligence upkeep job.

Property Value
Handler _handle_contract_intelligence_queue_job
Auth trusted frontend proxy
Cache none
Status codes 200, 202, 400, 401, 500

Query parameters: none

Body fields: action, scope, metadata

Response sections: status, job

Tests / smoke paths: scripts/smoke_client_portal.py

Notes: Supported jobs include registry sync, normalization, and corpus operationalization.

Semantic Retrieval Hints

  • Stable endpoint id: POST /api/contract-intelligence/queue-job
  • Route family: contract-intelligence
  • Source handler: _handle_contract_intelligence_queue_job
  • Secrets and raw source URLs must remain backend-only unless this endpoint explicitly documents otherwise.

GET /api/contract-intelligence/queue-status

Returns contract-intelligence queue status.

Property Value
Handler _handle_contract_intelligence_queue_status
Auth trusted frontend proxy
Cache none
Status codes 200, 401, 500

Query parameters: none

Body fields: none

Response sections: queue, jobs

Tests / smoke paths: scripts/smoke_client_portal.py

Notes: Contract intelligence queue is a targeted registry path, not broad platform SQL cutover.

Semantic Retrieval Hints

  • Stable endpoint id: GET /api/contract-intelligence/queue-status
  • Route family: contract-intelligence
  • Source handler: _handle_contract_intelligence_queue_status
  • Secrets and raw source URLs must remain backend-only unless this endpoint explicitly documents otherwise.

GET /api/contract-intelligence/registry-summary

Returns contract registry summary and posture.

Property Value
Handler _handle_contract_intelligence_registry_summary
Auth trusted frontend proxy
Cache none
Status codes 200, 401, 500

Query parameters: none

Body fields: none

Response sections: registry, counts, coverage

Tests / smoke paths: scripts/smoke_client_portal.py

Notes: Registry is governed evidence, not raw file browsing.

Semantic Retrieval Hints

  • Stable endpoint id: GET /api/contract-intelligence/registry-summary
  • Route family: contract-intelligence
  • Source handler: _handle_contract_intelligence_registry_summary
  • Secrets and raw source URLs must remain backend-only unless this endpoint explicitly documents otherwise.

GET /api/contract-intelligence/schedules

Lists contract-intelligence recurring schedules.

Property Value
Handler _handle_contract_intelligence_schedules
Auth trusted frontend proxy
Cache none
Status codes 200, 401, 500

Query parameters: none

Body fields: none

Response sections: schedules

Tests / smoke paths: scripts/smoke_client_portal.py

Notes: Used by internal contract-ops UI.

Semantic Retrieval Hints

  • Stable endpoint id: GET /api/contract-intelligence/schedules
  • Route family: contract-intelligence
  • Source handler: _handle_contract_intelligence_schedules
  • Secrets and raw source URLs must remain backend-only unless this endpoint explicitly documents otherwise.

POST /api/contract-intelligence/schedules/materialize

Materializes contract-intelligence schedules into queued jobs.

Property Value
Handler _handle_contract_intelligence_schedule_materialize
Auth trusted frontend proxy
Cache none
Status codes 200, 202, 400, 401, 500

Query parameters: none

Body fields: schedule_id, dry_run

Response sections: status, materialized_jobs, preview

Tests / smoke paths: scripts/smoke_client_portal.py

Notes: Use dry-run before schedule mutation where possible.

Semantic Retrieval Hints

  • Stable endpoint id: POST /api/contract-intelligence/schedules/materialize
  • Route family: contract-intelligence
  • Source handler: _handle_contract_intelligence_schedule_materialize
  • Secrets and raw source URLs must remain backend-only unless this endpoint explicitly documents otherwise.