Management API reference
Kindred Management API, API version /v1. This page is the service's own OpenAPI document (GET /v1/openapi.json) laid out as text; the service has no interactive pages. Every route needs a bearer token whose scope covers it. How the service runs, what it does and does not do, and how tokens are issued are in the operations guide.
Everything on this page is covered by the stability policy except the descriptive text.
Routes
GET /v1/status
Running and staged config, restart_required, license state.
Required scope: read.
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: Status |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
GET /v1/activity-log
Activity Log entries, filtered and paged by cursor.
Required scope: read.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
node_type |
query | string | null |
no | |
node_instance_id |
query | string | null |
no | |
reference_id |
query | string | null |
no | |
reference_ids_key |
query | string | null |
no | |
task_type |
query | string | null |
no | |
start |
query | string (date-time) | null |
no | Entries at or after this instant. |
end |
query | string (date-time) | null |
no | Entries before this instant. |
limit |
query | integer (min 1, max 1000) |
no | Entries per page. Default: 100. |
cursor |
query | string (max length 512) | null |
no | The previous page's next_cursor; repeat the same filters with it. |
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: ActivityLogResponse |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 503 | The Activity Log is not configured or cannot be reached | application/json: ErrorDetail |
GET /v1/signoffs
Sign-off records of any status, filtered and paged by cursor.
Required scope: signoff.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
record_type |
query | string (max length 128) | null |
no | Only records of this type, e.g. playbook_entry. |
status |
query | PendingStatus | null |
no | Only records in this status. |
start |
query | string (date-time) | null |
no | Records submitted at or after this instant. |
end |
query | string (date-time) | null |
no | Records submitted before this instant. |
limit |
query | integer (min 1, max 1000) |
no | Records per page. Default: 100. |
cursor |
query | string (max length 512) | null |
no | The previous page's next_cursor; repeat the same filters with it. |
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: SignoffListResponse |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 503 | The sign-off store cannot be reached | application/json: ErrorDetail |
GET /v1/signoffs/record-types
The distinct record types the sign-off records hold.
Required scope: signoff.
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: RecordTypesResponse |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 503 | The sign-off store cannot be reached | application/json: ErrorDetail |
GET /v1/signoffs/{record_id}
One sign-off record, its content exactly as submitted.
Required scope: signoff.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
record_id |
path | string (uuid) |
yes |
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: PendingRecord |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 404 | No such record, or the Node has no sign-off table | application/json: ErrorDetail |
| 503 | The sign-off store cannot be reached | application/json: ErrorDetail |
GET /v1/identity-matches
Pending identity records with their candidates, filtered and paged by cursor.
Required scope: signoff.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
entity_type |
query | EntityType | null |
no | Only records of this entity type. |
origin |
query | OriginFilter | null |
no | Only records whose stored origin is this, or 'unknown' for those with none this service recognises. |
kind |
query | IdentityOrigin | null |
no | Only records of this kind, as the answer's kind field reports it. |
status |
query | IdentityStatus | null |
no | Only matches in this status; pending when left out. A status other than pending lists only what a person decided. |
limit |
query | integer (min 1, max 1000) |
no | Matches per page. Default: 100. |
cursor |
query | string (max length 512) | null |
no | The previous page's next_cursor; repeat the same filters with it. |
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: IdentityMatchListResponse |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 503 | The identity store is not configured or cannot be reached | application/json: ErrorDetail |
POST /v1/documents
Queue a document revision for the Node to ingest; 202 means accepted, not applied.
Required scope: documents.
Request body
application/json: DocumentSubmission (required)
Responses
| Status | Meaning | Body |
|---|---|---|
| 202 | Successful Response | application/json: Acknowledgment |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 413 | The request body is over the size limit | application/json: ErrorDetail |
| 503 | The document queue cannot be reached, or does not exist yet (the Node creates it) | application/json: ErrorDetail |
| 429 | The document queue holds as much waiting text as its cap allows; Retry-After says how long to wait | application/json: ErrorDetail |
POST /v1/documents/deactivate
Queue withdrawing a stored document from retrieval.
Required scope: documents.
Request body
application/json: AvailabilityRequest (required)
Responses
| Status | Meaning | Body |
|---|---|---|
| 202 | Successful Response | application/json: Acknowledgment |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 413 | The request body is over the size limit | application/json: ErrorDetail |
| 503 | The document queue cannot be reached, or does not exist yet (the Node creates it) | application/json: ErrorDetail |
| 409 | The request_id was already used for a different call | application/json: ErrorDetail |
POST /v1/documents/activate
Queue returning a deactivated document to retrieval.
Required scope: documents.
Request body
application/json: AvailabilityRequest (required)
Responses
| Status | Meaning | Body |
|---|---|---|
| 202 | Successful Response | application/json: Acknowledgment |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 413 | The request body is over the size limit | application/json: ErrorDetail |
| 503 | The document queue cannot be reached, or does not exist yet (the Node creates it) | application/json: ErrorDetail |
| 409 | The request_id was already used for a different call | application/json: ErrorDetail |
GET /v1/documents/{call_id}
What became of a document call: queued, ingested, skipped, applied or failed.
Required scope: documents.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
call_id |
path | string (uuid) |
yes |
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: DocumentStatus |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 404 | No such call | application/json: ErrorDetail |
| 503 | The document queue cannot be reached, or does not exist yet (the Node creates it) | application/json: ErrorDetail |
POST /v1/signoffs/{record_id}/resolve
Approve or reject a Pending record, recorded against the token's id.
Required scope: signoff.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
record_id |
path | string (uuid) |
yes |
Request body
application/json: ResolveRequest (required)
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: PendingRecord |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 404 | No such record, or the Node has no sign-off table | application/json: ErrorDetail |
| 409 | The record was already settled by a different action or reviewer, or the action_id already recorded a different decision or edit | application/json: ErrorDetail |
| 413 | The request body is over the size limit | application/json: ErrorDetail |
| 503 | The Activity Log or the sign-off store cannot be reached, or the decision was recorded but its entry was not written (repeat the request with the same action_id) | application/json: ErrorDetail |
POST /v1/signoffs/{record_id}/edit-and-resubmit
Supersede a Pending record with a revised Pending successor.
Required scope: signoff.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
record_id |
path | string (uuid) |
yes |
Request body
application/json: EditRequest (required)
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: PendingRecord |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 404 | No such record, or the Node has no sign-off table | application/json: ErrorDetail |
| 409 | The record was already settled by a different action or reviewer, or the action_id already recorded a different decision or edit | application/json: ErrorDetail |
| 413 | The request body is over the size limit | application/json: ErrorDetail |
| 503 | The Activity Log or the sign-off store cannot be reached, or the decision was recorded but its entry was not written (repeat the request with the same action_id) | application/json: ErrorDetail |
POST /v1/signoffs/{record_id}/submit-as-document
Queue an approved case summary, with the disposition a person wrote, as a past case; needs both the signoff and the documents scope.
Required scopes: signoff, documents (the token must carry all of them).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
record_id |
path | string (uuid) |
yes |
Request body
application/json: SubmitAsDocumentRequest (required)
Responses
| Status | Meaning | Body |
|---|---|---|
| 202 | Successful Response | application/json: Acknowledgment |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 404 | No such record, or the Node has no sign-off table | application/json: ErrorDetail |
| 409 | The record is not Approved, or it was already submitted with a different disposition | application/json: ErrorDetail |
| 413 | The request body is over the size limit | application/json: ErrorDetail |
| 429 | The document queue holds as much waiting text as its cap allows; Retry-After says how long to wait | application/json: ErrorDetail |
| 503 | The Activity Log, the sign-off store or the document queue cannot be reached, or the document was queued but its entry was not written (repeat the same request) | application/json: ErrorDetail |
GET /v1/alerts
Alerts the Node raised, newest first, filtered and paged by cursor.
Required scope: alerts.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
acknowledged |
query | boolean | null |
no | True for acknowledged alerts only, false for unacknowledged only. |
limit |
query | integer (min 1, max 1000) |
no | Alerts per page. Default: 100. |
cursor |
query | string (max length 512) | null |
no | The previous page's next_cursor; repeat the same filter with it. |
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: AlertListResponse |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 503 | The alert store cannot be reached, or the Node has not yet upgraded its alert tables | application/json: ErrorDetail |
GET /v1/alerts/count
How many alerts have no acknowledgement, and when the oldest was raised.
Required scope: alerts.
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: AlertCountResponse |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 503 | The alert store cannot be reached, or the Node has not yet upgraded its alert tables | application/json: ErrorDetail |
GET /v1/alerts/{alert_id}
One alert, with where its instruction is and its drafted explanation.
Required scope: alerts.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
alert_id |
path | string (uuid) |
yes |
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: AlertDetailResponse |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 404 | No such alert, or the Node has no alerts table | application/json: ErrorDetail |
| 503 | The alert store or the Activity Log cannot be reached, or the Node has not yet upgraded its alert tables | application/json: ErrorDetail |
POST /v1/alerts/{alert_id}/acknowledge
Acknowledge an alert with a disposition, recorded against the token's id.
Required scope: alerts.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
alert_id |
path | string (uuid) |
yes |
Request body
application/json: AcknowledgeRequest (required)
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: AlertResponse |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 404 | No such alert, or the Node has no alerts table | application/json: ErrorDetail |
| 409 | The alert was already acknowledged | application/json: ErrorDetail |
| 413 | The request body is over the size limit | application/json: ErrorDetail |
| 503 | The Activity Log or the alert store cannot be reached, the Node has not yet upgraded its alert tables, or the acknowledgement was recorded but could not be completed (repeat the request with the same disposition) | application/json: ErrorDetail |
POST /v1/identity-matches/{match_id}/resolve
Confirm or reject a Pending identity match, recorded against the token's id.
Required scope: signoff.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
match_id |
path | string (uuid) |
yes |
Request body
application/json: IdentityResolveRequest (required)
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: IdentityResolveResponse |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 404 | No such record, or the Node has no identity table | application/json: ErrorDetail |
| 409 | The record was already settled by a different action or reviewer, the action_id already recorded the other decision, or a match's candidate is no longer on file or canonical (it can still be rejected) | application/json: ErrorDetail |
| 413 | The request body is over the size limit | application/json: ErrorDetail |
| 503 | The Activity Log or the identity store cannot be reached, the Node has not yet upgraded the identity table, or the decision was recorded but its entry was not written (repeat the request with the same action_id) | application/json: ErrorDetail |
POST /v1/identity-matches/{match_id}/reopen
Re-open a rejected identity match as a new Pending one, recorded against the token's id.
Required scope: signoff.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
match_id |
path | string (uuid) |
yes |
Request body
application/json: IdentityReopenRequest (required)
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: IdentityMatch |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 404 | No such record, or the Node has no identity table | application/json: ErrorDetail |
| 409 | The match is not rejected, or it was already re-opened by a different action or reviewer | application/json: ErrorDetail |
| 413 | The request body is over the size limit | application/json: ErrorDetail |
| 503 | The Activity Log or the identity store cannot be reached, the Node has not yet upgraded the identity table, or the re-opening was recorded but its entry was not written (repeat the request with the same action_id) | application/json: ErrorDetail |
GET /v1/config
The staged config with every x-sensitive field redacted.
Required scope: read.
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: ConfigDocument |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 404 | No config is staged | application/json: ErrorDetail |
| 409 | The staged config is ambiguous or not valid | application/json: ErrorDetail |
| 500 | The staged config could not be read or decrypted | application/json: ErrorDetail |
| 503 | The service has no Node Type definitions | application/json: ErrorDetail |
POST /v1/config/validate
A verdict on the staged file or a candidate body; never writes.
Required scope: read.
Request body
application/json: ValidateRequest (required)
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: ValidateResponse |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 404 | Nothing is staged, or the ref or the config path was not found | application/json: ErrorDetail |
| 413 | The request body is over the size limit | application/json: ErrorDetail |
| 502 | The configured repository could not be reached (source ref) | application/json: ErrorDetail |
| 503 | No repository, git, age key or Node Type definitions (source ref) | application/json: ErrorDetail |
POST /v1/config/sync
Fetch the configured ref, validate it, and stage it if valid.
Required scope: sync.
Request body
application/json: SyncRequest | null (optional)
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: SyncResponse |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 404 | The ref or the config path was not found in the repository | application/json: ErrorDetail |
| 409 | Another sync, bundle, rollback or draft change is already running | application/json: ErrorDetail |
| 413 | The request body is over the size limit | application/json: ErrorDetail |
| 500 | The sync failed unexpectedly; nothing was staged | application/json: ErrorDetail |
| 502 | The configured repository could not be reached | application/json: ErrorDetail |
| 503 | No repository, git, age key or Node Type definitions, or the Activity Log is down | application/json: ErrorDetail |
POST /v1/config/bundle
Validate a config carried in a bundle, and stage it if valid.
Required scope: configure.
Request body
application/json: BundleRequest (required)
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: StagedResponse |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 409 | Another sync, bundle, rollback or draft change is already running | application/json: ErrorDetail |
| 413 | The request body, or the config file in it, is over the size limit | application/json: ErrorDetail |
| 500 | Staging failed unexpectedly; the staged and prior configs are as they were | application/json: ErrorDetail |
| 503 | No age key (an encrypted config), no Node Type definitions, or the Activity Log is down | application/json: ErrorDetail |
POST /v1/config/rollback
Swap the staged config with the prior one, if the prior is still valid.
Required scope: configure.
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: StagedResponse |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 404 | There is no prior config to roll back to | application/json: ErrorDetail |
| 409 | Another sync, bundle, rollback or draft change is already running | application/json: ErrorDetail |
| 422 | The prior config is no longer valid for this Node Type or cannot be decrypted, or is not the same kind of file as the staged one; nothing changed | application/json: ErrorDetail |
| 500 | The rollback failed unexpectedly; the staged and prior configs are as they were | application/json: ErrorDetail |
| 503 | No age key (an encrypted config), no Node Type definitions, or the Activity Log is down | application/json: ErrorDetail |
GET /v1/config/draft
The draft config, every credential shown as the placeholder.
Required scope: read.
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: DraftDocument |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 404 | There is no draft | application/json: ErrorDetail |
| 500 | The draft on this appliance cannot be read | application/json: ErrorDetail |
PUT /v1/config/draft
Save the whole draft; a credential in it is encrypted here and never returned.
Required scope: configure.
Request body
application/json: DraftWrite (required)
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: DraftDocument |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | A starting point read from the repository, and the token lacks the sync scope as well as configure | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 404 | A start from the staged config, and no config is staged; or a starting point's ref or path is not in the repository | application/json: ErrorDetail |
| 409 | Another sync, bundle, rollback or draft change is already running; a draft already exists and the save carries no revision, a stale one, or no replace; or the staged config cannot be read | application/json: ErrorDetail |
| 413 | The request body, or the draft it makes, is over 1 MiB | application/json: ErrorDetail |
| 502 | A starting point read from the repository, and the repository could not be reached | application/json: ErrorDetail |
| 503 | A credential is being set or removed and this appliance has no age key, or the Activity Log cannot be reached, or a starting point is read from the repository and none is configured; the draft is as it was | application/json: ErrorDetail |
| 500 | The save failed unexpectedly, or a credential could not be stored; the draft is as it was | application/json: ErrorDetail |
DELETE /v1/config/draft
Discard the draft and its credentials.
Required scope: configure.
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: DraftDiscarded |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 404 | There is no draft | application/json: ErrorDetail |
| 409 | Another sync, bundle, rollback or draft change is already running | application/json: ErrorDetail |
| 500 | The discard failed unexpectedly | application/json: ErrorDetail |
| 503 | The draft holds credentials and the Activity Log cannot be reached; it is kept | application/json: ErrorDetail |
POST /v1/config/draft/stage
Validate the draft as a config and stage it; never changes the staged file's kind.
Required scope: configure.
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: StagedResponse |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 404 | There is no draft | application/json: ErrorDetail |
| 409 | Another sync, bundle, rollback or draft change is already running | application/json: ErrorDetail |
| 422 | The draft is not a valid config for this Node Type, holds a credential where the staged file is a plain one, has a Node Type this appliance does not have, or still has a placeholder of its starting point unfilled; nothing was staged | application/json: ErrorDetail |
| 500 | Staging failed unexpectedly; the staged and prior configs are as they were | application/json: ErrorDetail |
| 503 | No age key (the draft holds credentials, or the staged file is encrypted), no Node Type definitions, or the Activity Log is down | application/json: ErrorDetail |
GET /v1/config/draft/export
The draft as one file and a patch against the staged file, to commit.
Required scope: configure.
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: ChangeBundle |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 404 | There is no draft | application/json: ErrorDetail |
| 409 | Another sync, bundle, rollback or draft change is already running | application/json: ErrorDetail |
| 422 | The draft is not a valid config for this Node Type, holds a credential where the staged file is a plain one, or still has a placeholder of its starting point unfilled | application/json: ErrorDetail |
| 500 | The export failed unexpectedly | application/json: ErrorDetail |
| 503 | No age key (the draft holds credentials, or the staged file is encrypted), no Node Type definitions, or the Activity Log is down | application/json: ErrorDetail |
POST /v1/config/draft/export
The draft as a starting-point file for the repository: no credential in it.
Required scope: configure.
Request body
application/json: TemplateRequest (required)
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: TemplateExport |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 404 | There is no draft | application/json: ErrorDetail |
| 409 | Another sync, bundle, rollback or draft change is already running | application/json: ErrorDetail |
| 500 | The export failed unexpectedly | application/json: ErrorDetail |
| 503 | No Node Type definitions, or the Activity Log is down | application/json: ErrorDetail |
GET /v1/config/schema
A Node Type's Configuration Schema, with its credential fields marked.
Required scope: read.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
node_type |
query | string (max length 200) | null |
no | A Node Type by name; the running one when omitted. |
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: NodeTypeSchema |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 404 | No Node Type is known yet (name one), or this appliance has none of that name | application/json: ErrorDetail |
| 503 | The service has no Node Type definitions | application/json: ErrorDetail |
POST /v1/config/migration
Every schema problem of the staged config or the draft against the running Node Type; never writes.
Required scope: read.
Request body
application/json: MigrationRequest (required)
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: MigrationReport |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 404 | The staged config or the draft asked about does not exist | application/json: ErrorDetail |
| 409 | The staged config cannot be read | application/json: ErrorDetail |
| 500 | The staged config could not be decrypted | application/json: ErrorDetail |
| 503 | No age key (the staged config is encrypted) or no Node Type definitions | application/json: ErrorDetail |
POST /v1/config/assist
Turn a plain-language request into a checked change to the draft, on this site's own inference endpoint; saves and stages only when asked.
Required scope: configure.
Request body
application/json: AssistRequest (required)
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: AssistResponse |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | A starting point read from the repository, and the token lacks the sync scope as well as configure | application/json: ErrorDetail |
| 504 | The request took longer than the assistant's own limit, which is set from the inference settings and never more than 600 seconds | application/json: ErrorDetail |
| 404 | A starting point's ref or path is not in the repository | application/json: ErrorDetail |
| 409 | Another assistant request is already running; or the draft the request names does not match the saved one (no draft at that revision, a stale revision, a draft that exists and no revision, or a starting point over a draft with no replace) | application/json: ErrorDetail |
| 413 | The request body is over the size limit | application/json: ErrorDetail |
| 502 | The inference endpoint gave no usable answer to any attempt, or the repository could not be reached (a starting point read from it) | application/json: ErrorDetail |
| 503 | The assistant is off (no inference endpoint is set for this service), or the Activity Log cannot be reached, or the draft holds credentials and this appliance has no age key to check the request against them | application/json: ErrorDetail |
POST /v1/config/check
Fetch a ref and test its connectors against their targets; never stages.
Required scope: check.
Request body
application/json: CheckRequest | null (optional)
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: CheckResponse |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 404 | The ref or the config path was not found in the repository | application/json: ErrorDetail |
| 409 | Another check is already running | application/json: ErrorDetail |
| 413 | The request body is over the size limit | application/json: ErrorDetail |
| 500 | The check failed unexpectedly | application/json: ErrorDetail |
| 502 | The configured repository could not be reached | application/json: ErrorDetail |
| 503 | No repository, git, age key or Node Type definitions, or the Activity Log is down | application/json: ErrorDetail |
POST /v1/tokens/rotate
Replace the calling token's secret, keeping its id and scopes; any token may call it, and the old secret works for a short grace window.
Required scope: any_token.
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: RotatedToken |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 429 | The token was rotated less than a minute ago; nothing was recorded or written. Retry-After says how many seconds to wait, and the secret sent still works | application/json: ErrorDetail |
| 409 | The token is being changed (another rotation, a mint or a revoke); the secret sent still works, so try again | application/json: ErrorDetail |
| 503 | The Activity Log or the token file cannot be written; the secret sent still works | application/json: ErrorDetail |
GET /v1/tokens/self
The calling token's id and scopes, sorted, and nothing else; any token may call it, and it writes no Activity Log entry.
Required scope: any_token.
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: OwnScopes |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
GET /v1/admin/tokens
The tokens this node enforces (id, scopes, expiry) and its retired ids; no secret or hash. Needs the admin scope, which opens only this route and the revoke route.
Required scope: admin.
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: AdminTokensResponse |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 503 | The Activity Log entry for the listing could not be written, so nothing is listed | application/json: ErrorDetail |
POST /v1/admin/tokens/{token_id}/revoke
Revoke one token of this node and retire its id, as the revoke command does; this node only, and never the caller's own token. Needs the admin scope.
Required scope: admin.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
token_id |
path | string (pattern ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$) |
yes | The id of the token to revoke, as list shows it |
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: RevokedToken |
| 409 | The caller's own token (own_token), or the node's only token (only_token); nothing was changed | application/json: Refusal |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 404 | No token has that id, or it is already retired | application/json: ErrorDetail |
| 503 | The token file could not be changed; the token is still honoured, repeat | application/json: ErrorDetail |
POST /v1/tokens/revoke
Revoke a token id on this node, for an administrator holding a site-CA certificate listed in MANAGEMENT_ADMIN_IDENTITIES; no bearer token opens it. Takes the token out if the node holds it (unless it is the node's only one) and retires the id, and answers 200 with what it did, whatever the id.
Required scope: admin_certificate.
Request body
application/json: RetireRequest (required)
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | What the node did, in result: removed, withheld (the node's only token, kept but its id retired), retired_only (no such token here, id retired) or already_retired (nothing changed). A repeat is a 200 too |
application/json: RetireResult |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | The caller presented no site-CA certificate (all a bearer token is to this route), or one that names no Kindred identity (the body and header of every other 401) | application/json: ErrorDetail |
| 403 | The caller's certificate names several Kindred identities or one that is not in MANAGEMENT_ADMIN_IDENTITIES, or the node lists no administrator identity at all | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 413 | The request body is over the size limit | application/json: ErrorDetail |
| 503 | The token file or the retired list is unsafe, malformed or could not be written (nothing was changed), or the removal was left unfinished: the id was retired but the token is still honoured, and repeating the request finishes it | application/json: ErrorDetail |
GET /v1/orders/{order_id}/trail
An order's trail across the site's Nodes, asked of the peers as this Node.
Required scope: correlation.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
order_id |
path | string (min length 1, max length 256, pattern ^[^\x00]+$) |
yes | The order's reference id, as it is on file in this Node's identity store. |
deadline_seconds |
query | number (max 24.0) |
no | How long the peers are given, in seconds. A trail's identity fetch and its coverage gap check may each take up to 2 more. Default: 20.0. |
max_entries |
query | integer (min 0, max 2000) |
no | The most entries the answer holds. Default: 2000. |
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: OrderTrailAnswer |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 404 | No identity record is on file for the order on this Node | application/json: ErrorDetail |
| 409 | No config is staged, the staged config declares no peers (a single-Node site), the Node asking is not known, or the order's identity record is not resolved on this Node or on a peer | application/json: ErrorDetail |
| 429 | Two such requests are already running; Retry-After says how long to wait | application/json: ErrorDetail |
| 500 | The request failed unexpectedly; the answer says nothing more | application/json: ErrorDetail |
| 503 | The Activity Log or the identity store cannot be reached, or the staged config or the Node's certificate cannot be used to ask the peers (the answer names the class of fault) | application/json: ErrorDetail |
GET /v1/orders/{order_id}/genealogy
One page of an order's material genealogy across the site's Nodes.
Required scope: correlation.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
order_id |
path | string (min length 1, max length 256, pattern ^[^\x00]+$) |
yes | The order's reference id, as it is on file in this Node's identity store. |
deadline_seconds |
query | number (max 24.0) |
no | How long the peers are given, in seconds. A trail's identity fetch and its coverage gap check may each take up to 2 more. Default: 20.0. |
max_materials |
query | integer (min 1, max 200) |
no | The most materials looked up on peers in one request. Default: 50. |
page_size |
query | integer (min 1) | null |
no | Materials in one page, at most max_materials. Default: 50, or max_materials when that is lower. |
after_material |
query | string (max length 256, pattern ^[^\x00]*$) |
no | The previous page's next_after_material; empty for the first page. Default: "". |
max_orders_per_material |
query | integer (min 0, max 200) |
no | The most other orders listed under one material. Default: 200. |
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: GenealogyAnswer |
| 422 | Validation Error | application/json: HTTPValidationError |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
| 404 | No identity record is on file for the order on this Node | application/json: ErrorDetail |
| 409 | No config is staged, the staged config declares no peers (a single-Node site), or the Node asking is not known | application/json: ErrorDetail |
| 429 | Two such requests are already running; Retry-After says how long to wait | application/json: ErrorDetail |
| 500 | The request failed unexpectedly; the answer says nothing more | application/json: ErrorDetail |
| 503 | The Activity Log or the identity store cannot be reached, or the staged config or the Node's certificate cannot be used to ask the peers (the answer names the class of fault) | application/json: ErrorDetail |
GET /v1/openapi.json
The API description.
Required scope: read.
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | Successful Response | application/json: object |
| 401 | No token, or one that does not work: malformed, unknown, revoked, expired, or a secret a rotation replaced whose grace window has passed (one identical answer for all) | application/json: ErrorDetail |
| 403 | The token is valid but lacks the scope the route needs | application/json: ErrorDetail |
| 504 | The request took longer than the service's 30-second limit | application/json: ErrorDetail |
Schemas
AcknowledgeRequest
A person's answer about one alert.
| Field | Type | Required | Description |
|---|---|---|---|
disposition |
Disposition |
yes |
AcknowledgementResponse
Who acknowledged an alert, when and how.
| Field | Type | Required | Description |
|---|---|---|---|
disposition |
Disposition |
yes | |
acknowledged_by |
string |
yes | |
acknowledged_at |
string (date-time) |
yes |
Acknowledgment
The answer to an accepted call: the id to ask about. Carries no text.
| Field | Type | Required | Description |
|---|---|---|---|
id |
string (uuid) |
yes |
ActivityLogEntry
One append-only Activity Log record.
| Field | Type | Required | Description |
|---|---|---|---|
id |
string (uuid) |
no | |
node_type |
string |
yes | |
node_instance_id |
string |
yes | |
occurred_at |
string (date-time) |
no | |
trigger |
string |
yes | |
task_type |
string |
yes | |
workflow_pattern |
string | null |
no | |
outcome |
string |
yes | |
peer_nodes_queried |
array of string |
no | |
reference_ids |
object of string |
no | |
chain_hash |
string | null |
no | |
chain_prev_hash |
string | null |
no |
ActivityLogResponse
One page of entries; next_cursor is left out on the last page.
| Field | Type | Required | Description |
|---|---|---|---|
entries |
array of ActivityLogEntry |
yes | |
next_cursor |
string | null |
no |
AdminToken
One token the service is enforcing.
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
yes | |
scopes |
array of string |
yes | The scopes the token carries, sorted |
expires_at |
string | null |
yes | When the token stops being accepted (ISO 8601, UTC), or null if it never does |
self |
boolean |
yes | True for the token this request was made with |
AdminTokensResponse
The node's tokens in file order, and its retired ids, oldest first.
| Field | Type | Required | Description |
|---|---|---|---|
tokens |
array of AdminToken |
yes | |
revoked |
array of RetiredToken | null |
yes | The retired ids, or null when the list cannot be read (revoked_reason says so) |
revoked_reason |
string | null |
yes | A fixed sentence when revoked is null, else null |
token_file |
TokenFileState |
yes | reload_failed when the token file changed into a state that could not be loaded: the tokens listed are then the last good set, which is what is still in force |
AlertCountResponse
How many alerts wait for a person. Both fields are always present.
| Field | Type | Required | Description |
|---|---|---|---|
unacknowledged |
integer | null |
yes | |
oldest_unacknowledged_at |
string (date-time) | null |
yes |
AlertDetailResponse
One alert, with where its instruction is and the drafted explanation, if there is one.
| Field | Type | Required | Description |
|---|---|---|---|
id |
string (uuid) |
yes | |
raised_at |
string (date-time) |
yes | |
binding_id |
string |
yes | |
claim_id |
string (uuid) |
yes | |
limit_name |
string |
yes | |
measured_value |
number |
yes | |
limit_value |
number |
yes | |
unit |
string |
yes | |
product |
string |
yes | |
operation |
string |
yes | |
held_readings |
integer |
yes | |
held_seconds |
number |
yes | |
repeat_count |
integer |
yes | |
last_repeat_at |
string (date-time) | null |
yes | |
previous_alert_id |
string (uuid) | null |
yes | |
suppressed_before |
integer |
yes | |
acknowledgement |
AcknowledgementResponse | null |
yes | |
instruction |
InstructionPlaceResponse |
yes | |
explanation_record_id |
string (uuid) | null |
yes |
AlertListResponse
One page of alerts, newest first; next_cursor is left out on the last page.
| Field | Type | Required | Description |
|---|---|---|---|
alerts |
array of AlertResponse |
yes | |
next_cursor |
string | null |
no |
AlertResponse
One alert: the reading that confirmed it, the limit crossed and its acknowledgement.
| Field | Type | Required | Description |
|---|---|---|---|
id |
string (uuid) |
yes | |
raised_at |
string (date-time) |
yes | |
binding_id |
string |
yes | |
claim_id |
string (uuid) |
yes | |
limit_name |
string |
yes | |
measured_value |
number |
yes | |
limit_value |
number |
yes | |
unit |
string |
yes | |
product |
string |
yes | |
operation |
string |
yes | |
held_readings |
integer |
yes | |
held_seconds |
number |
yes | |
repeat_count |
integer |
yes | |
last_repeat_at |
string (date-time) | null |
yes | |
previous_alert_id |
string (uuid) | null |
yes | |
suppressed_before |
integer |
yes | |
acknowledgement |
AcknowledgementResponse | null |
yes |
AssistChange
One edit of the proposed change.
| Field | Type | Required | Description |
|---|---|---|---|
op |
"set" | "remove" |
yes | |
path |
string |
yes | |
value |
any | no | What a set puts there; absent for a remove. |
AssistFinding
Something worth knowing about the proposed change: advice, or a thing still to do.
| Field | Type | Required | Description |
|---|---|---|---|
source |
"reply" | "credential" | "schema" | "offline_check" | "preview" | "place" |
yes | |
path |
string | null |
yes | |
message |
string |
yes | Words about a path or a rule; never a config value. |
AssistPreview
What the mapping preview over the request's sample records found: names and counts.
| Field | Type | Required | Description |
|---|---|---|---|
state |
"clean" | "gaps" | "unusable" |
yes | |
reason |
string | null |
yes | |
record_count |
integer |
yes | |
matched |
integer |
yes | |
unmatched |
integer |
yes | |
flagged |
integer |
yes | |
unprojected_keys |
array of string |
yes | |
null_fields |
array of string |
yes | |
unread_fields |
array of string |
yes |
AssistRequest
What to change in plain language, and what to start from and do with the result.
| Field | Type | Required | Description |
|---|---|---|---|
request |
string (min length 1, max length 4000) |
yes | What to change, in plain language. It is sent to the model, so it must not hold a credential: credentials are set through the draft's own credential field. |
revision |
integer (min 1.0) | null |
no | The saved draft's revision, as a save names it. Omit it when there is no draft. |
starting_point |
StartingPointSource | null |
no | Start from a starting point, uploaded or read from the repository (which needs the sync scope as well as configure), instead of from the saved draft. An existing draft needs replace, and is not touched unless the change is applied. |
replace |
boolean |
no | With a starting point: it may replace an existing draft. Default: false. |
node_type |
string (max length 200) | null |
no | With no draft and no starting point: the Node Type to write a first config for (the running one when left out). |
apply |
"none" | "draft" | "stage" |
no | What to do with a change that passes: 'none' returns it and saves nothing; 'draft' saves it as the draft; 'stage' saves it and stages the draft. A change that does not pass is never applied. Default: "none". |
sample |
array of object | null |
no | Captured source records, to preview the mapping over. They stay on this appliance: the model is told only names and counts. Without them the preview is not run. |
section |
string (max length 40) | null |
no | The connector section to preview, when it is ambiguous. |
identity_field |
string (max length 80) | null |
no | The canonical field that identifies the entity. |
event_type |
string (max length 80) | null |
no | An event type of the Node Type. |
AssistResponse
A change that passes the checks, the draft it makes, and what was done with it.
| Field | Type | Required | Description |
|---|---|---|---|
summary |
string |
yes | The model's own words about the change. |
changes |
array of AssistChange |
yes | |
assumed |
array of string |
yes | Paths of values the model chose that the request did not give: check them. |
document |
object |
yes | The draft with the change made, every credential that is set shown as the placeholder '[redacted]'; send it as a save's document to keep it. |
findings |
array of AssistFinding |
yes | What does not stop the change but is worth knowing: a credential still to set, a place still empty, a gap in the mapping. |
preview |
AssistPreview | null |
yes | The mapping preview, or null when the request carried no sample records. |
attempts |
integer |
yes | How many times the model was asked. |
schema_cut |
boolean |
yes | True when the Configuration Schema had to be cut to fit the model's budget. |
based_on_revision |
integer | null |
yes | The draft revision the change was made to. |
applied |
"none" | "draft" | "stage" |
yes | What was done: nothing, the draft saved, or also staged. |
draft_revision |
integer | null |
yes | The revision the saved draft now has. |
staged |
StagedResponse | null |
yes | |
not_applied |
string | null |
yes | Why a requested save or stage was not done, in the service's own words. |
AvailabilityRequest
A call to deactivate or activate a stored document.
| Field | Type | Required | Description |
|---|---|---|---|
source_document_id |
string (min length 1) |
yes | |
revision_label |
string | null |
no | |
reason |
string (min length 1) |
yes | |
request_id |
string (uuid) |
yes |
BundleRequest
A config built on a laptop from a repository ref, to be staged here.
| Field | Type | Required | Description |
|---|---|---|---|
format_version |
integer |
yes | The bundle format; the one this release reads is 1. |
ref |
string (min length 1, max length 256) |
yes | The ref it was built from. |
commit |
string (min length 1, max length 64) |
yes | The full commit id the ref resolved to when it was built. |
name |
string (max length 64) |
yes | The staged file's name: config.json or config.enc.json. |
content |
string |
yes | The config file's exact text, at most about 0.9 MiB. |
CertificateEntry
One certificate's subject and expiry, as the API reports it.
| Field | Type | Required | Description |
|---|---|---|---|
role |
string |
yes | |
subject |
string |
yes | |
identity |
string | null |
yes | |
not_after |
string (date-time) |
yes | |
days_remaining |
integer |
yes | |
expired |
boolean |
yes | |
in_warning_window |
boolean |
yes | |
identity_problem |
string | null |
no |
CertificatesReport
The Node's certificates and whether any is expired or inside the warning window.
| Field | Type | Required | Description |
|---|---|---|---|
state |
CertificatesState |
yes | |
warning_days |
integer |
yes | |
certificates |
array of CertificateEntry |
no | Default: []. |
problem |
string | null |
no |
CertificatesState
How the Node's certificates stand.
Type: "not_configured" | "ok" | "warning" | "expired" | "unreadable"
ChangeBundle
What an integrator takes off the appliance to commit: the draft, composed as one file.
| Field | Type | Required | Description |
|---|---|---|---|
node_type |
string | null |
yes | |
name |
string |
yes | The composed file's name: config.json or config.enc.json. |
content |
string |
yes | The whole composed file. |
hash |
string |
yes | SHA-256 of content as bytes. |
patch |
string | null |
yes | A unified diff from the staged file to content, for git apply; null when nothing is staged. |
staged_hash |
string | null |
yes | SHA-256 of the staged file the patch is against. |
base |
string | null |
yes | |
draft_revision |
integer |
yes |
CheckRequest
What to check: a ref of the config repository, and how the check is run.
| Field | Type | Required | Description |
|---|---|---|---|
ref |
string (max length 256) | null |
no | A branch, tag or commit; default: the pinned ref. |
mqtt_wait_seconds |
number (min 0.0, max 10.0) |
no | How long an MQTT connector waits for one message; a quiet topic is a result, not a failure. Default: 5.0. |
show_sample |
boolean |
no | Include what each passing connector returned. It can hold plant data that is not a secret of the config, so it is left out by default. Default: false. |
CheckResponse
What the check found.
| Field | Type | Required | Description |
|---|---|---|---|
ref |
string |
yes | |
commit |
string |
yes | |
state |
"passed" | "failed" | "skipped" |
yes | |
findings |
array of Finding |
no | Default: []. |
reason |
string | null |
no | |
node_type |
string | null |
no | |
connection_state |
"passed" | "failed" | "skipped" |
yes | |
connection_reason |
string | null |
no | |
connections |
array of ConnectionResult |
no | Default: []. |
ConfigDocument
The staged config with its sensitive fields replaced, beside what is known about it.
| Field | Type | Required | Description |
|---|---|---|---|
node_type |
string |
yes | |
staged |
StagedConfig |
yes | |
running |
RunningConfig |
yes | |
document |
object |
yes | The staged config as the Node would load it ($shared references resolved), every x-sensitive field's value replaced by '[redacted]'. |
ConnectionResult
One connector's result; target never carries a credential.
| Field | Type | Required | Description |
|---|---|---|---|
name |
string |
yes | |
connector_type |
string |
yes | |
state |
"passed" | "failed" | "skipped" |
yes | |
message |
string |
yes | |
target |
string | null |
no | |
sample |
any | null |
no | |
sample_truncated |
boolean |
no | Default: false. |
ConnectorCheck
One connector's health: where it points and whether it answered.
| Field | Type | Required | Description |
|---|---|---|---|
name |
string |
yes | |
connector_type |
string |
yes | |
target |
string |
yes | |
success |
boolean |
yes | |
message |
string |
yes | |
checked_at |
string |
yes |
ConnectorsReport
The connectors part of a status response.
| Field | Type | Required | Description |
|---|---|---|---|
state |
ConnectorsState |
yes | |
checks |
array of ConnectorCheck |
no | Default: []. |
message |
string | null |
no | |
from_cache |
boolean |
no | Default: false. |
ConnectorsState
What the connectors part of a status response says.
Type: "not_tested" | "not_applicable" | "checked" | "error"
CoverageGapAnswer
A coverage gap over the order's span: where a Node could not have seen its source.
| Field | Type | Required | Description |
|---|---|---|---|
connector |
string |
yes | |
cause |
"node_stopped" | "connection_lost" | "messages_dropped" |
yes | |
outcome |
"replayed" | "not_replayed" |
yes | |
started_at |
string |
yes | |
ended_at |
string |
yes |
CoverageGapStatus
The most recent coverage gap of this Node: where, why and for how long it could not see.
| Field | Type | Required | Description |
|---|---|---|---|
connector |
string |
yes | |
cause |
string |
yes | |
outcome |
string |
yes | |
started_at |
string |
yes | |
ended_at |
string |
yes |
CoverageStatus
When the Node was last known to be running, and its latest coverage gap.
| Field | Type | Required | Description |
|---|---|---|---|
last_alive_at |
string | null |
yes | |
latest_gap |
CoverageGapStatus | null |
yes |
DisagreementAnswer
Two Nodes' records that differ, by the Nodes and the field names, never a value.
| Field | Type | Required | Description |
|---|---|---|---|
first |
string |
yes | |
second |
string |
yes | |
first_node_type |
string |
yes | |
second_node_type |
string |
yes | |
involves_this_node |
boolean |
yes | True when one of the two records is this Node's own. The page highlights the fields of this Node's record from this, not from the wording of first and second |
fields |
array of string |
yes |
Disposition
What a person decided about an alert. The value is also the Activity Log entry's outcome.
Type: "confirmed_issue" | "dismissed" | "instruction_needs_revising"
DocumentStatus
What became of a call. Ids, counts and a reason class, never document text.
| Field | Type | Required | Description |
|---|---|---|---|
id |
string (uuid) |
yes | |
kind |
string |
yes | |
state |
string |
yes | |
source_document_id |
string | null |
no | |
stored_document_id |
string | null |
no | |
chunks |
integer | null |
no | |
reason |
string | null |
no | |
refused |
array of string | null |
no | |
source_revised_at |
string | null |
no | |
document_type |
string | null |
no |
DocumentSubmission
A document revision to ingest: an intake item, and a request id when it is flagged.
| Field | Type | Required | Description |
|---|---|---|---|
source_document_id |
string (min length 1) |
yes | |
source_revised_at |
string (date-time) |
yes | |
text |
string (min length 1) |
yes | |
document_type |
string |
no | Default: "". |
applicability |
StrictApplicability | null |
no | |
title |
string | null |
no | |
document_number |
string | null |
no | |
revision_label |
string | null |
no | |
overwrite |
boolean |
no | Default: false. |
request_id |
string (uuid) | null |
no |
DraftDiscarded
What a discard removed.
| Field | Type | Required | Description |
|---|---|---|---|
discarded |
boolean |
yes | |
credentials_removed |
integer |
yes |
DraftDocument
The draft, with every credential shown as the placeholder and none ever as a value.
| Field | Type | Required | Description |
|---|---|---|---|
revision |
integer |
yes | |
base |
string | null |
yes | |
started_at |
string |
yes | |
updated_at |
string |
yes | |
node_type |
string | null |
yes | |
document |
object |
yes | The draft as it stands; each credential that is set is '[redacted]'. |
credentials |
array of string |
yes | Where the draft holds a credential, as paths from the document's root. |
placeholders |
array of StartingPointPlace |
yes | The places the starting point the draft began from left to fill in; empty for any other draft. Staging or exporting is refused while one is unfilled. |
DraftStatus
The draft config held on this appliance: that it exists and where it started.
| Field | Type | Required | Description |
|---|---|---|---|
revision |
integer |
yes | |
base |
string | null |
no | |
updated_at |
string |
yes | |
credentials |
integer |
yes |
DraftWrite
A save of the draft: the whole document, or a start from the staged config or a template.
| Field | Type | Required | Description |
|---|---|---|---|
revision |
integer (min 1.0) | null |
no | The revision this save replaces. Omit it when no draft exists; a stale one is refused. |
replace |
boolean |
no | True to discard an existing draft and its credentials and start over. Default: false. |
from_staged |
boolean |
no | True to start the draft from the staged config, moving its credentials into the draft's encrypted credentials file. An existing draft needs replace. Default: false. |
base |
string (max length 256) | null |
no | The template or ref the draft started from, when known. |
starting_point |
StartingPointSource | null |
no | Start the draft from a starting point, uploaded or read from the repository, leaving its placeholders to fill in. An existing draft needs replace. |
document |
object | null |
no | The whole config document. In it each x-sensitive field is '[redacted]' (keep the stored credential), absent (remove it) or a new text value (set it; it is encrypted here and never returned). |
EditRequest
A revised copy of a record's content; it must keep the original's top-level keys.
| Field | Type | Required | Description |
|---|---|---|---|
content |
object |
yes | |
action_id |
string (uuid) |
yes |
EntityType
The four entity types identity resolution must handle.
Type: "order" | "material" | "qualification" | "schedule"
EntryAnswer
One Activity Log entry, with the fields that cross the wire and no chain hash.
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
yes | |
node_type |
string |
yes | |
node_instance_id |
string |
yes | |
occurred_at |
string |
yes | |
trigger |
string |
yes | |
task_type |
string |
yes | |
workflow_pattern |
string | null |
yes | |
outcome |
string |
yes | |
peer_nodes_queried |
array of string |
yes | |
reference_ids |
object of string |
yes |
Finding
One problem with the config: the rule it breaks and a message with no config value in it.
| Field | Type | Required | Description |
|---|---|---|---|
rule |
string |
yes | |
message |
string |
yes |
GenealogyAnswer
One page of an order's material genealogy; next_after_material is null on the last page.
| Field | Type | Required | Description |
|---|---|---|---|
order_id |
string |
yes | |
materials_in |
array of string |
yes | |
materials_total |
integer |
yes | |
next_after_material |
string | null |
yes | |
consumed_in |
object of array of string |
yes | |
consumed_in_omitted |
object of integer |
yes | |
truncated |
boolean |
yes | |
completeness |
"complete" | "incomplete" |
yes | |
causes |
array of string |
yes | |
not_contributed |
array of NotContributedAnswer |
yes | |
local_complete |
boolean |
yes | |
materials_not_looked_up |
array of string |
yes | |
coverage_gaps |
array of CoverageGapAnswer |
no |
HTTPValidationError
| Field | Type | Required | Description |
|---|---|---|---|
detail |
array of ValidationError |
no |
Identity
Which Node this is, as far as the files say.
| Field | Type | Required | Description |
|---|---|---|---|
node_type |
string | null |
yes | |
node_instance_id |
string | null |
yes | |
version |
string |
yes |
IdentityCandidate
The existing record a match proposes to be the same entity as.
| Field | Type | Required | Description |
|---|---|---|---|
id |
string (uuid) |
yes | |
entity_type |
EntityType |
yes | |
reference_id |
string | null |
yes | |
attributes |
object of string |
yes | |
status |
IdentityStatus |
yes |
IdentityDecision
What a person decides about a Pending record.
Type: "confirmed" | "rejected"
IdentityMatch
One identity record, with its candidate and how it came to be awaiting confirmation.
| Field | Type | Required | Description |
|---|---|---|---|
id |
string (uuid) |
yes | |
entity_type |
EntityType |
yes | |
reference_id |
string | null |
yes | |
attributes |
object of string |
yes | |
status |
IdentityStatus |
yes | |
origin |
string |
yes | Which creator wrote the record, as stored: inferred_match or first_article. 'unknown' when none is on file (an older row, or a table the Node has not upgraded); a stored value this service does not recognise is shown as it is, and the 'unknown' filter selects it. |
kind |
IdentityOrigin |
yes | What confirming the record means. Equal to origin when that is known; otherwise worked out from the record's shape (a reference-less row with a candidate reads as an inferred match, though a first-article placeholder can look the same). |
matched_record_id |
string (uuid) | null |
yes | |
match_score |
number | null |
yes | |
candidate |
IdentityCandidate | null |
yes | The record matched_record_id names; null when there is none, or it is gone. |
created_at |
string (date-time) |
yes | |
updated_at |
string (date-time) |
yes | |
resolved_by |
string | null |
no | Left out when the table cannot record it yet; null while the record is still awaiting a decision. |
resolved_at |
string (date-time) | null |
no | |
resolution_action_id |
string (uuid) | null |
no | |
reopens_id |
string (uuid) | null |
no | For a match made by re-opening a rejected one: the rejected match, which stays as it was decided. Left out when the table cannot record it yet. |
reopened_by |
string | null |
no | |
reopen_action_id |
string (uuid) | null |
no | |
reopened_as |
string (uuid) | null |
no | For a listed match that was re-opened: the match that replaced it. Left out when the table cannot record it yet. |
reopened_action_id |
string (uuid) | null |
no | For a listed match that was re-opened: the request id of that re-opening, which sent again by the same token completes its Activity Log entry if it is missing. |
IdentityMatchListResponse
One page of matches, oldest first; next_cursor is left out on the last page.
| Field | Type | Required | Description |
|---|---|---|---|
matches |
array of IdentityMatch |
yes | |
next_cursor |
string | null |
no |
IdentityOrigin
Which creator made a Pending record, and so what confirming it means.
Type: "inferred_match" | "first_article"
IdentityReopenRequest
Re-open a rejected match; the reviewer is the token's id, so there is no field for one.
| Field | Type | Required | Description |
|---|---|---|---|
action_id |
string (uuid) |
yes |
IdentityResolveRequest
A decision on one match; the reviewer is the token's id, so there is no field for one.
| Field | Type | Required | Description |
|---|---|---|---|
decision |
IdentityDecision |
yes | |
action_id |
string (uuid) |
yes |
IdentityResolveResponse
The match as it now stands, and what a merge changed on its candidate.
| Field | Type | Required | Description |
|---|---|---|---|
id |
string (uuid) |
yes | |
entity_type |
EntityType |
yes | |
reference_id |
string | null |
yes | |
attributes |
object of string |
yes | |
status |
IdentityStatus |
yes | |
origin |
string |
yes | Which creator wrote the record, as stored: inferred_match or first_article. 'unknown' when none is on file (an older row, or a table the Node has not upgraded); a stored value this service does not recognise is shown as it is, and the 'unknown' filter selects it. |
kind |
IdentityOrigin |
yes | What confirming the record means. Equal to origin when that is known; otherwise worked out from the record's shape (a reference-less row with a candidate reads as an inferred match, though a first-article placeholder can look the same). |
matched_record_id |
string (uuid) | null |
yes | |
match_score |
number | null |
yes | |
candidate |
IdentityCandidate | null |
yes | The record matched_record_id names; null when there is none, or it is gone. |
created_at |
string (date-time) |
yes | |
updated_at |
string (date-time) |
yes | |
resolved_by |
string | null |
no | Left out when the table cannot record it yet; null while the record is still awaiting a decision. |
resolved_at |
string (date-time) | null |
no | |
resolution_action_id |
string (uuid) | null |
no | |
reopens_id |
string (uuid) | null |
no | For a match made by re-opening a rejected one: the rejected match, which stays as it was decided. Left out when the table cannot record it yet. |
reopened_by |
string | null |
no | |
reopen_action_id |
string (uuid) | null |
no | |
reopened_as |
string (uuid) | null |
no | For a listed match that was re-opened: the match that replaced it. Left out when the table cannot record it yet. |
reopened_action_id |
string (uuid) | null |
no | For a listed match that was re-opened: the request id of that re-opening, which sent again by the same token completes its Activity Log entry if it is missing. |
changed_keys |
array of string | null |
yes | Attribute keys a confirmed inferred match added to or replaced on its candidate; empty when nothing was merged. Null on a repeat of an earlier request, which changes nothing and can no longer tell. |
IdentityStatus
Where one identity record stands: canonical, awaiting a person, or decided by one.
Type: "resolved" | "pending" | "merged" | "rejected"
InstructionPlaceResponse
Where the instruction an alert is about is, as the alert's own entry names it.
| Field | Type | Required | Description |
|---|---|---|---|
document |
string | null |
yes | |
revision |
string | null |
yes | |
locator |
string | null |
yes |
LicenseState
A site's current standing against its own offline license file - two states, nothing between.
Type: "licensed" | "unlicensed"
MigrationProblem
One thing to change; the message names the rule and never carries a config value.
| Field | Type | Required | Description |
|---|---|---|---|
path |
string |
yes | |
message |
string |
yes |
MigrationReport
Every problem a config has against the running Node Type, the version line set aside.
| Field | Type | Required | Description |
|---|---|---|---|
source |
"staged" | "draft" |
yes | |
node_type |
string | null |
yes | |
found_version |
string | null |
yes | The node_type_version the config states. |
expected_version |
string |
yes | The running Node Type's version. |
version_matches |
boolean |
yes | |
problems |
array of MigrationProblem |
yes |
MigrationRequest
Which config to judge against the running Node Type.
| Field | Type | Required | Description |
|---|---|---|---|
source |
"staged" | "draft" |
yes | The staged config, or the draft. |
NodeLiveness
Whether the process named in the runtime-state file is alive.
Type: "running" | "not_running" | "unknown"
NodeTypeSchema
A Node Type's Configuration Schema, for building a form or checking a draft by hand.
| Field | Type | Required | Description |
|---|---|---|---|
node_type |
string |
yes | |
version |
string |
yes | |
config_schema |
object |
yes | The JSON Schema the config's config object is validated against. A field it marks x-sensitive is a credential: it is set through the draft and never read back. |
sensitive_names |
array of string |
yes | The names of the fields the schema marks x-sensitive, anywhere in it. |
NotContributedAnswer
A declared peer that did not contribute, and the reason this side composed for it.
| Field | Type | Required | Description |
|---|---|---|---|
node_type |
string |
yes | |
address |
string |
yes | |
outcome |
string |
yes | |
reason |
string |
yes |
OrderTrailAnswer
An order's trail across the Nodes that took part in it.
| Field | Type | Required | Description |
|---|---|---|---|
order_id |
string |
yes | |
record |
RecordAnswer |
yes | |
entries |
array of EntryAnswer |
yes | |
entries_total |
integer |
yes | |
entries_omitted |
integer |
yes | |
truncated |
boolean |
yes | |
contributing_node_types |
array of string |
yes | |
complete |
boolean |
yes | |
local_complete |
boolean |
yes | |
not_contributed |
array of NotContributedAnswer |
yes | |
disagreements |
array of DisagreementAnswer |
yes | |
coverage_gaps |
array of CoverageGapAnswer |
no |
OriginFilter
The origins a list can be narrowed to: the two kinds, or rows with none on file.
Type: "inferred_match" | "first_article" | "unknown"
OwnScopes
The calling token's id and the scopes it carries.
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
yes | The calling token's id |
scopes |
array of string |
yes | The scopes the token carries, sorted |
PendingRecord
One record awaiting, or already through, Mandatory-Human Status resolution.
| Field | Type | Required | Description |
|---|---|---|---|
id |
string (uuid) |
no | |
record_type |
string |
yes | |
content |
object |
no | |
status |
PendingStatus |
no | Default: "pending". |
predecessor_id |
string (uuid) | null |
no | |
submitted_by |
string | null |
no | |
submitted_at |
string (date-time) |
no | |
resolved_by |
string | null |
no | |
resolved_at |
string (date-time) | null |
no | |
resolution_action_id |
string (uuid) | null |
no |
PendingStatus
Where one record stands in the Sign-off Mechanism's own lifecycle.
Type: "pending" | "approved" | "rejected" | "rejected_superseded"
PriorConfig
The one config the staged one replaced, kept so that going back is one step.
| Field | Type | Required | Description |
|---|---|---|---|
ref |
string | null |
no | |
commit |
string | null |
no | |
source |
"sync" | "bundle" | "draft" | "rollback" | null |
no | |
staged_at |
string | null |
no |
RecordAnswer
The order's identity record on this Node.
| Field | Type | Required | Description |
|---|---|---|---|
type |
string |
yes | |
reference |
string |
yes | |
status |
string |
yes | |
attributes |
object |
yes |
RecordTypesResponse
The distinct record types the Node's sign-off table holds, alphabetically.
| Field | Type | Required | Description |
|---|---|---|---|
record_types |
array of string |
yes |
Recorded
What became of an entry a revoke or a propagated revoke asked to have written.
Type: "written" | "kept" | "lost"
Refusal
The answer to a revoke the caller may not make.
| Field | Type | Required | Description |
|---|---|---|---|
error |
"own_token" | "only_token" |
yes | own_token: the caller's own token, which a node always keeps so the administrator acting is never locked out. only_token: the node's last token, which the service would keep honouring |
ResolveRequest
A decision on one record; the reviewer is the token's id, so there is no field for one.
| Field | Type | Required | Description |
|---|---|---|---|
decision |
SignoffDecision |
yes | |
action_id |
string (uuid) |
yes |
RetireOutcome
What a node did with a token id it was asked to revoke; the words the route answers with.
Type: "removed" | "withheld" | "retired_only" | "already_retired"
RetireRequest
The body of POST /v1/tokens/revoke: the id to take out and retire.
| Field | Type | Required | Description |
|---|---|---|---|
id |
string (pattern ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$) |
yes | The id of the token to revoke, as list shows it. A node that holds no token with this id retires the id all the same |
RetireResult
The answer to POST /v1/tokens/revoke: what this node did, and where the entry is.
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
yes | The id the request named |
result |
RetireOutcome |
yes | removed: the token was in the token file and has been taken out. withheld: it is the node's only token, so it was kept (the service refuses a file with none) and is still honoured; its id is retired. retired_only: the node held no such token; the id is retired. already_retired: the node held no such token and the id was retired already; nothing changed |
retired |
boolean |
yes | True when the id is on the retired list, so it is never issued again on this node. False when the retired list could not be used: the token is removed all the same, and mint refuses to run until the list is put right |
activity_log |
Recorded |
yes | written when the Activity Log has the entry; kept when it could not be reached and the entry waits beside the token file to be written later; lost when it could not be kept either, in which case the revoke should be noted down |
RetiredToken
One id this node has retired, and when. The retired list's hash for it is never served.
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
yes | |
revoked_at |
string |
yes | As the node recorded it (ISO 8601) |
RevokedToken
The answer to a revoke: the token that was removed, and where its Activity Log entry is.
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
yes | The id of the token that was revoked |
scopes |
array of string |
yes | The scopes the token held, sorted |
retired |
boolean |
yes | True when the id was retired, so it is never issued again on this node. False when the retired list could not be used: the token is removed all the same, and mint refuses to run until the list is put right |
activity_log |
Recorded |
yes | written when the Activity Log has the entry; kept when it could not be reached and the entry waits beside the token file to be written later; lost when it could not be kept either, in which case the revoke should be noted down |
RotatedToken
The answer to a rotation: the token's id, and its new secret, which is shown only here.
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
yes | The token's id, unchanged |
token |
string |
yes | The new secret. It is shown once and not kept; store it before anything else |
RunningConfig
The config the Node loaded at its last start; known is false when it never reported.
| Field | Type | Required | Description |
|---|---|---|---|
known |
boolean |
yes | |
ref |
string | null |
no | |
hash |
string | null |
no | |
started_at |
string | null |
no |
ScheduledTaskStatus
One scheduled task's failure-policy state, as the Node reports it.
| Field | Type | Required | Description |
|---|---|---|---|
name |
string |
yes | |
state |
string |
yes | |
consecutive_failures |
integer |
yes | |
last_success |
string | null |
yes | |
degraded_since |
string | null |
yes | |
failure_class |
string | null |
yes |
SchemaGenerationState
How the database's recorded generation compares with the engine's.
Type: "match" | "mismatch" | "not_recorded" | "unknown"
SchemaGenerationStatus
The schema generation this engine was built for, and the one the database records.
| Field | Type | Required | Description |
|---|---|---|---|
state |
SchemaGenerationState |
yes | |
engine_generation |
integer |
yes | |
database_generation |
integer | null |
yes |
SignoffDecision
The two flat resolution outcomes resolve() accepts - Edit & Resubmit is its own method.
Type: "approved" | "rejected"
SignoffListResponse
One page of records, oldest submission first; next_cursor is left out on the last page.
| Field | Type | Required | Description |
|---|---|---|---|
records |
array of PendingRecord |
yes | |
next_cursor |
string | null |
no |
StagedConfig
The config the next start would read.
| Field | Type | Required | Description |
|---|---|---|---|
present |
boolean |
yes | |
hash |
string | null |
no | |
ref |
string | null |
no | |
commit |
string | null |
no | |
staged_at |
string | null |
no | |
source |
"sync" | "bundle" | "draft" | "rollback" | null |
no | |
provenance |
"verified" | "stated" | null |
no | |
in_repository |
boolean | null |
no | |
base |
string | null |
no | |
prior |
PriorConfig | null |
no | |
metadata_stale |
boolean |
no | Default: false. |
problem |
string | null |
no |
StagedResponse
What a bundle or a rollback staged.
| Field | Type | Required | Description |
|---|---|---|---|
ref |
string | null |
yes | |
commit |
string | null |
yes | |
hash |
string |
yes | |
node_type |
string | null |
yes | |
staged_at |
string |
yes | |
source |
"sync" | "bundle" | "draft" | "rollback" |
yes | |
provenance |
"verified" | "stated" |
yes | |
in_repository |
boolean |
yes | |
restart_required |
boolean | null |
yes |
StartingPointPlace
A place a starting point left for the site to fill in, and whether the draft has it yet.
| Field | Type | Required | Description |
|---|---|---|---|
path |
string |
yes | Where it is, from the document's root: config.section.field. |
label |
string |
yes | |
kind |
"value" | "credential" |
yes | |
example |
any | no | A sample for a value placeholder, when there is one. |
filled |
boolean |
yes | True when the saved draft has a value there (a value) or a credential stored there (a credential). |
StartingPointSource
A starting point to begin the draft from: the file uploaded, or a file of the repository.
| Field | Type | Required | Description |
|---|---|---|---|
document |
object | null |
no | The starting point file's content, uploaded. |
ref |
string (max length 256) | null |
no | With path: the ref of the configured repository to read it at (the configured ref when left out). Needs the sync scope as well as configure. |
path |
string (max length 200) | null |
no | A relative path to a .json file inside the configured repository. |
Status
The status response.
| Field | Type | Required | Description |
|---|---|---|---|
identity |
Identity |
yes | |
running |
RunningConfig |
yes | |
staged |
StagedConfig |
yes | |
draft |
DraftStatus | null |
yes | |
restart_required |
boolean | null |
yes | |
node |
NodeLiveness |
yes | |
license_state |
LicenseState |
yes | |
connectors |
ConnectorsReport |
yes | |
certificate_status |
CertificatesReport |
yes | |
token_file |
TokenFileStatus | null |
yes | |
schema_generation |
SchemaGenerationStatus |
yes | |
scheduled_tasks |
array of ScheduledTaskStatus |
yes | |
host_time_utc |
string |
yes | |
time_sync |
TimeSync |
yes | |
coverage |
CoverageStatus |
yes | |
virtualization |
string |
yes |
StrictApplicability
Applicability that refuses what would silently put a document in the wrong scope.
| Field | Type | Required | Description |
|---|---|---|---|
product_id |
string | null |
no | |
mfg_order_id |
string | null |
no | |
effective_unit_from |
integer (min 0.0) | null |
no | |
effective_unit_to |
integer (min 0.0) | null |
no | |
effective_date_from |
string (date-time) | null |
no | |
effective_date_to |
string (date-time) | null |
no |
SubmitAsDocumentRequest
What the person writes: how the case was dispositioned, in their own words.
| Field | Type | Required | Description |
|---|---|---|---|
disposition |
string |
yes |
SyncRequest
What to sync; the configured ref when none is given.
| Field | Type | Required | Description |
|---|---|---|---|
ref |
string (max length 256) | null |
no | A branch, tag or commit; default: the pinned ref. |
SyncResponse
What was staged.
| Field | Type | Required | Description |
|---|---|---|---|
ref |
string |
yes | |
commit |
string |
yes | |
hash |
string |
yes | |
node_type |
string | null |
yes | |
staged_at |
string |
yes | |
restart_required |
boolean | null |
yes |
TemplateExport
A draft as a starting-point file for the repository: no credential in it, in any form.
| Field | Type | Required | Description |
|---|---|---|---|
node_type |
string |
yes | |
name |
string |
yes | A suggested file name. |
content |
string |
yes | The whole starting-point file. |
hash |
string |
yes | SHA-256 of content as bytes. |
base |
string | null |
yes | |
draft_revision |
integer |
yes | |
placeholders |
integer |
yes | How many placeholders the file has. |
TemplatePlace
A place of the draft to make a placeholder of when it is saved as a template.
| Field | Type | Required | Description |
|---|---|---|---|
path |
string (max length 200) |
yes | config.section.field |
label |
string (min length 1, max length 120) |
yes | |
example |
any | no | A sample for the place; the page shows it as a hint and a check fills it in. Never for a credential. |
TemplateRequest
What to name in the template a draft is saved as.
| Field | Type | Required | Description |
|---|---|---|---|
target_system |
string (min length 1, max length 120) |
yes | What it is a start for. |
description |
string (max length 500) | null |
no | |
placeholders |
array of TemplatePlace |
no | The places to leave for a site to fill in. Every credential the draft holds becomes a placeholder as well (named here to give it a label), and its value is never read. Default: []. |
TimeClient
Which client is keeping the clock.
Type: "chrony" | "systemd-timesyncd" | "other" | "none" | "unknown"
TimeSync
The active time-sync client and whether it says the clock is synchronized.
| Field | Type | Required | Description |
|---|---|---|---|
client |
TimeClient |
yes | |
synchronized |
boolean | null |
yes | |
source |
string | null |
yes |
TokenFileState
Whether the tokens in force are the token file's current content.
Type: "loaded" | "reload_failed"
TokenFileStatus
The service's token file: when its tokens were read, and whether the last change loaded.
| Field | Type | Required | Description |
|---|---|---|---|
state |
TokenFileState |
yes | |
loaded_at |
string |
yes | |
reload_failed_at |
string | null |
yes | |
expired_tokens |
integer |
yes | |
earliest_expiry |
string | null |
yes | |
tokens_without_expiry |
integer |
yes | |
admin_tokens |
integer |
yes |
ValidateRequest
What to validate: exactly one of the on-disk file, a ref to fetch, or a body.
| Field | Type | Required | Description |
|---|---|---|---|
source |
"file" | "ref" | null |
no | 'file' for the staged file on disk; 'ref' to fetch (needs sync). |
ref |
string (max length 256) | null |
no | |
body |
object | null |
no | A config document. An x-sensitive field may be only '[redacted]' or absent. |
ValidateResponse
The verdict: valid, or the errors, none of which carries a config value.
| Field | Type | Required | Description |
|---|---|---|---|
valid |
boolean |
yes | |
errors |
array of string |
no | Default: []. |
node_type |
string | null |
no |
ValidationError
| Field | Type | Required | Description |
|---|---|---|---|
loc |
array of string | integer |
yes | |
msg |
string |
yes | |
type |
string |
yes | |
input |
any | no | |
ctx |
object |
no |
ErrorDetail
| Field | Type | Required | Description |
|---|---|---|---|
detail |
string |
yes |
Release: v0.11.0