Skip to main content

Provider checks

Generated from apiome-rest/openapi.yaml (API version 1.204.1) — do not edit by hand. How to authenticate is on the REST API reference.

Tag: provider-checks · 4 operations

GET /v1/tenants/{tenant_slug}/projects/{project_ref}/checks​

List a project's provider check runs

A page of the project's normalized check verdicts, newest first. Each is one of pending, pass, fail or skipped about one commit of one bound draft.

Filters combine: version (revision id or version label), commit_sha, and state.

No repository credential appears anywhere in the response.

Requires projects:view.

Operation id: list_checks_v1_tenants__tenant_slug__projects__project_ref__checks_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_refpathstringyesPath parameter identifying the project ref segment.
versionquerystring or nullnoRevision id or version label.
commit_shaquerystring or nullnoOnly checks about this commit.
statequerystring or nullnoOnly checks in this state: pending, pass, fail, skipped.
limitqueryintegernoPage size.
offsetqueryintegernoCheck runs to skip.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for list a project's provider check runs.application/json CheckListResponse
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/projects/{project_ref}/checks/{check_id}​

Read one check run

One normalized verdict with every attempt to publish it to the provider: what state was sent, whether it was dispatched, suppressed or failed, the provider's status code, and its refusal — redacted, because a provider's error body is outside our control.

Requires projects:view.

Operation id: read_check_v1_tenants__tenant_slug__projects__project_ref__checks__check_id__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_refpathstringyesPath parameter identifying the project ref segment.
check_idpathstringyesPath parameter identifying the check id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for read one check run.application/json CheckRunDetail
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/projects/{project_ref}/versions/{version_ref}/binding/checks​

List a version's provider check runs

The checks recorded against this version's binding, newest first.

Requires projects:view.

Operation id: list_version_checks_v1_tenants__tenant_slug__projects__project_ref__versions__version_ref__binding_checks_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_refpathstringyesPath parameter identifying the project ref segment.
version_refpathstringyesPath parameter identifying the version ref segment.
commit_shaquerystring or nullnoOnly checks about this commit.
limitqueryintegernoPage size.
offsetqueryintegernoCheck runs to skip.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for list a version's provider check runs.application/json CheckListResponse
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/projects/{project_ref}/versions/{version_ref}/binding/checks​

Record a check verdict against a version's binding

Record one normalized verdict — pending, pass, fail or skipped — about a commit of the ref this draft is bound to, and publish it to the provider.

Idempotent. (binding, commit, name) identifies the check, so the same call twice is one verdict a reviewer reads, not two they have to reconcile. Pass rerun: true to say this is a fresh run of the same check, which advances its attempt counter.

commit_sha defaults to the commit the binding is synchronized with. publish: false records the verdict without sending it, which is useful while a check suite is being developed against a real repository — the attempt is still ledgered, as suppressed.

Recording never fails because publishing did. A provider that refuses the write leaves a failed row on the check's publish ledger and a 201 here: a verdict that was recorded and not published is evidence, and losing it would be worse than not showing it. Read the check back to see what the provider did.

The repository token is resolved server-side from the registration the binding was authorized through; a credential is never accepted in the body.

Requires versions:edit.

Operation id: record_check_v1_tenants__tenant_slug__projects__project_ref__versions__version_ref__binding_checks_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_refpathstringyesPath parameter identifying the project ref segment.
version_refpathstringyesPath parameter identifying the version ref segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for record a check verdict against a version's binding.

Responses

StatusDescriptionBody
201Successful response for record a check verdict against a version's binding.application/json CheckRunDetail
422Validation Errorapplication/json HTTPValidationError

Schemas used​

CheckListResponse​

A page of a project's check runs.

PropertyTypeRequiredDescription
checksarray of CheckRunRecordnoCheck runs, newest first.
countintegeryesHow many check runs this page holds.
limitintegeryesThe page size used.
offsetintegeryesThe offset used.
providersarray of stringnoProviders a verdict can be published to through the status adapter.

CheckRunDetail​

A check run with the publish attempts behind it.

PropertyTypeRequiredDescription
checkCheckRunRecordyesCheck.
deliveriesarray of CheckDeliveryRecordnoPublish attempts, newest first.

CheckRunUpsert​

Record a check verdict against a version's active binding.

Idempotent by construction: (binding, commit, name) identifies the check, so the same call twice is one verdict. A credential is never accepted in the body — the repository token is resolved server-side from the binding's registration.

PropertyTypeRequiredDescription
namestringnoThe check's stable name; the same name on the same commit is the same check.
stateenum "pending", "pass", "fail", "skipped"nopending, pass, fail, or skipped.
commit_shastring or nullnoThe commit to report against; defaults to the binding's synchronized commit.
titlestringnoOne-line title.
summarystringnoThe longer explanation.
details_urlstringnoWhere the check points a reviewer; a failure should be a reason, not a log.
pr_numberinteger or nullnoThe pull request the commit belongs to, when known.
publishbooleannoPublish the verdict to the provider as well as recording it. False records it only — useful while a check suite is being developed against a real repository.
rerunbooleannoTreat this as a fresh run of the same check: the attempt counter advances. Without it, re-recording the same verdict leaves the row exactly as it is.

HTTPValidationError​

Validation error response emitted when request data fails schema checks.

PropertyTypeRequiredDescription
detailarray of ValidationErrornoDetail.