API: cockpit
GET /api/v1/contracts/{guid}/cockpit
Section titled “GET /api/v1/contracts/{guid}/cockpit”Get Cockpit
Live cockpit snapshot for a SalesContract (empty contract → all zeros).
Auth: Authorization: Bearer <token> required
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
guid | path | yes | integer |
Responses:
| Code | Meaning | Body |
|---|---|---|
200 | Successful Response | CockpitResponse |
401 | Missing or invalid authentication credentials | ErrorResponse |
422 | Validation Error | HTTPValidationError |
GET /api/v1/contracts/{guid}/heatmap
Section titled “GET /api/v1/contracts/{guid}/heatmap”Get Heatmap
Generate per-step distribution from the SC’s in-flight generate run_steps.
Auth: Authorization: Bearer <token> required
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
guid | path | yes | integer |
Responses:
| Code | Meaning | Body |
|---|---|---|
200 | Successful Response | object |
401 | Missing or invalid authentication credentials | ErrorResponse |
422 | Validation Error | HTTPValidationError |
GET /api/v1/contracts/{guid}/published-articles
Section titled “GET /api/v1/contracts/{guid}/published-articles”Get Published Articles
Published articles (live URL set) for a contract — title, link, word count.
Auth: Authorization: Bearer <token> required
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
guid | path | yes | integer |
Responses:
| Code | Meaning | Body |
|---|---|---|
200 | Successful Response | array of PublishedArticle |
401 | Missing or invalid authentication credentials | ErrorResponse |
422 | Validation Error | HTTPValidationError |
GET /api/v1/contracts/{guid}/timeline
Section titled “GET /api/v1/contracts/{guid}/timeline”Get Timeline
24h per-pipeline Gantt strip from the SC’s last-24h pipeline_run rows.
Auth: Authorization: Bearer <token> required
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
guid | path | yes | integer | |
window | query | no | string |
Responses:
| Code | Meaning | Body |
|---|---|---|
200 | Successful Response | object |
401 | Missing or invalid authentication credentials | ErrorResponse |
422 | Validation Error | HTTPValidationError |