Skip to main content

Pact broker

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

Tag: pact-broker · 140 operations

GET /v1/tenants/{tenant_slug}/pact-broker​

Pact Broker index

The entry point of the Pact Broker–compatible API: the links a Pact client discovers the other routes from. Give a Pact client this URL as its broker base URL and a workspace API key as its token.

pb:publish-contracts is what pact-broker publish and the Pact libraries post to; pb:provider-pacts-for-verification is what a Pact verifier posts its consumer-version selectors to. pb:publish-pact, pb:latest-pact-version, pb:pact-version, pb:latest-provider-pacts and the others are URI templates. pb:environments lists the environments pact-broker record-deployment looks an environment up in. pb:can-i-deploy-pacticipant-version-to-environment and …-to-tag answer whether a version can be deployed; pact-broker can-i-deploy asks …/pact-broker/matrix. pb:webhooks and pb:webhook are what pact-broker create-webhook and create-or-update-webhook use.

A workspace API key may be sent as Authorization: Bearer <key>, or as the password of basic auth (any username), on every route under /pact-broker. A restricted key needs a Pact scope: pact:read for reads, pact:publish to publish pacts and record deployments, pact:verify to publish verification results. Requires pacts:view.

Operation id: pact_broker_index_v1_tenants__tenant_slug__pact_broker_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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 pact broker index.application/hal+json any
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-broker/can-i-deploy​

Can I deploy?

Whether one version of a pacticipant can be deployed — the index's pb:can-i-deploy-pacticipant-version-to-environment and …-to-tag links.

pacticipant and version name what is being deployed. toEnvironment names where: the version is checked against every version of its providers and consumers currently deployed to or released in that environment. to names a tag instead: it is checked against the latest version of each with that tag. Give exactly one of the two. ignore leaves a pacticipant out of the verdict.

The answer is the matrix document of GET …/matrix: summary.deployable is true, false, or null (a verification result is missing; Retry-After says when to ask again). An environment marked contractRequired refuses a version that has no pact at all (no-pact).

Always 200 when the query is valid. Requires pacts:view.

Operation id: read_can_i_deploy_v1_tenants__tenant_slug__pact_broker_can_i_deploy_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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.
pacticipantquerystringyesThe pacticipant being deployed: its name or handle.
versionquerystringyesThe version being deployed.
toEnvironmentquerystringnoThe environment being deployed to. environment is accepted too.
toquerystringnoA tag instead of an environment: check against the latest version of each other pacticipant with it.
ignorequeryarray of stringnoA pacticipant whose rows do not count towards the verdict. Repeat for several; ignore[][pacticipant] with ignore[][version] ignores one version.

Responses

StatusDescriptionBody
200The verdict and the rows it was reached from. summary.deployable is true, false, or null when a verification result is missing — then Retry-After says when to ask again.application/hal+json any
400pact-matrix-invalid: the query is malformed, or names a pacticipant or an environment that does not exist. detail.pointer names the parameter.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-broker/contracts/provider/{provider}/version/{provider_version}​

Read a provider contract

The provider contract a provider version published: contractType, contentSha, oasVersion and operationCount (asyncapiVersion and messageCount for an AsyncAPI contract), contentType, where it came from (source: inline, or apiome with the project and version it was rendered from), the verificationResults sent with it, and the document in content.

{provider} is a pacticipant's handle, id or name. Requires pacts:view.

Operation id: read_contract_v1_tenants__tenant_slug__pact_broker_contracts_provider__provider__version__provider_version__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
provider_versionpathstringyesPath parameter identifying the provider version 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 a provider contract.application/hal+json any
404pacticipant-not-found or provider-contract-not-found.—
422Validation Errorapplication/json HTTPValidationError

PUT /v1/tenants/{tenant_slug}/pact-broker/contracts/provider/{provider}/version/{provider_version}​

Publish a provider contract

Register the provider's OpenAPI (or AsyncAPI) document — its provider contract — against a provider version, for bi-directional contract testing. Send the document inline in content (base64; JSON or YAML, PactFlow's shape) or name an Apiome version in apiomeVersion (ledger-api@1.4.0) to render it from the canonical model with the exporter GET /v1/schema/… uses (OpenAPI 3.1). With a provider bound to its Apiome project, apiomeVersion may be just the version, and latest is the project's newest.

  • OpenAPI 3.0, 3.1 and 3.2, validated against its version's meta-schema — or, for message pacts, AsyncAPI 2.x and 3.x (contractType: asyncapi, read from the document when omitted; inline only), checked for its version, info, channels, operations and local $refs. Swagger 2.0 and anything else are 422 provider-contract-invalid, with detail.pointer locating the problem.
  • The provider is registered on first use, and the version is recorded with its branch, tags and buildUrl, as PUT …/pacticipants/{ref}/versions/{number} does.
  • Content is stored once. The document is addressed by the SHA-256 of its canonical JSON (contentSha), so JSON, YAML and a rendered copy of one document are one contract.
  • Write-once. 201 for a new contract, 200 when the same contract and self-verification results are published again (nothing changes), 409 for anything different.

Self-verification evidence. The contract is trusted only when evidence says the provider matches it. verificationResults carries a report — JUnit XML (Schemathesis, Dredd, Newman or any JUnit writer), Newman JSON or Schemathesis NDJSON, at most APIOME_PACT_EVIDENCE_MAX_BYTES — or names an Apiome provider-verification report in providerVerificationReportId. The report is read and recorded with its kind, tool and SHA-256 digest in selfVerification: verified, failed, inconclusive (unreadable, nothing executed, or an Apiome report of another version) or missing. Without verified evidence the contract is unverified: its comparisons read verdict unverified, and under APIOME_PACT_UNVERIFIED_PROVIDER_CONTRACT=fail they fail.

Bi-directional comparison. After the contract is stored it is compared with the pacts that need it — each consumer's main-branch pact, the pacts deployed or released, the latest pact of each consumer on the provider version's branch, and every pact compared before with a contract of that branch — and each comparison is stored as a verification result with kind: bidirectional, which the matrix and can-i-deploy read like a native one. comparisons in the response reports each pact. Requires pacts:create, versions:view with apiomeVersion, and verification_evidence:view with providerVerificationReportId.

Operation id: publish_contract_v1_tenants__tenant_slug__pact_broker_contracts_provider__provider__version__provider_version__put

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
provider_versionpathstringyesPath parameter identifying the provider version 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 publish a provider contract.

  • application/json — object
PropertyTypeRequiredDescription
contentstringnoThe OpenAPI 3.x or AsyncAPI 2.x / 3.x document (JSON or YAML), base64-encoded. Send this or apiomeVersion.
contractTypeenum "oas", "asyncapi"nooas for an OpenAPI 3.x document (HTTP pacts), asyncapi for an AsyncAPI 2.x / 3.x document (message pacts). Read from the document when omitted. An AsyncAPI contract is always sent inline in content.
contentTypestringnoHow content is encoded: application/json or application/yaml. Sniffed when omitted.
apiomeVersionstringno<project>@<version>: render the contract from an Apiome version instead of sending it. <version> alone uses the project the provider is bound to; latest is the project's newest version. Send this or content.
branchstringnoThe repository branch the version was built from.
tagsarray of stringnoTags for the provider version (at most 50).
buildUrlstringnohttp(s) URL of the CI build.
verificationResultsobjectnoThe provider's self-verification (PFX-2.4): a report in content, or an Apiome provider-verification report in providerVerificationReportId — not both. Read into selfVerification; without passing evidence the contract is unverified.

Responses

StatusDescriptionBody
200The same contract was published again: nothing changed. comparisons reports the pacts compared with it, as for 201.application/hal+json any
201The contract was published for this provider version. selfVerification says what the evidence proved (status verified, failed, inconclusive or missing, with kind, tool, digest, summary and reasons) and whether the contract is providerContractVerified. comparisons reports the bi-directional comparisons the publish ran: the counts (compared, alreadyCompared, errors, skipped) and one entry per pact, with its status, verdict (unverified when the contract has no passing evidence), success and verificationNumber.—
409provider-contract-conflict: this provider version already published a different contract (or the same one with different self-verification results). Nothing was stored.—
413provider-contract-too-large: the document or the request is over the size limit. provider-contract-evidence-too-large: the self-verification report is over APIOME_PACT_EVIDENCE_MAX_BYTES.—
422provider-contract-invalid: the document is not OpenAPI 3.0, 3.1 or 3.2 (or, as contractType: asyncapi, not AsyncAPI 2.x / 3.x) — detail.pointer is the JSON Pointer of the problem in the document (/swagger for Swagger 2.0, /openapi, /asyncapi, the first meta-schema error, or the first structural problem of an AsyncAPI document). provider-contract-request-invalid / provider-contract-unsupported: a field of the request (detail.pointer locates it). provider-contract-source-not-found: apiomeVersion names no project or version of this workspace. provider-contract-evidence-unsupported: the report's contentType is not one a report is read as. provider-contract-evidence-invalid: the report is not what its type says (XML that does not parse or is not JUnit, a DTD, JSON that is not JSON, text that is not UTF-8). provider-contract-evidence-report-not-found: providerVerificationReportId names no report of this workspace.—
429pact-publish-rate-limited: over the workspace's publish budget; see Retry-After.—

POST /v1/tenants/{tenant_slug}/pact-broker/contracts/provider/{provider}/version/{provider_version}/check​

Check a provider contract before publishing it

Say what publishing this provider contract would record, and store nothing. Send the body of the publish (PUT …/contracts/provider/{provider}/version/{providerVersion}) — or contentUrl instead of content to read the document from a URL once (public addresses only; the bytes come back in fetched so the same document can be published).

  • The pacts a publish would compare with: each consumer's main-branch pact, the pacts deployed or released, the latest pact of each consumer on branch, and the pacts compared before with a contract of that branch — compared with the same engine and evidence policy, so results[].verdict and success are what the publish would store (unverified when the evidence does not pass). Each result names the consumer version's environments and its first failures.
  • coverage: the contract's operations, and in unused the ones no compared pact touches (OpenAPI only; coverageReason says why it is null).
  • existing: the contract this version already published — sameContent: false means the publish would be refused with 409; summary.publishable says so.
  • selfVerification: the evidence as a publish would read it.

An unknown provider is not an error: it has no pacts yet (provider.exists: false). Requires pacts:view, versions:view with apiomeVersion, verification_evidence:view with providerVerificationReportId. Not a Pact Broker endpoint.

Operation id: check_provider_contract_v1_tenants__tenant_slug__pact_broker_contracts_provider__provider__version__provider_version__check_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
provider_versionpathstringyesPath parameter identifying the provider version 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 check a provider contract before publishing it.

  • application/json — object
PropertyTypeRequiredDescription
contentstringnoThe document, base64-encoded.
contentUrlstring (uri)noRead the document from this http(s) URL, once, instead of content. The bytes come back in fetched.content to publish inline.
contractTypeenum "oas", "asyncapi"noContract Type.
contentTypestringnoContent Type.
apiomeVersionstringno<project>@<version>.
branchstringnoSelects the branch's pacts, as a publish does.
verificationResultsobjectnoAs for the publish: read into selfVerification, never stored.

Responses

StatusDescriptionBody
200Successful response for check a provider contract before publishing it.application/json object
413provider-contract-too-large: the document or the request is over the size limit.—
422As for the publish (provider-contract-invalid with the pointer into the document, provider-contract-request-invalid, the evidence refusals), and provider-contract-url-unreadable for a contentUrl that is refused or cannot be read.—
429pact-check-rate-limited: over the workspace's check budget; see Retry-After.—

POST /v1/tenants/{tenant_slug}/pact-broker/contracts/publish​

Publish the pacts of a consumer version

Publish every pact one build of a consumer produced, in one request — what pact-broker publish and pact-js publishPacts call. The body is the Pact Broker's: the consumer (pacticipantName), its version, optional branch, tags and buildUrl, and contracts, each with the provider's name and the Pact document base64-encoded in content.

  • Applications are registered on first use. A consumer or provider the workspace does not have yet becomes a pacticipant.
  • The version is recorded with its branch and tags, exactly as PUT …/pacticipants/{ref}/versions/{number} does.
  • Content is stored once. A pact identical to one an earlier consumer version published reuses that pact version (pactVersionSha), so the provider has one thing to verify.
  • All or nothing. If any contract is refused, nothing of the request is stored.
  • Safe to repeat. Publishing the same pacts for the same version again changes nothing. Publishing a different pact for a version that already has one is 409.
  • One consumer model. Each new pact refreshes the consumer's declared surface in the provider's project (its next contract revision) when the provider pacticipant is bound to a project; interactions that cannot be placed stay on the revision with reason codes. The response lists the outcome in consumerContracts and as notices; a pact that cannot be placed is reported with a reason, never dropped.
  • Bi-directional comparison. When a provider has published a provider contract, each pact is compared with the contracts of its latest provider version, the head of each provider branch and every provider version deployed or released. Each comparison is stored as a verification result with kind: bidirectional; the response lists them in comparisons and as notices.

Pact specification 1.x to 4.x is accepted and stored as published. merge conflict handling and non-Pact specifications are refused with 422 pact-publish-unsupported.

The response carries notices (the lines the CLI prints) and a pb:contracts link per pact. Requires pacts:create.

Operation id: publish_contracts_v1_tenants__tenant_slug__pact_broker_contracts_publish_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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 publish the pacts of a consumer version.

  • application/json — object
PropertyTypeRequiredDescription
pacticipantNamestringyesThe consumer publishing.
pacticipantVersionNumberstringyesIts application version, as the build reports it (a commit SHA).
branchstringnoThe repository branch the version was built from.
tagsarray of stringnoTags for the version (at most 50).
buildUrlstringnohttp(s) URL of the CI build.
contractsarray of objectyesContracts.

Responses

StatusDescriptionBody
200Successful response for publish the pacts of a consumer version.application/hal+json any
409pact-content-conflict: this consumer version already published a different pact for the provider. Nothing of the request was stored. Publish under a new consumer version number.—
413pact-too-large: the document or the request is over the size limit.—
422pact-invalid: the document is not a pact. detail.pointer is the JSON Pointer of the first problem in the document (for example /interactions/2/request/method) and detail.message says what is wrong there.—
429pact-publish-rate-limited: over the workspace's publish budget; see Retry-After.—

GET /v1/tenants/{tenant_slug}/pact-broker/deployed-versions/{uuid}​

Read a deployment

One deployment, current or not. Requires pacts:view.

Operation id: read_deployed_version_v1_tenants__tenant_slug__pact_broker_deployed_versions__uuid__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
uuidpathstringyesThe deployment's uuid.
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 a deployment.application/hal+json any
404pact-deployed-version-not-found: no such deployment in this workspace.—
422Validation Errorapplication/json HTTPValidationError

PATCH /v1/tenants/{tenant_slug}/pact-broker/deployed-versions/{uuid}​

Record an undeployment

{"currentlyDeployed": false} records that the version is no longer deployed — what pact-broker record-undeployment sends to each matching deployment's self link. The deployment stays in the history. Patching an undeployed deployment changes nothing; true is refused (record the deployment again instead).

Requires pacts:edit.

Operation id: patch_deployed_version_v1_tenants__tenant_slug__pact_broker_deployed_versions__uuid__patch

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
uuidpathstringyesThe deployment's uuid.
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 an undeployment.

  • application/merge-patch+json — object
  • application/json — object
PropertyTypeRequiredDescription
currentlyDeployedenum falsenoCurrently Deployed.
PropertyTypeRequiredDescription
currentlyDeployedenum falsenoCurrently Deployed.

Responses

StatusDescriptionBody
200Successful response for record an undeployment.application/hal+json any
404pact-deployed-version-not-found: no such deployment in this workspace.—
422pact-deployment-invalid: currentlyDeployed is not false.—

GET /v1/tenants/{tenant_slug}/pact-broker/environments​

List environments

The workspace's environments — what pact-broker list-environments prints and what record-deployment, record-undeployment and record-support-ended look an environment up in (_links.pb:environments, each named after its environment). ?name= narrows the list to the environment with exactly that name.

Requires pacts:view.

Operation id: read_environments_v1_tenants__tenant_slug__pact_broker_environments_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
namequerystring or nullnoOnly the environment with exactly this name.
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 environments.application/hal+json any
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/pact-broker/environments​

Create an environment

Create an environment — what pact-broker create-environment --name production --production posts. name is one word (no spaces) and unique in the workspace; displayName defaults to the name; production defaults to false. Apiome adds contractRequired: can-i-deploy to the environment refuses a pacticipant without a contract.

Answers 201 with the environment and its URL in Location. Requires pacts:create.

Operation id: post_environment_v1_tenants__tenant_slug__pact_broker_environments_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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 create an environment.

  • application/json — object
PropertyTypeRequiredDescription
namestringyesThe name tooling uses: one word, no spaces.
displayNamestringnoThe name people read; the name when omitted.
productionbooleannoProduction.
contractRequiredbooleannoApiome only: can-i-deploy to this environment refuses a pacticipant that has no contract.
contactsarray of objectnoContacts.

Responses

StatusDescriptionBody
201Successful response for create an environment.application/hal+json any
409pact-environment-name-taken: another environment has this name.—
422pact-environment-invalid: the body is malformed; detail.pointer names the field.—

GET /v1/tenants/{tenant_slug}/pact-broker/environments/{uuid}​

Read an environment

One environment by its uuid — the index's pb:environment template, and what pact-broker describe-environment reads. Requires pacts:view.

Operation id: read_environment_v1_tenants__tenant_slug__pact_broker_environments__uuid__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
uuidpathstringyesThe environment's uuid, as GET …/environments lists it.
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 an environment.application/hal+json any
404pact-environment-not-found: no such environment in this workspace.—
422Validation Errorapplication/json HTTPValidationError

PUT /v1/tenants/{tenant_slug}/pact-broker/environments/{uuid}​

Replace an environment

Replace every field of an environment — what pact-broker update-environment sends. The body is the same as for creating one; a field left out returns to its default. Renaming is allowed: deployments refer to the environment by uuid.

Requires pacts:edit.

Operation id: put_environment_v1_tenants__tenant_slug__pact_broker_environments__uuid__put

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
uuidpathstringyesThe environment's uuid, as GET …/environments lists it.
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 replace an environment.

  • application/json — object
PropertyTypeRequiredDescription
namestringyesThe name tooling uses: one word, no spaces.
displayNamestringnoThe name people read; the name when omitted.
productionbooleannoProduction.
contractRequiredbooleannoApiome only: can-i-deploy to this environment refuses a pacticipant that has no contract.
contactsarray of objectnoContacts.

Responses

StatusDescriptionBody
200Successful response for replace an environment.application/hal+json any
404pact-environment-not-found: no such environment in this workspace.—
409pact-environment-name-taken: another environment has this name.—
422pact-environment-invalid: the body is malformed.—

DELETE /v1/tenants/{tenant_slug}/pact-broker/environments/{uuid}​

Delete an environment

Delete an environment and every deployment and release recorded to it — what pact-broker delete-environment calls. can-i-deploy can no longer be asked about it. Answers 204. Requires pacts:delete.

Operation id: remove_environment_v1_tenants__tenant_slug__pact_broker_environments__uuid__delete

Parameters

NameInTypeRequiredDescription
uuidpathstringyesThe environment's uuid, as GET …/environments lists it.
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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
204Successful response for delete an environment.—
404pact-environment-not-found: no such environment in this workspace.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-broker/environments/{uuid}/deployed-versions/currently-deployed​

List the versions currently deployed to an environment

What is deployed to the environment now, newest first, under _embedded.deployedVersions — what pact-broker record-undeployment reads before it patches each match.

  • pacticipant narrows to one pacticipant (handle or name; an unknown one lists nothing).
  • applicationInstance narrows to one instance; sent empty, to the unnamed instance. target is its deprecated name.

Requires pacts:view.

Operation id: read_currently_deployed_v1_tenants__tenant_slug__pact_broker_environments__uuid__deployed_versions_currently_deployed_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
uuidpathstringyesThe environment's uuid, as GET …/environments lists it.
pacticipantquerystring or nullnoOnly this pacticipant (handle or name).
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 the versions currently deployed to an environment.application/hal+json any
404pact-environment-not-found: no such environment in this workspace.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-broker/environments/{uuid}/released-versions/currently-supported​

List the versions released and supported in an environment

The releases still supported in the environment, newest first, under _embedded.releasedVersions — what pact-broker record-support-ended reads. pacticipant and version narrow the list.

Requires pacts:view.

Operation id: read_currently_supported_v1_tenants__tenant_slug__pact_broker_environments__uuid__released_versions_currently_supported_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
uuidpathstringyesThe environment's uuid, as GET …/environments lists it.
pacticipantquerystring or nullnoOnly this pacticipant (handle or name).
versionquerystring or nullnoOnly this version number.
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 the versions released and supported in an environment.application/hal+json any
404pact-environment-not-found: no such environment in this workspace.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-broker/labels​

List every label (Pact Broker shape)

Every distinct label on the workspace's pacticipants, by name, under _embedded.labels. Requires pacts:view.

Operation id: read_broker_labels_v1_tenants__tenant_slug__pact_broker_labels_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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 every label (pact broker shape).application/hal+json any
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-broker/matrix​

Query the matrix

The matrix: which consumer versions were verified against which provider versions, and the verdict on deploying the versions asked about. This is the Pact Broker's GET /matrix, and what pact-broker can-i-deploy calls.

  • Selectors (q[][pacticipant] …) name the versions in question. One selector with a destination asks can I deploy this?; two or more ask do these work together?
  • Destination: environment checks against every version currently deployed to or released in that environment; tag with latest=true against the latest version with that tag; latest=true alone against the latest version of each other pacticipant; mainBranch=true (with latest=true) against main branches. The other pacticipants are worked out from the pacts.
  • Verdict (summary.deployable): true when every row that counts succeeded (or nothing depends on the version); false when a verification failed or a named version does not exist; null when a result is missing. A consumer needs its providers to be there; a provider does not need its consumers.
  • Reasons: summary.reason and notices use the Pact Broker's wording. Each notice has a code and each row a reason (verified, verification-failed, pact-pending, no-verification-result); no-pact is the notice when the environment requires a contract and the version has none.
  • Ignore: rows of an ignore[][pacticipant] are returned with ignored: true and do not count.
  • Retry while unknown: a null verdict comes with Retry-After.

Always 200 when the query is valid — read summary.deployable, not the status. Requires pacts:view.

Operation id: read_matrix_v1_tenants__tenant_slug__pact_broker_matrix_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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.
q[][pacticipant]queryarray of stringnoA pacticipant to put in the matrix. Repeat q[][pacticipant] (each followed by its own q[][version], q[][latest], q[][tag], q[][branch], q[][environment] or q[][mainBranch]) for several.
q[][version]queryarray of stringnoExactly this version of the pacticipant.
q[][latest]queryarray of stringnotrue: only the latest of the versions described.
q[][tag]queryarray of stringnoVersions with this tag.
q[][branch]queryarray of stringnoVersions recorded on this branch.
q[][environment]queryarray of stringnoVersions currently deployed to, or released and supported in, this environment.
q[][mainBranch]queryarray of stringnotrue: versions on the pacticipant's main branch.
latestbyqueryenum "cvp", "cvpv", "cp"noCollapse rows to the latest result per consumer version and provider (cvp), per consumer version and provider version (cvpv), or per consumer and provider (cp). Without it every result is a row.
limitqueryintegernoThe most rows to return.
environmentquerystringnoThe destination: check against every version currently in this environment (can-i-deploy --to-environment).
tagquerystringnoThe destination: check against versions with this tag (can-i-deploy --to, with latest=true).
latestquerybooleannotrue: check against the latest version of each other pacticipant.
mainBranchquerybooleannotrue: check against each other pacticipant's main branch.
ignore[][pacticipant]queryarray of stringnoA pacticipant whose rows do not count towards the verdict; ignore[][version] narrows it to one version.
success[]queryarray of stringnoKeep only rows with this result: true, false, or empty for rows without a result.

Responses

StatusDescriptionBody
200The verdict and the rows it was reached from. summary.deployable is true, false, or null when a verification result is missing — then Retry-After says when to ask again.application/hal+json any
400pact-matrix-invalid: the query is malformed, or names a pacticipant or an environment that does not exist. detail.pointer names the parameter.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-broker/pacticipants/label/{label}​

List the pacticipants with a label (Pact Broker shape)

The pacticipants carrying {label}, under _embedded.pacticipants and pb:pacticipants; an empty list when none does. Requires pacts:view.

Operation id: read_broker_pacticipants_with_label_v1_tenants__tenant_slug__pact_broker_pacticipants_label__label__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
labelpathstringyesPath parameter identifying the label 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 list the pacticipants with a label (pact broker shape).application/hal+json any
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-broker/pacticipants/{pacticipant}​

Read a pacticipant (Pact Broker shape)

A pacticipant in the Pact Broker's shape (name, repositoryUrl, mainBranch, _links) — what the pb:consumer, pb:provider and pb:pacticipant links of this API lead to. To register or change a pacticipant, use /v1/tenants/{tenant_slug}/pacticipants.

{pacticipant} is its handle, id or name. Requires pacts:view.

Operation id: read_broker_pacticipant_v1_tenants__tenant_slug__pact_broker_pacticipants__pacticipant__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
pacticipantpathstringyesPath parameter identifying the pacticipant 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 a pacticipant (pact broker shape).application/hal+json any
422Validation Errorapplication/json HTTPValidationError

DELETE /v1/tenants/{tenant_slug}/pact-broker/pacticipants/{pacticipant}​

Delete a pacticipant (Pact Broker shape)

Delete a pacticipant with its versions, pacts, verification results and deployments. Soft: it can be restored through POST /v1/tenants/{tenant_slug}/pacticipants/{p}/restore until it is purged (APIOME_PACT_DELETION_GRACE_DAYS, default 30). 409 pacticipant-version-in-use while a version is deployed or released, unless force=true. Requires pacts:delete.

Operation id: delete_broker_pacticipant_v1_tenants__tenant_slug__pact_broker_pacticipants__pacticipant__delete

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
pacticipantpathstringyesPath parameter identifying the pacticipant segment.
reasonquerystring or nullnoWhy; stored with the delete and audited.
forcequerybooleannoDelete even when a version is currently deployed or released.
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
204Successful response for delete a pacticipant (pact broker shape).—
422Validation Errorapplication/json HTTPValidationError

PUT /v1/tenants/{tenant_slug}/pact-broker/pacticipants/{pacticipant}/branches/{branch}/versions/{version}​

Record a version on a branch (Pact Broker shape)

Record a pacticipant version on a branch — the pb:branch-version link a Pact verifier follows to record the provider's branch before it publishes a result. The pacticipant and the version are registered when the workspace does not have them yet; the branch head moves only to a version recorded later. The body is ignored.

Answers 201 when the version is new, 200 otherwise. {branch} may contain /. Requires pacts:create.

Operation id: put_branch_version_v1_tenants__tenant_slug__pact_broker_pacticipants__pacticipant__branches__branch__versions__version__put

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
pacticipantpathstringyesPath parameter identifying the pacticipant segment.
branchpathstringyesGit branch name.
versionpathstringyesEndpoint or API version metadata.
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 record a version on a branch (pact broker shape).application/hal+json any
201The version was created and recorded on the branch.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-broker/pacticipants/{pacticipant}/labels/{label}​

Read a label (Pact Broker shape)

One label of a pacticipant; 404 when it does not carry it. Requires pacts:view.

Operation id: read_broker_label_v1_tenants__tenant_slug__pact_broker_pacticipants__pacticipant__labels__label__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
pacticipantpathstringyesPath parameter identifying the pacticipant segment.
labelpathstringyesPath parameter identifying the label 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 a label (pact broker shape).application/hal+json any
422Validation Errorapplication/json HTTPValidationError

PUT /v1/tenants/{tenant_slug}/pact-broker/pacticipants/{pacticipant}/labels/{label}​

Label a pacticipant (Pact Broker shape)

Put a label on a pacticipant. 201 with a Location header when the label is new, 200 when the pacticipant already had it. Unlike the Pact Broker, an unknown pacticipant is 404, not created. Requires pacts:edit.

Operation id: put_broker_label_v1_tenants__tenant_slug__pact_broker_pacticipants__pacticipant__labels__label__put

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
pacticipantpathstringyesPath parameter identifying the pacticipant segment.
labelpathstringyesPath parameter identifying the label 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 label a pacticipant (pact broker shape).application/hal+json any
422Validation Errorapplication/json HTTPValidationError

DELETE /v1/tenants/{tenant_slug}/pact-broker/pacticipants/{pacticipant}/labels/{label}​

Remove a label (Pact Broker shape)

Take a label off a pacticipant; 404 when it does not carry it. Requires pacts:edit.

Operation id: delete_broker_label_v1_tenants__tenant_slug__pact_broker_pacticipants__pacticipant__labels__label__delete

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
pacticipantpathstringyesPath parameter identifying the pacticipant segment.
labelpathstringyesPath parameter identifying the label 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
204Successful response for remove a label (pact broker shape).—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-broker/pacticipants/{pacticipant}/versions/{number}​

Read a pacticipant version (Pact Broker shape)

One version of a pacticipant in the Pact Broker's shape: number, buildUrl, and its branches and tags under _embedded — what the pb:consumer-version and pb:pacticipant-version links of this API lead to. pb:record-deployment and pb:record-release list one link per environment of the workspace, named after it — what pact-broker record-deployment and record-release post to.

{pacticipant} is its handle, id or name. Requires pacts:view.

Operation id: read_broker_pacticipant_version_v1_tenants__tenant_slug__pact_broker_pacticipants__pacticipant__versions__number__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
pacticipantpathstringyesPath parameter identifying the pacticipant segment.
numberpathstringyesPath parameter identifying the number 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 a pacticipant version (pact broker shape).application/hal+json any
422Validation Errorapplication/json HTTPValidationError

DELETE /v1/tenants/{tenant_slug}/pact-broker/pacticipants/{pacticipant}/versions/{number}​

Delete a pacticipant version (Pact Broker shape)

Delete one version with its pacts, the verification results it published and its deployments. Soft: restorable through POST /v1/tenants/{tenant_slug}/pacticipants/{p}/versions/{v}/restore until it is purged. 409 pacticipant-version-in-use while it is deployed or released, unless force=true. Requires pacts:delete.

Operation id: delete_broker_pacticipant_version_v1_tenants__tenant_slug__pact_broker_pacticipants__pacticipant__versions__number__delete

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
pacticipantpathstringyesPath parameter identifying the pacticipant segment.
numberpathstringyesPath parameter identifying the number segment.
reasonquerystring or nullnoWhy; stored with the delete and audited.
forcequerybooleannoDelete even when a version is currently deployed or released.
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
204Successful response for delete a pacticipant version (pact broker shape).—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-broker/pacticipants/{pacticipant}/versions/{version}/deployed-versions/environment/{uuid}​

List the deployments of a version to an environment

Every deployment of this version to the environment, current or not, newest first. Requires pacts:view.

Operation id: read_deployments_of_version_v1_tenants__tenant_slug__pact_broker_pacticipants__pacticipant__versions__version__deployed_versions_environment__uuid__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
pacticipantpathstringyesThe pacticipant's handle, id or name.
versionpathstringyesThe version number, exactly as recorded.
uuidpathstringyesThe environment's uuid, as GET …/environments lists it.
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 the deployments of a version to an environment.application/hal+json any
404pacticipant-not-found, pacticipant-version-not-found or pact-environment-not-found: the version must have been recorded (published a pact, or verified one) first.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/pact-broker/pacticipants/{pacticipant}/versions/{version}/deployed-versions/environment/{uuid}​

Record a deployment

Record that this version is now deployed to the environment — the version's pb:record-deployment link, which pact-broker record-deployment --pacticipant Ledger --version 4f1e2d0 --environment production posts to.

  • The pacticipant's previous deployment to the same environment and application instance is marked undeployed; it stays in the history.
  • Deployments to other application instances are not touched.
  • Recording the version that is already deployed there returns that deployment, 200.

overrideCanIDeploy=true says the deployment is recorded although can-i-deploy answered no (the Environments page's Record it anyway, PFX-8.12). It changes nothing about the deployment; it is written to the audit row, so an override is never silent.

can-i-deploy's answer just before recording is stored with the deployment (the Environments history's verified at the time, PFX-8.13).

Answers 201 with the deployment and its URL in Location. Requires pacts:create.

Operation id: post_deployment_v1_tenants__tenant_slug__pact_broker_pacticipants__pacticipant__versions__version__deployed_versions_environment__uuid__post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
pacticipantpathstringyesThe pacticipant's handle, id or name.
versionpathstringyesThe version number, exactly as recorded.
uuidpathstringyesThe environment's uuid, as GET …/environments lists it.
overrideCanIDeployquerybooleannoThe deployment is recorded although can-i-deploy answered no. Audited; changes nothing else.
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 (optional)

Request body for record a deployment.

  • application/json — object
PropertyTypeRequiredDescription
applicationInstancestringnoThe instance of the environment deployed to (a region, a customer). Omit it when the environment has one instance.
targetstringnoDeprecated name of applicationInstance.

Responses

StatusDescriptionBody
200This version was already the current deployment; it is returned.—
201Successful response for record a deployment.application/hal+json any
404pacticipant-not-found, pacticipant-version-not-found or pact-environment-not-found: the version must have been recorded (published a pact, or verified one) first.—
422pact-deployment-invalid: the body is malformed; detail.pointer names the field.—

GET /v1/tenants/{tenant_slug}/pact-broker/pacticipants/{pacticipant}/versions/{version}/released-versions/environment/{uuid}​

Read the release of a version to an environment

The release of this version to the environment, if any, under _embedded.releasedVersions. Requires pacts:view.

Operation id: read_releases_of_version_v1_tenants__tenant_slug__pact_broker_pacticipants__pacticipant__versions__version__released_versions_environment__uuid__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
pacticipantpathstringyesThe pacticipant's handle, id or name.
versionpathstringyesThe version number, exactly as recorded.
uuidpathstringyesThe environment's uuid, as GET …/environments lists it.
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 the release of a version to an environment.application/hal+json any
404pacticipant-not-found, pacticipant-version-not-found or pact-environment-not-found: the version must have been recorded (published a pact, or verified one) first.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/pact-broker/pacticipants/{pacticipant}/versions/{version}/released-versions/environment/{uuid}​

Record a release

Record that this version is released to the environment — the version's pb:record-release link, which pact-broker record-release posts to. Releases do not replace each other: every released version stays supported until record-support-ended. Recording a release again starts supporting it again and answers 200. can-i-deploy's answer just before recording is stored with the release (PFX-8.13).

The body is ignored. Requires pacts:create.

Operation id: post_release_v1_tenants__tenant_slug__pact_broker_pacticipants__pacticipant__versions__version__released_versions_environment__uuid__post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
pacticipantpathstringyesThe pacticipant's handle, id or name.
versionpathstringyesThe version number, exactly as recorded.
uuidpathstringyesThe environment's uuid, as GET …/environments lists it.
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
200The version was already released there; it is supported again.—
201Successful response for record a release.application/hal+json any
404pacticipant-not-found, pacticipant-version-not-found or pact-environment-not-found: the version must have been recorded (published a pact, or verified one) first.—
422pact-deployment-invalid: the body is malformed; detail.pointer names the field.—

PUT /v1/tenants/{tenant_slug}/pact-broker/pacticipants/{pacticipant}/versions/{version}/tags/{tag}​

Tag a version (Pact Broker shape)

Put a tag on a pacticipant version — the pb:version-tag link a Pact verifier follows to record the provider's tags before it publishes a result. The pacticipant and the version are registered when the workspace does not have them yet. The body is ignored.

Answers 201 when the version is new, 200 otherwise. Requires pacts:create.

Operation id: put_version_tag_v1_tenants__tenant_slug__pact_broker_pacticipants__pacticipant__versions__version__tags__tag__put

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
pacticipantpathstringyesPath parameter identifying the pacticipant segment.
versionpathstringyesEndpoint or API version metadata.
tagpathstringyesPath parameter identifying the tag 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 tag a version (pact broker shape).application/hal+json any
201The version was created with the tag.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/pact-broker/pacts/check​

Check a pact against provider versions before publishing

Compare an unpublished pact with the provider contracts of several provider versions at once, and store nothing. against names them: main (the newest version on the provider's main branch with a contract), deployed:<environment> (every version deployed to or released in it), version:<number>, and draft:<revision> (a revision of the Apiome project the provider is bound to, rendered as it stands).

  • The verdict a publish would record. Each version's verdict and success are what publishing this pact would store as its bi-directional verification result, evidence policy included (unverified when the contract has no passing self-verification).
  • Per interaction, outcome is match, differs or not-in-spec, with the failures; a row that does not match carries expected (what the pact needs) and declared (what the contract declares), each at most 8 KB.
  • Nothing dropped. A selector that names nothing is listed in unresolved with the reason; versions over the limit of 20 in skipped. summary.success is true only when every compared version passes and nothing is unresolved or skipped.

Requires pacts:view; a draft: selector also needs versions:view. Not a Pact Broker endpoint.

Operation id: check_pact_v1_tenants__tenant_slug__pact_broker_pacts_check_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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 check a pact against provider versions before publishing.

  • application/json — object
PropertyTypeRequiredDescription
pactobjectyesThe Pact document (v1 to v4), as a JSON object.
againstarray of stringyesProvider-version selectors: main, deployed:<environment>, version:<number>, draft:<revision> (a label, revision id or latest).

Responses

StatusDescriptionBody
200Successful response for check a pact against provider versions before publishing.application/json object
413pact-too-large: the request is over the size limit.—
422pact-check-invalid or pact-invalid, with pointer: a malformed request, an unknown field or selector, or a document that is not a pact.—
429pact-check-rate-limited: over the workspace's check budget; see Retry-After.—

POST /v1/tenants/{tenant_slug}/pact-broker/pacts/generate​

Generate a pact from a mock capture session

Turn a capture session — the calls a consumer made to the hosted mock with X-Mock-Capture — into a Pact v4 document, and store nothing.

  • Sources. Exactly one of session; traffic — the capture history of a mock version for one consumer (any of its versions), narrowed by since, until and caller (an API key id, or none), newest 5,000 calls at most (report.source.truncated says when the range holds more); or scenarios — operations × mock scenarios with no traffic, each servable pair one interaction whose provider state is the scenario. A pair the mock cannot serve as one fixed answer is in report.excluded with the reason. report.source.kind says which; the report is otherwise the same.
  • Grouping. Calls are grouped by operation (method and spec path), status and provider state; each group is one interaction. Calls injected by chaos mode, calls nothing in the spec matched and calls the mock refused are left out, each listed in report.excluded with its reason.
  • Provider states come from the X-Mock-Scenario behind a scenario answer (named after the scenario) or the stateful X-Mock-Session behind a session answer; path parameter values are its params.
  • Matching. exact, type (default) or spec (type plus the spec's uuid, date-time, date formats, patterns and integers). A field is expected when every response of the group has it; anything left out is in the interaction's left_out with the reason. A field redaction removed is restored from the spec's example with a type match, or left out.
  • Only what was read. fields: read keeps only the response fields the consumer reported reading (the SDK's fieldUsage hook or the mock's browser recorder post them to the mock); each removed field is in left_out with the reason, and an interaction no report covers says so and keeps every field (fields: all on its row). report.field_usage says what reports the source has.
  • Protocols. GraphQL operations become GraphQL-over-HTTP interactions, gRPC calls protobuf-plugin Synchronous/Messages interactions (the version's descriptors in metadata.plugins), and event messages Asynchronous/Messages interactions; interactions[].protocol says which. A call that cannot be expressed (a streaming gRPC method) is in report.excluded with the reason.
  • Overrides set one field's matcher or leave it out; each says what it applied_to and, where it did not apply, why (not_applied).
  • Leaving interactions out. leave_out names interactions that stay out of the pact; each is listed in report.left_out_interactions with its calls.
  • Checked and compared. report.spec_usage says how many of the spec's operations, and of the response fields those operations declare, the pact uses. report.spec_check compares the pact with the mocked spec revision (AsyncAPI for message pacts; GraphQL and gRPC pacts are checked by replay instead, and reason says so); report.previous lists what changed since the consumer's previous pact, and looser is true when an interaction or field it expected is no longer expected.

pact is null with report.empty_reason when no call could become an interaction. Publish the pact with the usual publish route.

Requires pacts:view and versions:view. Not a Pact Broker endpoint.

Operation id: generate_pact_from_capture_v1_tenants__tenant_slug__pact_broker_pacts_generate_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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 generate a pact from a mock capture session.

Responses

StatusDescriptionBody
200Successful response for generate a pact from a mock capture session.application/json object
404capture-session-not-found: unknown, expired or another workspace's session; capture-version-not-found: the traffic or scenarios mock version is not the workspace's.—
422pact-generate-provider-unknown (no single pacticipant is bound to the mocked project; name provider), pact-generate-field-usage-unavailable (fields: read and no field-usage report for the source), pact-generate-scenarios-spec-unavailable (the spec cannot be read to answer scenarios), or an invalid body (none or several sources, a window that ends before it starts).—
429pact-generate-rate-limited: over the workspace's budget; see Retry-After.—

GET /v1/tenants/{tenant_slug}/pact-broker/pacts/generate/scenarios​

List the operation × scenario pairs a pact can be built from

Every operation of the mocked spec × every scenario the version resolves (the four built-ins, then the stored ones): for each pair, whether the mock serves it as one fixed answer (servable, status, a note such as the first of a sequence) or why not (reason): the scenario does not change the operation, answers by rules over the request, renders a template, is marked off-spec, or answers a status the spec does not declare. default_scenario (happy-path) answers with the spec's success response. At most 300 operations are listed (truncated, operations_total). spec_reason says why there are no operations when the spec cannot be read.

Send the ticked pairs as scenarios.pairs to POST …/pacts/generate. Requires pacts:view and versions:view. Not a Pact Broker endpoint.

Operation id: get_generate_scenarios_v1_tenants__tenant_slug__pact_broker_pacts_generate_scenarios_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
projectquerystringyesThe mocked project's slug.
versionquerystringyesThe mocked version's label.
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 the operation × scenario pairs a pact can be built from.application/json object
404capture-version-not-found: the mock version is not the workspace's.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-broker/pacts/generate/traffic​

Count the past traffic a pact can be generated from

How many live captured calls one mock version holds for one consumer (any of its versions), in a window and from a caller: calls, sessions, first_call_at, last_call_at. callers lists every caller of the window whatever caller says — an API key (id, name; name is null for a deleted key) or none for calls made without one — most calls first, at most 50. max_calls is how many one generation reads (the newest); retention_days how long captures are kept. Captured calls carry no environment label, so the history cannot be narrowed by one.

Requires pacts:view and versions:view. Not a Pact Broker endpoint.

Operation id: get_generate_traffic_v1_tenants__tenant_slug__pact_broker_pacts_generate_traffic_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
projectquerystringyesThe mocked project's slug.
versionquerystringyesThe mocked version's label.
consumerquerystringyesThe consumer the calls were tagged for.
sincequerystring (date-time) or nullnoOnly calls captured at or after this instant.
untilquerystring (date-time) or nullnoOnly calls captured before this instant.
callerquerystring or nullnoAn API key id, or none for calls made without one.
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 count the past traffic a pact can be generated from.application/json object
404capture-version-not-found: the mock version is not the workspace's.—
422pact-generate-invalid-query: a bad consumer, window or caller.—

GET /v1/tenants/{tenant_slug}/pact-broker/pacts/provider/{provider}/consumer/{consumer}/branch/{branch}/latest​

Read the latest pact for a consumer branch

The pact of the latest consumer version recorded on branch {branch} that published one for the provider. A branch name with a / (feat/new-invoice) is sent as it is or with the slash encoded.

The body is the Pact document as published, plus createdAt and _links: self, pb:pact-version (the content address — the same for every consumer version that published this pact) and pb:latest-pact-version.

{provider} and {consumer} are a pacticipant's handle, id or name. Requires pacts:view.

Operation id: read_latest_branch_pact_v1_tenants__tenant_slug__pact_broker_pacts_provider__provider__consumer__consumer__branch__branch__latest_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
consumerpathstringyesPath parameter identifying the consumer segment.
branchpathstringyesGit branch name.
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 the latest pact for a consumer branch.application/hal+json any
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-broker/pacts/provider/{provider}/consumer/{consumer}/latest​

Read the latest pact

The pact of the latest consumer version that published one for the provider. Latest means recorded last, not highest version number.

The body is the Pact document as published, plus createdAt and _links: self, pb:pact-version (the content address — the same for every consumer version that published this pact) and pb:latest-pact-version.

{provider} and {consumer} are a pacticipant's handle, id or name. Requires pacts:view.

Operation id: read_latest_pact_v1_tenants__tenant_slug__pact_broker_pacts_provider__provider__consumer__consumer__latest_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
consumerpathstringyesPath parameter identifying the consumer 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 the latest pact.application/hal+json any
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-broker/pacts/provider/{provider}/consumer/{consumer}/latest/{tag}​

Read the latest pact for a consumer tag

The pact of the latest consumer version tagged {tag} that published one for the provider. Latest means recorded last.

The body is the Pact document as published, plus createdAt and _links: self, pb:pact-version (the content address — the same for every consumer version that published this pact) and pb:latest-pact-version.

{provider} and {consumer} are a pacticipant's handle, id or name. Requires pacts:view.

Operation id: read_latest_tagged_pact_v1_tenants__tenant_slug__pact_broker_pacts_provider__provider__consumer__consumer__latest__tag__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
consumerpathstringyesPath parameter identifying the consumer segment.
tagpathstringyesPath parameter identifying the tag 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 the latest pact for a consumer tag.application/hal+json any
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-broker/pacts/provider/{provider}/consumer/{consumer}/pact-version/{sha}​

Read a pact by its content version

A pact by its content address: the SHA-256 (64 hex characters) of its interactions, messages and specification version. Every consumer version that published the same pact shares this URL, so it is the one target a provider verifies. self names the latest consumer version that carries it.

The body is the Pact document as published, plus createdAt and _links: self, pb:pact-version (the content address — the same for every consumer version that published this pact) and pb:latest-pact-version.

{provider} and {consumer} are a pacticipant's handle, id or name. Requires pacts:view.

Operation id: read_pact_version_v1_tenants__tenant_slug__pact_broker_pacts_provider__provider__consumer__consumer__pact_version__sha__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
consumerpathstringyesPath parameter identifying the consumer segment.
shapathstringyesPath parameter identifying the sha 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 a pact by its content version.application/hal+json any
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/pact-broker/pacts/provider/{provider}/consumer/{consumer}/pact-version/{sha}/external-verification-results​

Ingest a verification report produced elsewhere

Publish the result of a verification that ran elsewhere — the report a team's own CI already has — instead of asking Apiome's hosted verifier to replay the pact (PFX-3.5).

The body is the report itself, not a Pact Broker result:

  • pact_verifier_cli --json output (Content-Type: application/json): the verifier's result / errors / pendingErrors, or a pacts[].interactions[] listing;
  • JUnit XML (application/xml): one <testcase> per interaction; a <failure> or <error> fails it, a <skipped> case is not verified and makes the result unsuccessful;
  • Schemathesis (PFX-8.9): --report ndjson (application/x-ndjson; one interaction per operation, each failed check a mismatch, skipped scenarios noticed and not counted, a run without EngineFinished recorded as failed) or --report junit;
  • Newman: newman run -r json (one interaction per execution, each failed assertion a mismatch) or -r junit;
  • Dredd: --reporter xunit.

The format is taken from format, else the content type, else the body: JUnit whose suite is named schemathesis or Dredd Tests is that tool's, JSON with run.executions and collection is Newman's, NDJSON with a Schemathesis Initialize event is Schemathesis'. A format the body does not match (a Dredd report that is not XML) is refused with the reason. ingestion.format names the tool read and ingestion.syntax how it was written (json, ndjson, xml). The report is mapped to the verification-result model of POST …/verification-results and stored as an ordinary result, so the matrix, can-i-deploy, pending pacts and webhooks see it. Nothing is dropped silently: the answer is the stored result plus an ingestion object whose notices name, with a JSON Pointer or location, every field the reader could not use and every judgement it made. A report with no interactions is refused (422 pact-verification-invalid) rather than published as a pass. The report is the verifier's word: it is not cross-checked against the interactions of the pact version.

providerApplicationVersion is required because neither format carries it. branch and tag record the provider version first, as a verifier's PUT calls would. Requires pacts:create.

Operation id: ingest_external_result_v1_tenants__tenant_slug__pact_broker_pacts_provider__provider__consumer__consumer__pact_version__sha__external_verification_results_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
consumerpathstringyesPath parameter identifying the consumer segment.
shapathstringyesPath parameter identifying the sha segment.
providerApplicationVersionquerystringyesThe provider version the report verified (a commit SHA).
buildUrlquerystring or nullnohttp(s) URL of the CI build.
branchquerystring or nullnoRecord the provider version on this branch first.
tagqueryarray of string or nullnoTag the provider version first (repeatable).
formatquerystringnoOne of auto, pact-verifier-json, junit, schemathesis, newman, dredd; auto reads the content type, then the body.
verifierquerystring or nullnoThe verifier's name, recorded in verifiedBy.
verifierVersionquerystring or nullnoThe verifier's version, recorded in verifiedBy.
providerVerificationReportIdquerystring or nullnoLink a CTG-4.3 provider verification report (a UUID).
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 ingest a verification report produced elsewhere.

  • application/json — object
  • application/xml — string

Responses

StatusDescriptionBody
201The stored result, with an ingestion object (format, syntax, interactions, notices).application/hal+json any
404pacticipant-not-found or pact-not-found: no such pair or pact version.—
422pact-verification-invalid: the body is malformed (detail.pointer names the field); pact-verification-report-not-found: providerVerificationReportId is not this workspace's.—

GET /v1/tenants/{tenant_slug}/pact-broker/pacts/provider/{provider}/consumer/{consumer}/pact-version/{sha}/metadata/{metadata}​

Read a pact by its content version (for-verification link)

The same pact as …/pact-version/{sha}. The last segment is the metadata a for-verification response encodes in its links (which selectors chose the pact, for which consumer version, whether it was pending); it does not change the pact returned, and pb:publish-verification-results carries it on, so the result records it.

The body is the Pact document as published, plus createdAt and _links: self, pb:pact-version (the content address — the same for every consumer version that published this pact) and pb:latest-pact-version.

{provider} and {consumer} are a pacticipant's handle, id or name. Requires pacts:view.

Operation id: read_pact_version_with_metadata_v1_tenants__tenant_slug__pact_broker_pacts_provider__provider__consumer__consumer__pact_version__sha__metadata__metadata__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
consumerpathstringyesPath parameter identifying the consumer segment.
shapathstringyesPath parameter identifying the sha segment.
metadatapathstringyesThe selection metadata of a for-verification link (URL-safe base64); kept for the result.
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 a pact by its content version (for-verification link).application/hal+json any
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/pact-broker/pacts/provider/{provider}/consumer/{consumer}/pact-version/{sha}/metadata/{metadata}/verification-results​

Publish a verification result (for-verification link)

Publish the result of verifying this pact version — what a Pact verifier posts to the pact's pb:publish-verification-results link when it runs with publishVerificationResult: true.

  • success and providerApplicationVersion are required. The provider version is recorded if the workspace does not have it yet.
  • testResults is stored as sent, so a failed result keeps every mismatch.
  • The result is immutable and numbered 1, 2, 3 … per pact version; the answer is 201 with its URL in Location.
  • The provider branch recorded with it is the branch the provider version was recorded on last (verifiers record it with pb:branch-version just before publishing).
  • providerVerificationReportId (Apiome only) links the CTG-4.3 provider verification report the result was produced with.

Requires pacts:create.

This form carries the metadata of the for-verification link the pact was fetched with; the result records whether the pact was pending then.

Operation id: publish_result_with_metadata_v1_tenants__tenant_slug__pact_broker_pacts_provider__provider__consumer__consumer__pact_version__sha__metadata__metadata__verification_results_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
consumerpathstringyesPath parameter identifying the consumer segment.
shapathstringyesPath parameter identifying the sha segment.
metadatapathstringyesThe selection metadata of the for-verification link (URL-safe base64).
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 publish a verification result (for-verification link).

  • application/json — object
PropertyTypeRequiredDescription
successbooleanyesWhether every interaction passed.
providerApplicationVersionstringyesThe provider version that verified (a commit SHA).
buildUrlstringnohttp(s) URL of the CI build.
testResultsarray of objectnoPer-interaction results, stored as sent (at most 10,000).
verifiedByobjectnoVerified By.
providerVerificationReportIdstring (uuid)noApiome only: the CTG-4.3 provider verification report this result was produced with. Linked, not copied.

Responses

StatusDescriptionBody
201Successful response for publish a verification result (for-verification link).application/hal+json any
404pacticipant-not-found or pact-not-found: no such pair or pact version.—
422pact-verification-invalid: the body is malformed (detail.pointer names the field); pact-verification-report-not-found: providerVerificationReportId is not this workspace's.—

POST /v1/tenants/{tenant_slug}/pact-broker/pacts/provider/{provider}/consumer/{consumer}/pact-version/{sha}/verification-results​

Publish a verification result

Publish the result of verifying this pact version — what a Pact verifier posts to the pact's pb:publish-verification-results link when it runs with publishVerificationResult: true.

  • success and providerApplicationVersion are required. The provider version is recorded if the workspace does not have it yet.
  • testResults is stored as sent, so a failed result keeps every mismatch.
  • The result is immutable and numbered 1, 2, 3 … per pact version; the answer is 201 with its URL in Location.
  • The provider branch recorded with it is the branch the provider version was recorded on last (verifiers record it with pb:branch-version just before publishing).
  • providerVerificationReportId (Apiome only) links the CTG-4.3 provider verification report the result was produced with.

Requires pacts:create.

Operation id: publish_result_v1_tenants__tenant_slug__pact_broker_pacts_provider__provider__consumer__consumer__pact_version__sha__verification_results_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
consumerpathstringyesPath parameter identifying the consumer segment.
shapathstringyesPath parameter identifying the sha 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 publish a verification result.

  • application/json — object
PropertyTypeRequiredDescription
successbooleanyesWhether every interaction passed.
providerApplicationVersionstringyesThe provider version that verified (a commit SHA).
buildUrlstringnohttp(s) URL of the CI build.
testResultsarray of objectnoPer-interaction results, stored as sent (at most 10,000).
verifiedByobjectnoVerified By.
providerVerificationReportIdstring (uuid)noApiome only: the CTG-4.3 provider verification report this result was produced with. Linked, not copied.

Responses

StatusDescriptionBody
201Successful response for publish a verification result.application/hal+json any
404pacticipant-not-found or pact-not-found: no such pair or pact version.—
422pact-verification-invalid: the body is malformed (detail.pointer names the field); pact-verification-report-not-found: providerVerificationReportId is not this workspace's.—

GET /v1/tenants/{tenant_slug}/pact-broker/pacts/provider/{provider}/consumer/{consumer}/pact-version/{sha}/verification-results/latest​

Read the latest verification result of a pact version

The result published last for this pact version, by any provider version. Requires pacts:view.

Operation id: read_latest_result_v1_tenants__tenant_slug__pact_broker_pacts_provider__provider__consumer__consumer__pact_version__sha__verification_results_latest_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
consumerpathstringyesPath parameter identifying the consumer segment.
shapathstringyesPath parameter identifying the sha 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 the latest verification result of a pact version.application/hal+json any
404pact-verification-not-found: the pact version has no results.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-broker/pacts/provider/{provider}/consumer/{consumer}/pact-version/{sha}/verification-results/{number}​

Read a verification result

One result of a pact version, by its number (1, 2, 3 …). Requires pacts:view.

Operation id: read_result_v1_tenants__tenant_slug__pact_broker_pacts_provider__provider__consumer__consumer__pact_version__sha__verification_results__number__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
consumerpathstringyesPath parameter identifying the consumer segment.
shapathstringyesPath parameter identifying the sha segment.
numberpathintegeryesThe result's number among the results of this pact version.
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 a verification result.application/hal+json any
404pact-verification-not-found: no result with that number.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-broker/pacts/provider/{provider}/consumer/{consumer}/pact-version/{sha}/verification-results/{number}/triggered-webhooks​

Webhooks a verification result triggered

The webhooks fired by the publication of this verification result, newest first, each with its status and a pb:logs link. Requires pacts:view.

Operation id: read_verification_triggered_webhooks_v1_tenants__tenant_slug__pact_broker_pacts_provider__provider__consumer__consumer__pact_version__sha__verification_results__number__triggered_webhooks_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
consumerpathstringyesPath parameter identifying the consumer segment.
shapathstringyesPath parameter identifying the sha segment.
numberpathintegeryesPath parameter identifying the number 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 webhooks a verification result triggered.application/hal+json any
404pacticipant-not-found: no such consumer or provider.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-broker/pacts/provider/{provider}/consumer/{consumer}/version/{consumer_version}​

Read the pact of a consumer version

The pact one consumer version published for a provider.

The body is the Pact document as published, plus createdAt and _links: self, pb:pact-version (the content address — the same for every consumer version that published this pact) and pb:latest-pact-version.

{provider} and {consumer} are a pacticipant's handle, id or name. Requires pacts:view.

Operation id: read_pact_v1_tenants__tenant_slug__pact_broker_pacts_provider__provider__consumer__consumer__version__consumer_version__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
consumerpathstringyesPath parameter identifying the consumer segment.
consumer_versionpathstringyesPath parameter identifying the consumer version 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 the pact of a consumer version.application/hal+json any
422Validation Errorapplication/json HTTPValidationError

PUT /v1/tenants/{tenant_slug}/pact-broker/pacts/provider/{provider}/consumer/{consumer}/version/{consumer_version}​

Publish one pact

Publish the pact between a consumer version and a provider. The body is the Pact document itself (specification 1.x to 4.x), stored as published. Both applications are registered as pacticipants if the workspace does not have them, and the consumer version is recorded.

Answers 201 when this consumer version had no pact for the provider, 200 when it published the same pact before (nothing changes), and 409 when it published a different one. If the document names a consumer or provider, the names must match the URL.

To record a branch, tags or a build URL with the pact, use POST …/pact-broker/contracts/publish instead. Requires pacts:create.

Operation id: publish_pact_v1_tenants__tenant_slug__pact_broker_pacts_provider__provider__consumer__consumer__version__consumer_version__put

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
consumerpathstringyesPath parameter identifying the consumer segment.
consumer_versionpathstringyesPath parameter identifying the consumer version 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)

The Pact document (specification 1.x to 4.x), exactly as the consumer's tests wrote it.

  • application/json — object

Responses

StatusDescriptionBody
200Successful response for publish one pact.application/hal+json any
201The pact was published for this consumer version.—
409pact-content-conflict: this consumer version already published a different pact for the provider. Nothing of the request was stored. Publish under a new consumer version number.—
413pact-too-large: the document or the request is over the size limit.—
422pact-invalid: the document is not a pact. detail.pointer is the JSON Pointer of the first problem in the document (for example /interactions/2/request/method) and detail.message says what is wrong there.—
429pact-publish-rate-limited: over the workspace's publish budget; see Retry-After.—

GET /v1/tenants/{tenant_slug}/pact-broker/pacts/provider/{provider}/consumer/{consumer}/version/{consumer_version}/triggered-webhooks​

Webhooks a publication triggered

The webhooks fired by this consumer version's publication of its pact for the provider, newest first, each with its status and a pb:logs link. Requires pacts:view.

Operation id: read_pact_triggered_webhooks_v1_tenants__tenant_slug__pact_broker_pacts_provider__provider__consumer__consumer__version__consumer_version__triggered_webhooks_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
consumerpathstringyesPath parameter identifying the consumer segment.
consumer_versionpathstringyesPath parameter identifying the consumer version 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 webhooks a publication triggered.application/hal+json any
404pacticipant-not-found: no such consumer or provider.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-broker/pacts/provider/{provider}/consumer/{consumer}/webhooks​

List the webhooks of a pact

The webhooks defined for exactly this scope (a webhook for all pacts is not listed here; see GET …/webhooks). Requires pacts:view.

Operation id: read_scoped_v1_tenants__tenant_slug__pact_broker_pacts_provider__provider__consumer__consumer__webhooks_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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.
providerpathstringyesThe provider.
consumerpathstringyesThe consumer.

Responses

StatusDescriptionBody
200Successful response for list the webhooks of a pact.application/hal+json any
404pacticipant-not-found: no such consumer or provider.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/pact-broker/pacts/provider/{provider}/consumer/{consumer}/webhooks​

Create a webhook for a pact

Create a webhook for this scope: the consumer and provider of the URL replace any in the body. Otherwise as POST …/webhooks. Requires pacts:create.

Operation id: post_scoped_v1_tenants__tenant_slug__pact_broker_pacts_provider__provider__consumer__consumer__webhooks_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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.
providerpathstringyesThe provider.
consumerpathstringyesThe consumer.

Request body (required)

Request body for create a webhook for a pact.

  • application/json — object
PropertyTypeRequiredDescription
descriptionstringnoFree-text description.
consumerobjectnoOnly pacts of this consumer. Omit for any.
providerobjectnoOnly pacts of this provider. Omit for any.
enabledbooleannoWhether the resource is active.
eventsarray of objectnoDefault: contract_content_changed.
requestobjectnoThe HTTP request to send. Send this or target.
targetobjectnoApiome: a GitHub Actions repository_dispatch, in place of request.
signingSecretstringnoApiome: when set, every delivery carries X-Apiome-Signature: sha256=<hex>, the HMAC-SHA256 of the body. Sealed; a webhook that has one reads signed: true. May be ${user.<name>}, a workspace secret of 16 characters or more.

Responses

StatusDescriptionBody
201Successful response for create a webhook for a pact.application/hal+json any
404pacticipant-not-found: no such consumer or provider.—
409pact-webhook-limit-reached: the workspace already has 200 webhooks.—
422pact-webhook-invalid: the body is malformed; detail.pointer names the field.—
503pact-webhook-secrets-unavailable: the webhook carries a secret and the server has no key to seal it with.—

GET /v1/tenants/{tenant_slug}/pact-broker/pacts/provider/{provider}/consumer/{consumer}/webhooks/status​

Webhook status of a pact

The latest firing of each webhook and event for the pacts between a consumer and a provider, with a summary (successful, failed, retrying, notRun) and a pb:error-logs link per firing that failed or is being retried. failed means dead-lettered: every attempt was used. Requires pacts:view.

Operation id: read_pact_webhooks_status_v1_tenants__tenant_slug__pact_broker_pacts_provider__provider__consumer__consumer__webhooks_status_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
consumerpathstringyesPath parameter identifying the consumer 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 webhook status of a pact.application/hal+json any
404pacticipant-not-found: no such consumer or provider.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-broker/pacts/provider/{provider}/for-verification​

The pacts a provider must verify (query-string form)

The GET form of POST …/for-verification, which the Pact Broker keeps for its first clients — and which the Rust verifier inside pact-js, pact-python and pact-go fetches before it posts its selectors. Same answer as the POST; the parameters are the broker's snake-case Rack query parameters: provider_version_branch, provider_version_tags[], include_pending_status, include_wip_pacts_since and consumer_version_selectors[][<field>] (main_branch, branch, matching_branch, fallback_branch, fallback_to_main_branch, tag, fallback_tag, latest, consumer, deployed, released, deployed_or_released, environment). A field that repeats starts the next selector. Without parameters, the broker's default selectors apply. Prefer the POST. Requires pacts:view.

Operation id: pacts_for_verification_by_query_v1_tenants__tenant_slug__pact_broker_pacts_provider__provider__for_verification_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider 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 the pacts a provider must verify (query-string form).application/hal+json any
400pact-selector-invalid: a selector is ambiguous or malformed; see detail.pointer.—
404pacticipant-not-found: the workspace has no such provider.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/pact-broker/pacts/provider/{provider}/for-verification​

The pacts a provider must verify

What a Pact verifier calls before it verifies: the pacts a provider build must verify, chosen by consumer-version selectors. One entry per distinct pact; a pact chosen by several selectors appears once, with every reason in its notices.

Selectors (consumerVersionSelectors, each optionally narrowed by consumer):

  • {"mainBranch": true} — the latest version from each consumer's main branch;
  • {"branch": "x"} — the latest version from branch x, with fallbackBranch or fallbackToMainBranch for a consumer that has none there;
  • {"matchingBranch": true} — branch set to the request's providerVersionBranch;
  • {"tag": "x"} — every version tagged x; with "latest": true the latest one, and fallbackTag for a consumer that has none;
  • {"latest": true} — the latest version of each consumer;
  • deployed, released, deployedOrReleased, environment — versions in an environment. Accepted; they select nothing until environments are recorded.

No selectors means the broker's defaults: each consumer's main branch (or its latest version), and whatever is deployed or released.

includePendingStatus: true adds pending and the pending notices. A pact is pending until the provider has verified its content successfully — from providerVersionBranch (or on any branch before that branch was created), with each of providerVersionTags, or, with neither, at all. A failure of a pending pact does not fail the provider build.

includeWipPactsSince: <date> (with a providerVersionBranch or providerVersionTags) adds work-in-progress pacts after the selected ones: the latest pact of each consumer branch and tag, published on or after the date, that no selector chose and that is still pending. They carry wip: true and pending: true, so they never fail the build.

An ambiguous selector (for example tag with branch, or mainBranch with latest: false) is 400 pact-selector-invalid with the pointer of the selector. Requires pacts:view.

Operation id: pacts_for_verification_v1_tenants__tenant_slug__pact_broker_pacts_provider__provider__for_verification_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider 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 (optional)

Request body for the pacts a provider must verify.

  • application/json — object
PropertyTypeRequiredDescription
consumerVersionSelectorsarray of objectnoConsumer Version Selectors.
providerVersionBranchstringnoProvider Version Branch.
providerVersionTagsarray of stringnoProvider Version Tags.
includePendingStatusbooleannoInclude Pending Status.
includeWipPactsSincestring (date)noInclude Wip Pacts Since.

Responses

StatusDescriptionBody
200Successful response for the pacts a provider must verify.application/hal+json any
400pact-selector-invalid: a selector is ambiguous or malformed; see detail.pointer.—
404pacticipant-not-found: the workspace has no such provider.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-broker/pacts/provider/{provider}/latest​

The latest pact of every consumer of a provider

One pb:pacts link per consumer: the pact of its latest-recorded version that published one for the provider. {provider} is a pacticipant's handle, id or name. Requires pacts:view.

Operation id: read_latest_provider_pacts_v1_tenants__tenant_slug__pact_broker_pacts_provider__provider__latest_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider 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 the latest pact of every consumer of a provider.application/hal+json any
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-broker/pacts/provider/{provider}/latest/{tag}​

The latest pact of every consumer of a provider, for a tag

One pb:pacts link per consumer that has a version tagged {tag} with a pact for the provider: the pact of the latest such version. Requires pacts:view.

Operation id: read_latest_tagged_provider_pacts_v1_tenants__tenant_slug__pact_broker_pacts_provider__provider__latest__tag__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
tagpathstringyesPath parameter identifying the tag 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 the latest pact of every consumer of a provider, for a tag.application/hal+json any
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/pact-broker/pacts/record​

Publish, hold or skip a pact recorded in CI

Apply the mock's standing recording policy to one pact apiome pact record --publish generated from a capture session. The session names the mocked version, the consumer and the consumer version; the policy of that version and consumer (GET …/pact-recording/settings) decides:

  1. Publish when. Under tests-pass (the default) a run whose tests failed publishes nothing (outcome: skipped); under always it publishes anyway.
  2. If the pact got looser. The pact is compared with the consumer's latest published pact for the provider (the generator's diff: interactions and response fields no longer expected). When it got looser, publish-notify (the default) publishes it and tells the provider's and the consumer's owner teams (notified); hold stores the document for review instead (outcome: held, held), where approving publishes exactly that document.
  3. Anything else is published through the same path as POST …/contracts/publish (webhooks, commit statuses, comparisons), and publish is that route's answer.

reason says why in one sentence, whatever the outcome. The run is kept as the setting's last_run.

Requires pacts:create. Not a Pact Broker endpoint.

Operation id: record_pact_v1_tenants__tenant_slug__pact_broker_pacts_record_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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 publish, hold or skip a pact recorded in ci.

Responses

StatusDescriptionBody
200Successful response for publish, hold or skip a pact recorded in ci.application/json object
404capture-session-not-found: unknown, expired or another workspace's session.—
409The consumer version already has a different pact for the provider.—
422pact-invalid (with a pointer), pact-record-provider-missing, or an invalid body (an unknown field).—
429Over the workspace's publish budget; see Retry-After.—

GET /v1/tenants/{tenant_slug}/pact-broker/released-versions/{uuid}​

Read a release

One release, supported or not. Requires pacts:view.

Operation id: read_released_version_v1_tenants__tenant_slug__pact_broker_released_versions__uuid__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
uuidpathstringyesThe release's uuid.
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 a release.application/hal+json any
404pact-released-version-not-found: no such release in this workspace.—
422Validation Errorapplication/json HTTPValidationError

PATCH /v1/tenants/{tenant_slug}/pact-broker/released-versions/{uuid}​

Record the end of support for a release

{"currentlySupported": false} records that the release is no longer supported — what pact-broker record-support-ended sends. The release stays in the history; true is refused (record the release again instead). From then on can-i-deploy no longer counts the version as one its counterparts must stay compatible with.

Requires pacts:edit.

Operation id: patch_released_version_v1_tenants__tenant_slug__pact_broker_released_versions__uuid__patch

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
uuidpathstringyesThe release's uuid.
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 the end of support for a release.

  • application/merge-patch+json — object
  • application/json — object
PropertyTypeRequiredDescription
currentlySupportedenum falsenoCurrently Supported.
PropertyTypeRequiredDescription
currentlySupportedenum falsenoCurrently Supported.

Responses

StatusDescriptionBody
200Successful response for record the end of support for a release.application/hal+json any
404pact-released-version-not-found: no such release in this workspace.—
422pact-deployment-invalid: currentlySupported is not false.—

GET /v1/tenants/{tenant_slug}/pact-broker/triggered-webhooks/{uuid}/logs​

Execution log of a triggered webhook

What each attempt of one firing sent and received — a triggered webhook's pb:logs link. As text/plain (the default, as a Pact Broker answers) the logs of every attempt, in order; with Accept: application/hal+json, one entry per attempt under executions (attempt, success, status, logs, createdAt).

Secret header values read **********, and every secret value of the webhook is removed from the whole log, the receiver's response included. Requires pacts:view.

Operation id: read_triggered_webhook_logs_v1_tenants__tenant_slug__pact_broker_triggered_webhooks__uuid__logs_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
uuidpathstringyesPath parameter identifying the uuid 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 execution log of a triggered webhook.application/json any; text/plain any; application/hal+json any
404pact-triggered-webhook-not-found: no such triggered webhook.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-broker/webhooks​

List webhooks

Every webhook of the workspace — the index's pb:webhooks link. Each is linked under _links.pb:webhooks and embedded under _embedded.webhooks. Secrets are never returned: a password and a secret header read **********, a signing secret reads signed: true.

Requires pacts:view.

Operation id: read_webhooks_v1_tenants__tenant_slug__pact_broker_webhooks_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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 webhooks.application/hal+json any
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/pact-broker/webhooks​

Create a webhook

Create a webhook — what pact-broker create-webhook posts. The body is the Pact Broker's: events (default contract_content_changed), an optional consumer and provider (omit both for every pact of the workspace) and the request to send.

  • Events: contract_published, contract_content_changed, contract_requiring_verification_published (once per provider version that has not verified the pact: the head of the provider's main branch and what is deployed or released), provider_verification_published, provider_verification_succeeded, provider_verification_failed, and Apiome's consumer_version_branch_created and stale-pact remediation events (contract_became_stale, contract_no_longer_stale, contract_republish_requested, contract_republish_request_expired).
  • Templates: ${pactbroker.*} parameters are substituted in the URL's path and query, the headers, the credentials and the body when the webhook fires. Template parameters: ${pactbroker.consumerName}, ${pactbroker.providerName}, ${pactbroker.consumerVersionNumber}, ${pactbroker.providerVersionNumber}, ${pactbroker.providerVersionTags}, ${pactbroker.providerVersionDescriptions}, ${pactbroker.providerVersionBranch}, ${pactbroker.consumerVersionTags}, ${pactbroker.consumerVersionBranch}, ${pactbroker.pactUrl}, ${pactbroker.verificationResultUrl}, ${pactbroker.githubVerificationStatus}, ${pactbroker.bitbucketVerificationStatus}, ${pactbroker.azureDevOpsVerificationStatus}, ${pactbroker.gitlabVerificationStatus}, ${pactbroker.consumerLabels}, ${pactbroker.providerLabels}, ${pactbroker.eventName}, ${pactbroker.buildUrl}, ${pactbroker.currentlyDeployedProviderVersionNumber}.
  • Target: send request for any HTTP endpoint (POST, PUT or PATCH), or Apiome's target of type github_repository_dispatch to start a GitHub Actions workflow.
  • Where it may go: http or https, to a public address. Loopback, private and link-local addresses are refused when the webhook is saved and again on every send; redirects are not followed.
  • Secrets: password, the target token, secret headers (Authorization, anything naming a token, secret, API key or cookie) and signingSecret are sealed in the credential vault and never returned or logged.
  • Workspace secrets: ${user.<name>} in the URL's path or query, a header, the body, the credentials, the target token or signingSecret refers to a secret kept under /v1/tenants/{tenant}/pact-secrets; it must exist when the webhook is saved (422 pact-webhook-invalid naming the field otherwise), is resolved only when the webhook is sent, and is scrubbed from every log. The webhook lists the names as secretReferences.
  • Signing: with signingSecret, each delivery carries X-Apiome-Signature: sha256=<hex>, the HMAC-SHA256 of the body.
  • Limit: 200 webhooks per workspace.
  • Delivery: up to 4 attempts (after 10 s, 60 s and 5 min; Retry-After is honoured), then the firing is dead-lettered.

Answers 201 with the webhook and its URL in Location. Requires pacts:create.

Operation id: post_webhook_v1_tenants__tenant_slug__pact_broker_webhooks_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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 create a webhook.

  • application/json — object
PropertyTypeRequiredDescription
descriptionstringnoFree-text description.
consumerobjectnoOnly pacts of this consumer. Omit for any.
providerobjectnoOnly pacts of this provider. Omit for any.
enabledbooleannoWhether the resource is active.
eventsarray of objectnoDefault: contract_content_changed.
requestobjectnoThe HTTP request to send. Send this or target.
targetobjectnoApiome: a GitHub Actions repository_dispatch, in place of request.
signingSecretstringnoApiome: when set, every delivery carries X-Apiome-Signature: sha256=<hex>, the HMAC-SHA256 of the body. Sealed; a webhook that has one reads signed: true. May be ${user.<name>}, a workspace secret of 16 characters or more.

Responses

StatusDescriptionBody
201Successful response for create a webhook.application/hal+json any
409pact-webhook-limit-reached: the workspace already has 200 webhooks.—
422pact-webhook-invalid: the body is malformed; detail.pointer names the field.—
503pact-webhook-secrets-unavailable: the webhook carries a secret and the server has no key to seal it with.—

GET /v1/tenants/{tenant_slug}/pact-broker/webhooks/consumer/{consumer}​

List the webhooks of a consumer

The webhooks defined for exactly this scope (a webhook for all pacts is not listed here; see GET …/webhooks). Requires pacts:view.

Operation id: read_scoped_v1_tenants__tenant_slug__pact_broker_webhooks_consumer__consumer__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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.
consumerpathstringyesThe consumer.

Responses

StatusDescriptionBody
200Successful response for list the webhooks of a consumer.application/hal+json any
404pacticipant-not-found: no such consumer or provider.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/pact-broker/webhooks/consumer/{consumer}​

Create a webhook for a consumer

Create a webhook for this scope: the consumer and provider of the URL replace any in the body. Otherwise as POST …/webhooks. Requires pacts:create.

Operation id: post_scoped_v1_tenants__tenant_slug__pact_broker_webhooks_consumer__consumer__post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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.
consumerpathstringyesThe consumer.

Request body (required)

Request body for create a webhook for a consumer.

  • application/json — object
PropertyTypeRequiredDescription
descriptionstringnoFree-text description.
consumerobjectnoOnly pacts of this consumer. Omit for any.
providerobjectnoOnly pacts of this provider. Omit for any.
enabledbooleannoWhether the resource is active.
eventsarray of objectnoDefault: contract_content_changed.
requestobjectnoThe HTTP request to send. Send this or target.
targetobjectnoApiome: a GitHub Actions repository_dispatch, in place of request.
signingSecretstringnoApiome: when set, every delivery carries X-Apiome-Signature: sha256=<hex>, the HMAC-SHA256 of the body. Sealed; a webhook that has one reads signed: true. May be ${user.<name>}, a workspace secret of 16 characters or more.

Responses

StatusDescriptionBody
201Successful response for create a webhook for a consumer.application/hal+json any
404pacticipant-not-found: no such consumer or provider.—
409pact-webhook-limit-reached: the workspace already has 200 webhooks.—
422pact-webhook-invalid: the body is malformed; detail.pointer names the field.—
503pact-webhook-secrets-unavailable: the webhook carries a secret and the server has no key to seal it with.—

POST /v1/tenants/{tenant_slug}/pact-broker/webhooks/execute​

Run an unsaved webhook

Send the webhook in the body once, now, without saving it — to try a request before creating the webhook. Parameters are filled from the latest pact of the named consumer and provider, or with placeholders. The answer shows the request (secrets redacted), the response and the execution log. A workspace may make 30 test runs per rate-limit window. Requires pacts:create.

Operation id: execute_unsaved_webhook_v1_tenants__tenant_slug__pact_broker_webhooks_execute_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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 run an unsaved webhook.

  • application/json — object
PropertyTypeRequiredDescription
descriptionstringnoFree-text description.
consumerobjectnoOnly pacts of this consumer. Omit for any.
providerobjectnoOnly pacts of this provider. Omit for any.
enabledbooleannoWhether the resource is active.
eventsarray of objectnoDefault: contract_content_changed.
requestobjectnoThe HTTP request to send. Send this or target.
targetobjectnoApiome: a GitHub Actions repository_dispatch, in place of request.
signingSecretstringnoApiome: when set, every delivery carries X-Apiome-Signature: sha256=<hex>, the HMAC-SHA256 of the body. Sealed; a webhook that has one reads signed: true. May be ${user.<name>}, a workspace secret of 16 characters or more.

Responses

StatusDescriptionBody
200Successful response for run an unsaved webhook.application/hal+json any
409pact-webhook-limit-reached: the workspace already has 200 webhooks.—
422pact-webhook-invalid: the body is malformed; detail.pointer names the field.—
429pact-webhook-test-rate-limited: too many test runs; Retry-After says when to retry.—
503pact-webhook-secrets-unavailable: the webhook carries a secret and the server has no key to seal it with.—

GET /v1/tenants/{tenant_slug}/pact-broker/webhooks/provider/{provider}​

List the webhooks of a provider

The webhooks defined for exactly this scope (a webhook for all pacts is not listed here; see GET …/webhooks). Requires pacts:view.

Operation id: read_scoped_v1_tenants__tenant_slug__pact_broker_webhooks_provider__provider__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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.
providerpathstringyesThe provider.

Responses

StatusDescriptionBody
200Successful response for list the webhooks of a provider.application/hal+json any
404pacticipant-not-found: no such consumer or provider.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/pact-broker/webhooks/provider/{provider}​

Create a webhook for a provider

Create a webhook for this scope: the consumer and provider of the URL replace any in the body. Otherwise as POST …/webhooks. Requires pacts:create.

Operation id: post_scoped_v1_tenants__tenant_slug__pact_broker_webhooks_provider__provider__post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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.
providerpathstringyesThe provider.

Request body (required)

Request body for create a webhook for a provider.

  • application/json — object
PropertyTypeRequiredDescription
descriptionstringnoFree-text description.
consumerobjectnoOnly pacts of this consumer. Omit for any.
providerobjectnoOnly pacts of this provider. Omit for any.
enabledbooleannoWhether the resource is active.
eventsarray of objectnoDefault: contract_content_changed.
requestobjectnoThe HTTP request to send. Send this or target.
targetobjectnoApiome: a GitHub Actions repository_dispatch, in place of request.
signingSecretstringnoApiome: when set, every delivery carries X-Apiome-Signature: sha256=<hex>, the HMAC-SHA256 of the body. Sealed; a webhook that has one reads signed: true. May be ${user.<name>}, a workspace secret of 16 characters or more.

Responses

StatusDescriptionBody
201Successful response for create a webhook for a provider.application/hal+json any
404pacticipant-not-found: no such consumer or provider.—
409pact-webhook-limit-reached: the workspace already has 200 webhooks.—
422pact-webhook-invalid: the body is malformed; detail.pointer names the field.—
503pact-webhook-secrets-unavailable: the webhook carries a secret and the server has no key to seal it with.—

GET /v1/tenants/{tenant_slug}/pact-broker/webhooks/provider/{provider}/consumer/{consumer}​

List the webhooks of an integration

The webhooks defined for exactly this scope (a webhook for all pacts is not listed here; see GET …/webhooks). Requires pacts:view.

Operation id: read_scoped_v1_tenants__tenant_slug__pact_broker_webhooks_provider__provider__consumer__consumer__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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.
providerpathstringyesThe provider.
consumerpathstringyesThe consumer.

Responses

StatusDescriptionBody
200Successful response for list the webhooks of an integration.application/hal+json any
404pacticipant-not-found: no such consumer or provider.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/pact-broker/webhooks/provider/{provider}/consumer/{consumer}​

Create a webhook for an integration

Create a webhook for this scope: the consumer and provider of the URL replace any in the body. Otherwise as POST …/webhooks. Requires pacts:create.

Operation id: post_scoped_v1_tenants__tenant_slug__pact_broker_webhooks_provider__provider__consumer__consumer__post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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.
providerpathstringyesThe provider.
consumerpathstringyesThe consumer.

Request body (required)

Request body for create a webhook for an integration.

  • application/json — object
PropertyTypeRequiredDescription
descriptionstringnoFree-text description.
consumerobjectnoOnly pacts of this consumer. Omit for any.
providerobjectnoOnly pacts of this provider. Omit for any.
enabledbooleannoWhether the resource is active.
eventsarray of objectnoDefault: contract_content_changed.
requestobjectnoThe HTTP request to send. Send this or target.
targetobjectnoApiome: a GitHub Actions repository_dispatch, in place of request.
signingSecretstringnoApiome: when set, every delivery carries X-Apiome-Signature: sha256=<hex>, the HMAC-SHA256 of the body. Sealed; a webhook that has one reads signed: true. May be ${user.<name>}, a workspace secret of 16 characters or more.

Responses

StatusDescriptionBody
201Successful response for create a webhook for an integration.application/hal+json any
404pacticipant-not-found: no such consumer or provider.—
409pact-webhook-limit-reached: the workspace already has 200 webhooks.—
422pact-webhook-invalid: the body is malformed; detail.pointer names the field.—
503pact-webhook-secrets-unavailable: the webhook carries a secret and the server has no key to seal it with.—

GET /v1/tenants/{tenant_slug}/pact-broker/webhooks/{uuid}​

Read a webhook

One webhook by its uuid — the index's pb:webhook template. Requires pacts:view.

Operation id: read_webhook_v1_tenants__tenant_slug__pact_broker_webhooks__uuid__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
uuidpathstringyesPath parameter identifying the uuid 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 a webhook.application/hal+json any
404pact-webhook-not-found: no such webhook in this workspace.—
422Validation Errorapplication/json HTTPValidationError

PUT /v1/tenants/{tenant_slug}/pact-broker/webhooks/{uuid}​

Create or replace a webhook

Replace the webhook with this uuid, or create it when the workspace has none — what pact-broker create-or-update-webhook --uuid … puts, so a pipeline can declare its webhook on every run. The body is the same as for creating one, and replaces the whole webhook.

A secret sent back as ********** keeps the stored value; a secret left out is removed.

Answers 200 for a replacement and 201 for a new webhook. Requires pacts:edit (pacts:create when it creates).

Operation id: put_webhook_v1_tenants__tenant_slug__pact_broker_webhooks__uuid__put

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
uuidpathstringyesPath parameter identifying the uuid 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 create or replace a webhook.

  • application/json — object
PropertyTypeRequiredDescription
descriptionstringnoFree-text description.
consumerobjectnoOnly pacts of this consumer. Omit for any.
providerobjectnoOnly pacts of this provider. Omit for any.
enabledbooleannoWhether the resource is active.
eventsarray of objectnoDefault: contract_content_changed.
requestobjectnoThe HTTP request to send. Send this or target.
targetobjectnoApiome: a GitHub Actions repository_dispatch, in place of request.
signingSecretstringnoApiome: when set, every delivery carries X-Apiome-Signature: sha256=<hex>, the HMAC-SHA256 of the body. Sealed; a webhook that has one reads signed: true. May be ${user.<name>}, a workspace secret of 16 characters or more.

Responses

StatusDescriptionBody
200Successful response for create or replace a webhook.application/hal+json any
201The webhook did not exist and was created.—
409pact-webhook-limit-reached: the workspace already has 200 webhooks.—
422pact-webhook-invalid: the body is malformed; detail.pointer names the field.—
503pact-webhook-secrets-unavailable: the webhook carries a secret and the server has no key to seal it with.—

DELETE /v1/tenants/{tenant_slug}/pact-broker/webhooks/{uuid}​

Delete a webhook

Delete a webhook. Its queued deliveries, its triggered-webhook history and their logs go with it. Requires pacts:delete.

Operation id: remove_webhook_v1_tenants__tenant_slug__pact_broker_webhooks__uuid__delete

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
uuidpathstringyesPath parameter identifying the uuid 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
204Successful response for delete a webhook.—
404pact-webhook-not-found: no such webhook in this workspace.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/pact-broker/webhooks/{uuid}/execute​

Run a webhook now

Send a saved webhook once, now — a webhook's pb:execute link and what pact-broker test-webhook posts. Parameters are filled from the latest pact of the webhook's consumer and provider, or with placeholders; ${pactbroker.eventName} is test. Nothing is queued or retried. The answer shows the request (secrets redacted), the response and logs. A workspace may make 30 test runs per rate-limit window.

Requires pacts:edit.

Operation id: execute_saved_webhook_v1_tenants__tenant_slug__pact_broker_webhooks__uuid__execute_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
uuidpathstringyesPath parameter identifying the uuid 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 run a webhook now.application/hal+json any
404pact-webhook-not-found: no such webhook in this workspace.—
422Validation Errorapplication/json HTTPValidationError
429pact-webhook-test-rate-limited: too many test runs; Retry-After says when to retry.—
503pact-webhook-secrets-unavailable: the webhook's secrets cannot be opened.—

GET /v1/tenants/{tenant_slug}/pact-comparisons​

List recent bi-directional comparisons

The workspace's most recent bi-directional verification results (PFX-2.3), newest first, each with its verdict, how strong it is (full, partial, failed, none), one sentence to read it by, and the counts of its fidelity report. Requires pacts:view.

Operation id: list_comparisons_v1_tenants__tenant_slug__pact_comparisons_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
limitqueryintegernoHow many to return.
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 recent bi-directional comparisons.application/json object
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-comparisons/{result_id}/fidelity​

Read the fidelity report of a bi-directional comparison

What a bi-directional comparison compared and what it could not: for every interaction the checks with their status (compared, partial, failed, not-run with the reason), the matching rules it could not prove, and the items it could not compare. A green verdict is only as strong as strength says. Requires pacts:view.

Operation id: read_fidelity_v1_tenants__tenant_slug__pact_comparisons__result_id__fidelity_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
result_idpathstringyesPath parameter identifying the result 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 the fidelity report of a bi-directional comparison.application/json object
404pact-verification-not-found: no bi-directional result with that id in this workspace, or the result was published by a Pact verifier and has no comparison.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-environments​

Environments and what is deployed to them

Every Pact environment of the workspace (by name) with each pacticipant version currently deployed to it (deployed: pacticipant, version, application instance, when) and each release it currently supports (released). truncated is true when either list stopped at 2000 entries. Requires pacts:view.

Operation id: read_environment_topology_v1_tenants__tenant_slug__pact_environments_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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 environments and what is deployed to them.application/json object
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-environments/board​

What is running where

The Environments page's board (PFX-8.13): one row per pacticipant (by name), one cell per environment — non-production first, production last — and every release it supports.

  • Each running version carries can-i-deploy's verdict for that environment (deployable true, false, or null while a verification is missing).
  • next is the version that could go next: the newest version in the nearest environment to the left that runs the pacticipant, when it is newer than anything here, with its verdict — the deploy simulator's answer to the same question.
  • idle rows have nothing deployed or released anywhere (at most 50 are listed).

At most 100 verdicts are asked per read; the rest say checked: false and why (notChecked). truncated is true when a read stopped at its cap. Requires pacts:view.

Operation id: read_environment_board_v1_tenants__tenant_slug__pact_environments_board_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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 what is running where.application/json object
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-environments/history​

History of every environment

What happened in the workspace's environments, newest first (PFX-8.13): kind is deployed, undeployed, released or support-ended, with the pacticipant, version, environment, application instance and actor (who recorded it, when known). A deployed event names the version it replaces; the replaced deployment has no event of its own. deployed and released carry verdict — can-i-deploy's answer when it was recorded (deployable, not-deployable, unknown), or null when not known (recorded before this was kept, or imported). environment (a name) and pacticipant (handle or name) narrow it. Pass nextCursor back as cursor for the next page. Requires pacts:view.

Operation id: read_environment_history_v1_tenants__tenant_slug__pact_environments_history_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
environmentquerystring or nullnoOnly this environment (its name).
pacticipantquerystring or nullnoOnly this pacticipant (handle or name).
cursorquerystring or nullnoThe nextCursor of the previous page.
limitqueryintegernoThe page size.
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 history of every environment.application/json object
400pact-history-cursor-invalid.—
404pact-environment-not-found or pacticipant-not-found.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-environments/{environment}/deployments​

Deployment history of an environment

Every deployment recorded to the environment, current or replaced, newest first: pacticipant, version, application instance, currentlyDeployed, deployedAt, undeployedAt and who recorded it. pacticipant narrows to one pacticipant (handle or name). Pass nextCursor back as cursor for the next page. Requires pacts:view.

Operation id: read_deployment_history_v1_tenants__tenant_slug__pact_environments__environment__deployments_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
environmentpathstringyesPath parameter identifying the environment segment.
pacticipantquerystring or nullnoOnly this pacticipant's deployments (handle or name).
cursorquerystring or nullnoThe nextCursor of the previous page.
limitqueryintegernoThe page size.
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 deployment history of an environment.application/json object
400pact-deployment-cursor-invalid.—
404pact-environment-not-found or pacticipant-not-found.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-environments/{environment}/simulate​

Simulate a deployment

What would happen if pacticipant version were deployed to the environment (to applicationInstance, or the unnamed instance) — without recording anything. Answers the candidate's own can-i-deploy verdict, the version it would replace, and impacts: for each version of a pacticipant it has a pact with that is running in the environment or pending (deployed or released elsewhere, not here), its verdict before and after and the effect (breaks, fixes, clears, blocks, changes, unchanged). At most 20 versions are checked; the rest are in notChecked with the reason. Requires pacts:view.

Operation id: read_deployment_simulation_v1_tenants__tenant_slug__pact_environments__environment__simulate_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
environmentpathstringyesPath parameter identifying the environment segment.
pacticipantquerystringyesThe pacticipant to deploy (handle or name).
versionquerystringyesThe version to deploy.
applicationInstancequerystring or nullnoThe instance to deploy to; the unnamed one when omitted.
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 simulate a deployment.application/json object
400pact-simulation-invalid: a malformed applicationInstance.—
404pact-environment-not-found, pacticipant-not-found or pacticipant-version-not-found.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-health​

Read the workspace's contract health

Every consumer ↔ provider pair with a pact (PFX-6.3), rolled up into one state — healthy, degraded, failing or unknown — fused from its signals: the newest pact's latest verdict, the window's pass rate and flakiness (how often the verdict flips between consecutive results), whether the stale-pact sweep found it overdue, an open re-publish request, and failed contract-webhook deliveries. Each signal says ok, warn, fail or unknown with a reason code. Pairs are listed worst first, at most 500 (truncated, omitted_pairs). Narrow by provider, consumer and state; the counts cover every pair the provider/consumer filter matches. Computed on every read. Requires pacts:view.

Operation id: read_health_v1_tenants__tenant_slug__pact_health_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
windowquerystring or nullno7d, 30d or 90d (default 30d).
providerquerystring or nullnoOnly this provider's pairs.
consumerquerystring or nullnoOnly this consumer's pairs.
statequerystring or nullnoOnly pairs in this state: healthy, degraded, failing or unknown.
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 the workspace's contract health.application/json PactHealthOverview
400pact-health-window-invalid or pact-health-state-invalid.—
404pacticipant-not-found for the provider or consumer filter.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-health/providers/{provider}/consumers/{consumer}​

Read one pair's contract health and trends

One consumer ↔ provider pair's health (PFX-6.3) — its state, every fused signal and the window's analytics — and its trend: one bucket per day for 7d and 30d, per week for 90d, oldest first and empty ones included, each with runs, pass rate, verdict flips, flakiness and mean duration. {provider} and {consumer} are handles, ids or names. Requires pacts:view.

Operation id: read_pair_health_v1_tenants__tenant_slug__pact_health_providers__provider__consumers__consumer__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
consumerpathstringyesPath parameter identifying the consumer segment.
windowquerystring or nullno7d, 30d or 90d (default 30d).
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 pair's contract health and trends.application/json PactPairHealthDetail
400pact-health-window-invalid.—
404pacticipant-not-found, or pact-health-pair-not-found when the consumer has published no pact for the provider.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-integrations​

List the workspace's contract integrations

Every consumer ↔ provider pair with a pact (PFX-8.1), for the Contracts landing: its kind (pact, or bidirectional when a provider contract is compared), its verdict — failing, stale, no-provider-contract, unverified or verified — whether it is pending (a Pact-kind pact the provider has never passed), the environments both sides are deployed in now, and when it was last verified. Worst verdict first, then by consumer and provider name. q matches handles and names; filter is one of all, failing, stale, bidirectional, mine (mine: a team you are on owns either side). counts and attention (up to three pairs per status-strip category) cover every pair, whatever the search and filter. At most 1000 pairs are classified (truncated, omitted_integrations). Requires pacts:view.

Operation id: read_integrations_v1_tenants__tenant_slug__pact_integrations_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
qquerystring or nullnoText a handle or name contains.
filterquerystring or nullnoall (default), failing, stale, …
limitqueryinteger or nullnoPage size, 1 … 100 (default 25).
offsetqueryinteger or nullnoRows to skip, 0 … 1000.
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 the workspace's contract integrations.application/json PactIntegrationsPage
400pact-integrations-filter-invalid, pact-integrations-search-invalid, pact-integrations-page-invalid, or pact-integrations-mine-needs-user for filter=mine with a credential that is not a user.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/pact-migration/check​

Check records from a Pact Broker or PactFlow (dry run)

Read a batch exactly as the import does and answer, per record, exists, would-create or refused (with the reason) — the dry run of apiome pact migrate. Nothing is written. References between records (the pact a result verifies, the environment a deployment names) are not checked, since an earlier batch of the same migration may create them. Requires pacts:view.

Operation id: post_migration_check_v1_tenants__tenant_slug__pact_migration_check_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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 check records from a pact broker or pactflow (dry run).

  • application/json — object
PropertyTypeRequiredDescription
sourcestringnoThe source broker's URL.
recordsarray of objectyesRecords.

Responses

StatusDescriptionBody
200Successful response for check records from a pact broker or pactflow (dry run).application/json MigrationReport
413pact-too-large: the batch is over twice the pact size limit; send fewer records.—
422pact-migration-invalid: the body is not {"records": [...]} or holds more than 100 records. A malformed record is answered refused instead.—

POST /v1/tenants/{tenant_slug}/pact-migration/import​

Import records from a Pact Broker or PactFlow

Write a batch of records read from another Pact Broker (PFX-6.7, what apiome pact migrate sends): up to 100 pacticipants, versions, pacts, verification results, environments, deployments, releases and webhooks. Each record is written in its own transaction with the source's created_at; importing it again changes nothing (unchanged), and what it adds to an existing row — a label, a tag, a branch — is updated. Each record is answered in order; a refused one carries code and message (pact-migration-reference-missing for a result whose pact or a deployment whose environment is not there yet, pact-migration-conflict for a pact or deployment Apiome already records differently, or the Pact rule it breaks). An import fires no webhooks, commit statuses or notifications. Requires pacts:create and pacts:edit.

Operation id: post_migration_import_v1_tenants__tenant_slug__pact_migration_import_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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 import records from a pact broker or pactflow.

  • application/json — object
PropertyTypeRequiredDescription
sourcestringnoThe source broker's URL.
recordsarray of objectyesRecords.

Responses

StatusDescriptionBody
200Successful response for import records from a pact broker or pactflow.application/json MigrationReport
413pact-too-large: the batch is over twice the pact size limit; send fewer records.—
422pact-migration-invalid: the body is not {"records": [...]} or holds more than 100 records. A malformed record is answered refused instead.—

GET /v1/tenants/{tenant_slug}/pact-migration/runs​

List migration runs

The workspace's migration runs, newest first — the wizard's Past migrations drawer. Each carries its status, counts and choices; read one for its findings, failures and log. can_migrate says whether the caller may run one. Requires pacts:view.

Operation id: list_migration_runs_v1_tenants__tenant_slug__pact_migration_runs_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
limitqueryintegernoThe most runs to answer.
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 migration runs.application/json PactMigrationRunList
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/pact-migration/runs​

Start a migration run

Run apiome pact migrate on the server (PFX-8.16). mode: dry-run reads the source and checks every record against the workspace, writing nothing — its counts fill the wizard's Choose step; mode: copy imports, honouring options (kinds, labels and tags, history depth, conflict policy). The answer is the run, running: poll GET …/runs/{run_id}. A copy skips what earlier copies from the same source imported unless options.restart is set, and importing a record twice changes nothing, so a run can be repeated. A workspace runs one migration at a time. The source is only read and its credentials are never stored. Requires pacts:create and pacts:edit.

Operation id: start_migration_run_v1_tenants__tenant_slug__pact_migration_runs_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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 start a migration run.

Responses

StatusDescriptionBody
202Successful response for start a migration run.application/json PactMigrationRunView
409pact-migration-run-active: the workspace already has a migration running.—
422pact-migration-run-invalid (choices that cannot be honoured together, e.g. versions: kept without saved keep-rules) or a pact-migration-source-* code.—
429pact-migration-run-busy: this server is running as many migrations as it may; try again.—

GET /v1/tenants/{tenant_slug}/pact-migration/runs/{run_id}​

Read a migration run

One run: per-kind counts (copied, unchanged, skipped, failed — or exists / would-create for a dry run), everything the source holds that cannot be carried over (findings), every refused record with its reason (failures), and the log lines after after. Poll it while status is running. Requires pacts:view.

Operation id: read_migration_run_v1_tenants__tenant_slug__pact_migration_runs__run_id__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
run_idpathstringyesPath parameter identifying the run id segment.
afterqueryintegernoOnly log lines numbered above this.
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 a migration run.application/json PactMigrationRunView
404pact-migration-run-not-found: this workspace has no such run.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/pact-migration/runs/{run_id}/resume​

Resume a migration run

Set a stopped or failed copy running again, or retry the records a finished copy could not copy. The source is read again and everything the run already imported is skipped, so nothing is copied twice. The credentials are given again — they were never stored. Requires pacts:create and pacts:edit.

Operation id: resume_migration_run_v1_tenants__tenant_slug__pact_migration_runs__run_id__resume_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
run_idpathstringyesPath parameter identifying the run 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.

Request body (required)

Request body for resume a migration run.

Responses

StatusDescriptionBody
202Successful response for resume a migration run.application/json PactMigrationRunView
404pact-migration-run-not-found: this workspace has no such run.—
409pact-migration-run-active: the workspace already has a migration running.—
422pact-migration-source-invalid (the URL is not a public http(s) address), pact-migration-source-refused (the source refused the credentials) or pact-migration-source-unreadable (it could not be reached, or is not a Pact Broker).—
429pact-migration-run-busy: this server is running as many migrations as it may; try again.—

POST /v1/tenants/{tenant_slug}/pact-migration/runs/{run_id}/stop​

Stop a migration run

Ask a running migration to stop. It does before its next batch: what was copied stays, and …/resume carries on where it stopped. Stopping a run that is not running changes nothing. Requires pacts:edit.

Operation id: stop_migration_run_v1_tenants__tenant_slug__pact_migration_runs__run_id__stop_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
run_idpathstringyesPath parameter identifying the run 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 stop a migration run.application/json PactMigrationRunView
404pact-migration-run-not-found: this workspace has no such run.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-migration/runs/{run_id}/sync​

Read a migration's keep-in-sync

Whether the migration is kept in sync with the old broker (PFX-8.17): how often, when the next pass is due, when one last copied, since when the source could not be read, and why the sync stopped itself if it did. A run that was never kept in sync answers enabled: false. Requires pacts:view.

Operation id: read_migration_sync_v1_tenants__tenant_slug__pact_migration_runs__run_id__sync_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
run_idpathstringyesPath parameter identifying the run 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 a migration's keep-in-sync.application/json PactMigrationSyncView
404pact-migration-run-not-found: this workspace has no such run.—
422Validation Errorapplication/json HTTPValidationError

PUT /v1/tenants/{tenant_slug}/pact-migration/runs/{run_id}/sync​

Switch a migration's keep-in-sync on or off

Keep copying until everyone has moved (PFX-8.17) — the CLI's apiome pact migrate --follow, run by the server. enabled: true with the source's credentials: they are tried against the source, then kept sealed (AES-256-GCM, never in clear) and every interval_minutes (15 by default) the run copies again, skipping everything it already imported — only what is new is copied, and its agreement check and who-has-moved list are refreshed. enabled: false stops it and deletes the credentials. A sync stops itself, and says why, when the source has been unreachable for 24 hours. A workspace keeps one migration in sync at a time. Requires pacts:create and pacts:edit.

Operation id: update_migration_sync_v1_tenants__tenant_slug__pact_migration_runs__run_id__sync_put

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
run_idpathstringyesPath parameter identifying the run 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.

Request body (required)

Request body for switch a migration's keep-in-sync on or off.

Responses

StatusDescriptionBody
200Successful response for switch a migration's keep-in-sync on or off.application/json PactMigrationSyncView
404pact-migration-run-not-found: this workspace has no such run.—
409pact-migration-sync-active: another migration of this workspace is kept in sync.—
422pact-migration-sync-invalid (the run is a dry run), or a pact-migration-source-* code: the credentials were tried before anything was kept.—
503pact-migration-sync-unavailable: no master key (APIOME_MCP_CREDENTIAL_ENCRYPTION_KEYS) is configured, so the credentials cannot be kept.—

POST /v1/tenants/{tenant_slug}/pact-migration/test​

Test the connection to a source broker

Sign in to a Pact Broker or PactFlow with the credentials given and count its pacticipants — the wizard's Test connection (PFX-8.16). The source is only read; nothing is stored, the credentials included; the audit trail records that the source was reached, not what was sent. Requires pacts:create and pacts:edit.

Operation id: test_migration_source_v1_tenants__tenant_slug__pact_migration_test_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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 test the connection to a source broker.

Responses

StatusDescriptionBody
200Successful response for test the connection to a source broker.application/json PactMigrationSourceTestResult
422pact-migration-source-invalid (the URL is not a public http(s) address), pact-migration-source-refused (the source refused the credentials) or pact-migration-source-unreadable (it could not be reached, or is not a Pact Broker).—

POST /v1/tenants/{tenant_slug}/pact-postman-collections​

Export a pact as a Postman collection

Writes a Postman Collection v2.1 from a pact: one request per HTTP interaction against a {{baseUrl}} variable, a saved example of the expected response, and (tests, default on) a test script that checks the status, the expected headers and the body by Pact's default rules (extra object keys allowed, arrays of the same length, other values equal). Provider states are named in each request's description.

Send provider + consumer and at most one of consumerVersion, tag, branch, pactVersionSha for a stored pact (none: the latest), or pact for an inline document. Nothing is stored.

notices lists what the collection does not carry, each with a code, outcome (left-out, not-asserted, not-applied, info), JSON Pointer and reason: message and gRPC interactions, non-text bodies, values governed by matching rules, generators, and the provider states to set up. A pact with no HTTP interaction to export is 422 pact-postman-no-http-interactions. Requires pacts:view.

Operation id: export_pact_postman_collection_v1_tenants__tenant_slug__pact_postman_collections_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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 export a pact as a postman collection.

Responses

StatusDescriptionBody
200Successful response for export a pact as a postman collection.application/json object
404pacticipant-not-found or pact-not-found: no such stored pact in this workspace.—
413pact-too-large: the inline pact is over the workspace's pact size limit.—
422pact-postman-export-invalid (no pact named, two selections, an inline pact with a selection, a bad baseUrl), pact-invalid (the inline document is not a pact) or pact-postman-no-http-interactions (with notices).—

GET /v1/tenants/{tenant_slug}/pact-provider-tests/{provider}​

Scaffold a provider verification test

Writes a provider verification test in language — typescript (pact-js), java (pact-jvm, JUnit 5), go (pact-go v2) or python (pact-python 2) — from the pacts the recommended selectors choose ({"mainBranch": true}, {"deployedOrReleased": true}, pending on). The file reads the broker from PACT_BROKER_BASE_URL and PACT_BROKER_TOKEN, so no secret is written into it, and carries one state handler stub per provider state with the parameters the pacts send (EXAMPLE_PARAMETERS).

states lists each state with its parameters, an example, whether the provider registered it in Apiome and how many interactions name it; unregistered counts those it has not. notices lists every flagged state (provider-scaffold-state-unregistered), every state left out with the reason (provider-scaffold-state-left-out) and a provider without pacts (provider-scaffold-no-pacts). Nothing is stored. Requires pacts:view.

Operation id: scaffold_provider_tests_v1_tenants__tenant_slug__pact_provider_tests__provider__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
languagequerystringyesOne of: typescript, java, go, python.
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 scaffold a provider verification test.application/json object
403The credential lacks pacts:view.—
404pacticipant-not-found: no such provider in this workspace.—
422provider-scaffold-language-unsupported, or pact-verify-too-many-pacts when the selectors choose more pacts than a run takes.—

GET /v1/tenants/{tenant_slug}/pact-recording/held​

List pacts held for review

Pacts recorded in CI that got looser under a hold policy, newest first. status filters (held by default; all for every status); held_count always counts those still waiting.

Requires pacts:view.

Operation id: list_held_pacts_v1_tenants__tenant_slug__pact_recording_held_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
statusqueryenum "held", "published", "discarded", "all"noQuery parameter: status.
limitqueryintegernoMaximum number of rows to return.
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 pacts held for review.application/json PactHeldList
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-recording/held/{held_id}​

Read a held pact

One held pact with the document approving it publishes.

Requires pacts:view.

Operation id: read_held_pact_v1_tenants__tenant_slug__pact_recording_held__held_id__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
held_idpathstringyesPath parameter identifying the held 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 a held pact.application/json PactHeldDetail
404pact-held-not-found.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/pact-recording/held/{held_id}/approve​

Publish a held pact

Publish exactly the held document for the consumer version it was recorded for (its branch, tags and build), through the same path as POST …/contracts/publish. The pact is then published; if the publish is refused it stays held. Audited as pacts.held.approve.

Requires pacts:create.

Operation id: approve_held_pact_v1_tenants__tenant_slug__pact_recording_held__held_id__approve_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
held_idpathstringyesPath parameter identifying the held 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 publish a held pact.application/json PactHeldApproval
404pact-held-not-found.—
409pact-held-already-decided, or the consumer version already has a different pact for the provider.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/pact-recording/held/{held_id}/discard​

Discard a held pact

Decide not to publish a held pact. It is kept, marked discarded, with the note. Audited as pacts.held.discard.

Requires pacts:edit.

Operation id: discard_held_pact_v1_tenants__tenant_slug__pact_recording_held__held_id__discard_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
held_idpathstringyesPath parameter identifying the held 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.

Request body (required)

Request body for discard a held pact.

Responses

StatusDescriptionBody
200Successful response for discard a held pact.application/json PactHeld
404pact-held-not-found.—
409pact-held-already-decided.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-recording/settings​

Read the standing recording policy of a mock and consumer

What a pact recorded in CI for this mocked version and consumer does next — Publish when (tests-pass / always) and If the pact got looser (publish-notify / hold) — and the last run. With nothing saved, the defaults (tests-pass, publish-notify) and saved: false.

Requires pacts:view.

Operation id: read_recording_setting_v1_tenants__tenant_slug__pact_recording_settings_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
projectquerystringyesRequired. Query parameter: project.
versionquerystringyesEndpoint or API version metadata.
consumerquerystringyesRequired. Query parameter: consumer.
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 the standing recording policy of a mock and consumer.application/json PactRecordingSetting
404capture-version-not-found: the version is not the workspace's.—
422Validation Errorapplication/json HTTPValidationError

PUT /v1/tenants/{tenant_slug}/pact-recording/settings​

Save the standing recording policy of a mock and consumer

Set Publish when and If the pact got looser for one mocked version and consumer. It applies to the next run; pacts already held stay held. Audited as pacts.recording.settings.

Requires pacts:edit.

Operation id: save_recording_setting_v1_tenants__tenant_slug__pact_recording_settings_put

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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 save the standing recording policy of a mock and consumer.

Responses

StatusDescriptionBody
200Successful response for save the standing recording policy of a mock and consumer.application/json PactRecordingSetting
404capture-version-not-found: the version is not the workspace's.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-republish-requests​

List re-publish requests

The workspace's re-publish requests (PFX-6.2), newest first: each stale pact the sweep asked its consumer to re-publish, its state (requested, acknowledged, republished, cleared — verified meanwhile — or expired, escalated), its window, and what notifying the consumer's owners did. Narrow by provider, consumer and state (open for requested and acknowledged); pass next_cursor as cursor for the next page. Requires pacts:view.

Operation id: read_requests_v1_tenants__tenant_slug__pact_republish_requests_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerquerystring or nullnoOnly this provider's.
consumerquerystring or nullnoOnly this consumer's.
statequerystring or nullnoA state, or open.
cursorquerystring or nullnoThe next_cursor of the previous page.
limitqueryintegernoPage size.
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 re-publish requests.application/json RepublishRequestPage
400pact-republish-request-cursor-invalid.—
404pacticipant-not-found for the provider or consumer filter.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-republish-requests/{request_id}​

Read one re-publish request

One re-publish request of the workspace (PFX-6.2). Requires pacts:view.

Operation id: read_request_v1_tenants__tenant_slug__pact_republish_requests__request_id__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
request_idpathstringyesPath parameter identifying the request 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 re-publish request.application/json RepublishRequestRecord
404pact-republish-request-not-found in this workspace.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/pact-republish-requests/{request_id}/acknowledge​

Acknowledge a re-publish request

The consumer acknowledges an open re-publish request (PFX-6.2), optionally with a note (what it will do, and when; at most 1000 characters). Acknowledging again updates the note. The request still expires at the end of its window unless the consumer re-publishes the pact or the provider verifies it. A request that is no longer open is a 409 (pact-republish-request-closed). Requires pacts:edit.

Operation id: acknowledge_v1_tenants__tenant_slug__pact_republish_requests__request_id__acknowledge_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
request_idpathstringyesPath parameter identifying the request 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.

Request body (required)

Request body for acknowledge a re-publish request.

Responses

StatusDescriptionBody
200Successful response for acknowledge a re-publish request.application/json RepublishRequestRecord
404pact-republish-request-not-found in this workspace.—
409pact-republish-request-closed.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-secrets​

List the workspace's secrets

Every secret of the workspace by name (PFX-6.5): its description, the reference a webhook writes (${user.<name>}), when its value was last set, and the webhooks and verification targets that use it. Values are never returned. Requires pacts:view.

Operation id: read_secrets_v1_tenants__tenant_slug__pact_secrets_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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 the workspace's secrets.application/json SecretList
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/pact-secrets​

Create a workspace secret

Keep a secret once, sealed in the credential vault, for webhooks and verification targets to refer to (PFX-6.5). name is a letter, then up to 63 letters, digits and underscores, unique in the workspace and never changed; value is one line of up to 4,096 characters. A webhook refers to it as ${user.<name>} in its URL path or query, headers, body, credentials, GitHub token or signing secret; a verification target with auth.kind: secret and auth.ref: <name>. A workspace keeps at most 200 secrets. The answer never contains the value. Requires pacts:create.

Operation id: post_secret_v1_tenants__tenant_slug__pact_secrets_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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 create a workspace secret.

  • application/json — object
PropertyTypeRequiredDescription
namestringyesWhat references use: a letter, then up to 63 letters, digits and underscores. Never changes.
descriptionstringnoFree-text description.
valuestringyesThe secret, one line. Sealed; never returned.

Responses

StatusDescriptionBody
201Successful response for create a workspace secret.application/json SecretRecord
409pact-secret-name-taken or pact-secret-limit-reached.—
422pact-secret-invalid: the body is malformed; detail.pointer names the field.—
503pact-secret-vault-unavailable: the server has no key to seal the value with (APIOME_MCP_CREDENTIAL_ENCRYPTION_KEYS).—

GET /v1/tenants/{tenant_slug}/pact-secrets/{secret_id}​

Read a workspace secret

One secret, without its value, and what refers to it (PFX-6.5). Requires pacts:view.

Operation id: read_secret_v1_tenants__tenant_slug__pact_secrets__secret_id__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
secret_idpathstringyesPath parameter identifying the secret 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 a workspace secret.application/json SecretRecord
404pact-secret-not-found: no such secret in this workspace.—
422Validation Errorapplication/json HTTPValidationError

PUT /v1/tenants/{tenant_slug}/pact-secrets/{secret_id}​

Update or rotate a workspace secret

Replace the description and, when value is sent, rotate the value (PFX-6.5): every webhook and verification target that refers to the secret uses the new value from its next send or run. The name cannot change — references use it; name may be sent only as the stored one. Requires pacts:edit.

Operation id: put_secret_v1_tenants__tenant_slug__pact_secrets__secret_id__put

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
secret_idpathstringyesPath parameter identifying the secret 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.

Request body (required)

Request body for update or rotate a workspace secret.

  • application/json — object
PropertyTypeRequiredDescription
namestringnoIgnored when it repeats the stored name.
descriptionstringnoOmit or null to clear.
valuestringnoA new value (rotation). Omit to keep the stored one.

Responses

StatusDescriptionBody
200Successful response for update or rotate a workspace secret.application/json SecretRecord
404pact-secret-not-found: no such secret in this workspace.—
422pact-secret-invalid: the body is malformed; detail.pointer names the field.—
503pact-secret-vault-unavailable: the server has no key to seal the value with (APIOME_MCP_CREDENTIAL_ENCRYPTION_KEYS).—

DELETE /v1/tenants/{tenant_slug}/pact-secrets/{secret_id}​

Delete a workspace secret

Delete a secret (PFX-6.5). A secret a webhook or a verification target still refers to is not deleted: the answer is 409 pact-secret-in-use naming them. Requires pacts:delete.

Operation id: remove_secret_v1_tenants__tenant_slug__pact_secrets__secret_id__delete

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
secret_idpathstringyesPath parameter identifying the secret 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
204Successful response for delete a workspace secret.—
404pact-secret-not-found: no such secret in this workspace.—
409pact-secret-in-use: names what still refers to it.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-stubs​

List pact stubs

The workspace's pact stubs, newest change first; provider narrows to one.

Requires pacts:view.

Operation id: list_pact_stubs_v1_tenants__tenant_slug__pact_stubs_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerquerystring or nullnoThe provider, by handle, id or name.
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 pact stubs.application/json PactStubList
404pacticipant-not-found: an unknown provider.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-stubs/{provider}/{name}​

Read a pact stub and what it serves

One stub and its report: the pacts its sources choose now, every interaction it answers (with the provider states to send as X-Mock-Scenario), and everything it does not serve with the reason.

Requires pacts:view.

Operation id: read_pact_stub_v1_tenants__tenant_slug__pact_stubs__provider___name__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
namepathstringyesPath parameter identifying the name 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 a pact stub and what it serves.application/json PactStubDetail
404pacticipant-not-found or pact-stub-not-found.—
422Validation Errorapplication/json HTTPValidationError

PUT /v1/tenants/{tenant_slug}/pact-stubs/{provider}/{name}​

Create or replace a pact stub

Serve a provider's pacts as a mock at {mock}/{tenant}/~pacts/{provider}/{name}/…. sources chooses the pacts (each consumer's latest from its main branch, whatever is deployed, or one consumer version); a request no interaction matches is answered by fallback_mock (fallback: spec) or with a 501. The mock rebuilds the stub when the stub or its pacts change. Audited as pacts.stub.save.

Requires pacts:create.

Operation id: save_pact_stub_v1_tenants__tenant_slug__pact_stubs__provider___name__put

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
namepathstringyesPath parameter identifying the name 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 create or replace a pact stub.

Responses

StatusDescriptionBody
200Successful response for create or replace a pact stub.application/json PactStubDetail
404pacticipant-not-found, or capture-version-not-found for the fallback mock.—
422pact-stub-name-invalid, pact-stub-source-invalid, or pact-stub-fallback-mock-required (a spec fallback with no mock); or an unknown field.—

DELETE /v1/tenants/{tenant_slug}/pact-stubs/{provider}/{name}​

Delete a pact stub

Stop serving a stub; its URL answers 404 from then on. Audited as pacts.stub.delete.

Requires pacts:delete.

Operation id: delete_pact_stub_v1_tenants__tenant_slug__pact_stubs__provider___name__delete

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
namepathstringyesPath parameter identifying the name 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
204Successful response for delete a pact stub.—
404pacticipant-not-found or pact-stub-not-found.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/pact-suites/provider/{provider}/consumer/{consumer}/pact-version/{sha}​

Compile a pact version into a contract suite

Compile one pact version into an executable contract suite (PFX-3.1): one case per HTTP interaction, with source: pact_interaction and synthetic: false. A case's request is the request the consumer recorded; its pact block carries the provider states, the expected response (status, headers, body) and the matching rules and generators of both sides.

Deterministic per pact version. The same pact version and the same options produce a byte-identical manifest and the same sha256: digest, whichever consumer version published it. options.interactions narrows the suite to named interactions (description or Pact 4 key); options.max_interactions caps it.

Nothing is skipped silently. Message and plugin interactions, interactions with no method or path, and request bodies that cannot be decoded are listed under unsupported and in findings; embedded Pact 1 matchers, unknown matchers, request generators and unreadable response bodies are degraded findings; each provider state the runner must set up is an info finding.

Nothing is persisted. Requires pacts:view.

Operation id: compile_pact_version_suite_v1_tenants__tenant_slug__pact_suites_provider__provider__consumer__consumer__pact_version__sha__post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
consumerpathstringyesPath parameter identifying the consumer segment.
shapathstringyesThe pact version's SHA-256 (64 hex characters).
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 (optional)

Request body for compile a pact version into a contract suite.

Responses

StatusDescriptionBody
200Successful response for compile a pact version into a contract suite.application/json PactSuiteResponse
404pacticipant-not-found or pact-not-found: no such provider, consumer or pact version in this workspace.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-verification-settings​

Read the workspace's Pact verification settings

The workspace's verification settings (PFX-6.2): the cadence on which Apiome's hosted verifier runs each pair (on-publish, hourly, nightly or manual-only), the stale threshold in hours (a pact not verified for longer is stale and opens a re-publish request), how many scheduled verifications may run at once, how long a re-publish request stays open, and whether stale pacts open requests. A workspace that never saved any reads the defaults (customised: false: manual-only, 72 h, 2, 72 h, on). Requires pacts:view.

Operation id: read_settings_v1_tenants__tenant_slug__pact_verification_settings_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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 the workspace's pact verification settings.application/json VerificationSettings
422Validation Errorapplication/json HTTPValidationError

PUT /v1/tenants/{tenant_slug}/pact-verification-settings​

Save the workspace's Pact verification settings

Replace the workspace's verification settings (PFX-6.2); every field is required. A cadence other than manual-only runs a pair only where an override names a verification target. Out-of-range values are a 422 naming the field. Requires pacts:edit.

Operation id: update_settings_v1_tenants__tenant_slug__pact_verification_settings_put

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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 save the workspace's pact verification settings.

Responses

StatusDescriptionBody
200Successful response for save the workspace's pact verification settings.application/json VerificationSettings
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-verification-settings/overrides​

List the Pact verification overrides

Every provider-wide and per-pair override of the workspace (PFX-6.2), by provider then consumer: its cadence, stale threshold and verification target (null inherits). target_deleted flags an override whose target was deleted. Requires pacts:view.

Operation id: read_overrides_v1_tenants__tenant_slug__pact_verification_settings_overrides_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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 the pact verification overrides.application/json OverrideList
422Validation Errorapplication/json HTTPValidationError

PUT /v1/tenants/{tenant_slug}/pact-verification-settings/overrides​

Save a Pact verification override

Create or replace the override of a provider (omit consumer) or of one consumer ↔ provider pair (PFX-6.2). Set at least one of cadence, stale_threshold_hours and target_ref (the verification target scheduled runs replay against); a null field inherits — the pair's override wins over the provider's, which wins over the workspace's. A workspace has at most 500 overrides. Requires pacts:edit.

Operation id: save_override_v1_tenants__tenant_slug__pact_verification_settings_overrides_put

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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 save a pact verification override.

Responses

StatusDescriptionBody
200Successful response for save a pact verification override.application/json OverrideRecord
404pacticipant-not-found or target-not-found in this workspace.—
422pact-verification-override-invalid, or a value out of range.—

DELETE /v1/tenants/{tenant_slug}/pact-verification-settings/overrides/{override_id}​

Remove a Pact verification override

Remove one override (PFX-6.2); the provider or pair inherits again. Requires pacts:edit.

Operation id: remove_override_v1_tenants__tenant_slug__pact_verification_settings_overrides__override_id__delete

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
override_idpathstringyesPath parameter identifying the override 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
204Successful response for remove a pact verification override.—
404pact-verification-override-not-found in this workspace.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/pact-verifier/pacts/provider/{provider}/consumer/{consumer}/pact-version/{sha}/reverify​

Re-run the verification of one pact

Verify one pact version again on a registered verification target (PFX-5.5), with the hosted verifier (PFX-3.2): the same replay, matching, evidence and publishing. Without provider_version the run verifies as the provider version and branch of the pact version's newest result. The published result records trigger: manual.

A console run of the same consumer ↔ provider pair that is still running makes this a 409 (pact-verify-in-progress). Like the hosted verifier, a run that happened is 200 whatever it found: read success and outcome. Requires pacts:create and verification_evidence:create.

Operation id: reverify_v1_tenants__tenant_slug__pact_verifier_pacts_provider__provider__consumer__consumer__pact_version__sha__reverify_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
consumerpathstringyesPath parameter identifying the consumer segment.
shapathstringyesPath parameter identifying the sha 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 re-run the verification of one pact.

Responses

StatusDescriptionBody
200Successful response for re-run the verification of one pact.application/json ConsoleRunResponse
400A malformed provider version, branch or build URL.—
404pacticipant-not-found, pact-not-found or target-not-found in this workspace.—
409pact-verify-in-progress: a console run of this pair is already running.—
422pact-verify-provider-version-required, pact-verify-target-auth-unavailable, or a target that cannot be used (target-disabled, target-protocol-mismatch, a URL refusal).—

GET /v1/tenants/{tenant_slug}/pact-verifier/pacts/provider/{provider}/results​

List a provider's verification results

Every verification result of the provider, newest first (PFX-5.5): native results a Pact verifier published, the hosted verifier's, console re-runs and bi-directional comparisons. Each has its provider version and branch, build URL, verifier, trigger (published, hosted, manual, stale-recheck, bidirectional, or null before triggers were recorded), run duration and interaction counts. consumer narrows to one consumer; pass next_cursor as cursor for the next page. Requires pacts:view.

Operation id: read_results_v1_tenants__tenant_slug__pact_verifier_pacts_provider__provider__results_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
consumerquerystring or nullnoOnly this consumer's results.
cursorquerystring or nullnoThe next_cursor of the previous page.
limitqueryintegernoPage size.
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 provider's verification results.application/json ResultHistoryPage
400pact-history-cursor-invalid.—
404pacticipant-not-found or pact-verification-not-found in this workspace.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-verifier/pacts/provider/{provider}/results/{result_id}​

Read one verification result with its log

One verification result of the provider (PFX-5.5): its summary, its test_results as stored (each failed interaction's mismatches with expected and actual where the verifier sent them), a bi-directional result's comparison, and — when Apiome ran it — its evidence run, every request with its assertions. evidence_status says why the run is absent: not-recorded (a Pact verifier published the result), not-found (pruned) or forbidden (the caller lacks verification_evidence:view). Requires pacts:view.

Operation id: read_one_result_v1_tenants__tenant_slug__pact_verifier_pacts_provider__provider__results__result_id__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
result_idpathstringyesPath parameter identifying the result 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 verification result with its log.application/json ResultDetail
404pacticipant-not-found or pact-verification-not-found in this workspace.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-verifier/pacts/provider/{provider}/verification-status​

Where a provider's verification stands

Each consumer's newest pact for the provider (PFX-5.5), with the newest verification result of that pact version and whether it is stale: a pact version with no result at all — it changed since the provider last verified, or was never verified. counts is the KPI strip (pacts, verified, failing, stale, interactions, passing interactions, last verified). At most 500 consumers (truncated). Requires pacts:view.

Operation id: read_verification_status_v1_tenants__tenant_slug__pact_verifier_pacts_provider__provider__verification_status_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider 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 where a provider's verification stands.application/json VerificationStatus
404pacticipant-not-found or pact-verification-not-found in this workspace.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/pact-verifier/pacts/provider/{provider}/verify​

Verify a provider against its pacts (hosted verifier)

Run provider verification from Apiome (PFX-3.2): select the pacts the provider must honour, replay each interaction against a registered verification target, and publish a verification result per pact — no Pact library on the provider's side.

Selection. selection is the body of …/pact-broker/pacts/provider/{provider}/for-verification, unchanged (consumer-version selectors, pending and work-in-progress pacts). At most 25 pacts per run.

Replay. Each pact is compiled into its contract suite (the manifest and digest of POST …/pact-suites/…) and replayed on the contract runner under the target's policy: SSRF guard, timeouts, retries (transport failures only) and credentials come from the target, never from this request.

Matching. The status, the recorded headers and the body are compared under the pact's matching rules. Each mismatch names the interaction, the field (a JSON Pointer into the response body, or the header), the rule that failed, and the expected and actual values. A rule the verifier cannot apply fails the interaction; it never passes silently.

Mutating interactions (POST, PUT, PATCH, DELETE) are sent only when the target's policy allows mutating methods and verification.allow_mutating is true. A run cannot widen the target's policy, and a run with allow_mutating against a target whose environment is production is refused (pact-verify-mutating-production) before anything is sent.

Provider states. Registered states (PFX-3.3) are set up around each interaction. With verification.provider_states_setup_url every state is POSTed to the provider's own setup endpoint instead. Otherwise an interaction that names a provider state is skipped with provider-state-not-set-up unless verification.replay_without_state_setup is true (the target already holds the data).

Already verified. With skip_already_verified, a pact that already has a result for this provider_version is listed under skipped and not replayed; when that is every pact the outcome is already-verified.

An unreachable target — every request ended in a transport error or a timeout — ends the run as could-not-connect with connection_error, not as a failed verification: nothing is published.

Publishing. A pact is passed when every interaction was replayed and matched, failed when one did not match, and incomplete when nothing failed but something was skipped, unreachable or cannot be replayed. passed and failed are published as verification results against provider_version (and provider_branch), and show in the matrix and can-i-deploy; incomplete publishes nothing. publish: false is a dry run.

The answer is 200 for any run that happened; read success and outcome. Requires pacts:create and verification_evidence:create.

Operation id: verify_provider_v1_tenants__tenant_slug__pact_verifier_pacts_provider__provider__verify_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider 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 verify a provider against its pacts (hosted verifier).

Responses

StatusDescriptionBody
200Successful response for verify a provider against its pacts (hosted verifier).application/json PactVerifyResponse
400pact-selector-invalid, or a malformed provider version, branch or build URL.—
404pacticipant-not-found or target-not-found in this workspace.—
422pact-verify-too-many-pacts, pact-verify-target-auth-unavailable, pact-verify-mutating-production, or a target that cannot be used (target-disabled, target-protocol-mismatch, a URL refusal).—

POST /v1/tenants/{tenant_slug}/pact-verifier/pacts/provider/{provider}/verify-stale​

Verify every stale pact of a provider

Verify each consumer's newest pact that has no verification result yet (PFX-5.5) in one run of the hosted verifier, as provider_version (required) on a registered verification target. The published results record trigger: stale-recheck. At most 25 pacts are verified; the rest are listed in skipped with pact-verify-over-limit, and a pair whose console run is still running with pact-verify-in-progress — none is dropped. No stale pact is outcome: no-pacts. Requires pacts:create and verification_evidence:create.

Operation id: verify_stale_v1_tenants__tenant_slug__pact_verifier_pacts_provider__provider__verify_stale_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider 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 verify every stale pact of a provider.

Responses

StatusDescriptionBody
200Successful response for verify every stale pact of a provider.application/json ConsoleRunResponse
400A malformed provider version, branch or build URL.—
404pacticipant-not-found, pact-not-found or target-not-found in this workspace.—
409pact-verify-in-progress: a console run of this pair is already running.—
422pact-verify-provider-version-required, pact-verify-target-auth-unavailable, or a target that cannot be used (target-disabled, target-protocol-mismatch, a URL refusal).—

POST /v1/tenants/{tenant_slug}/pact-verifier/pacts/provider/{provider}/verify/preview​

Preview a hosted verification

Say what POST …/verify would do with this body (PFX-8.8), sending nothing to any target and storing nothing: how many pacts each consumer-version selector chooses on its own (rules), every pact the whole selection chooses with its interactions, how many change data, its newest result and whether it already has a result for provider_version (already_verified; skipped with skip_already_verified), the provider states those interactions name and how many the chosen strategy sets up (the registry, verification.provider_states_setup_url, or none), and the target's environment class.

Every reason the run would not start is a refusals entry with the run's own code — pact-verify-mutating-production, pact-verify-too-many-pacts, target-not-found, a malformed provider version — so the page can say it before anything is sent. target_ref and provider_version are optional (a self-run has no target). Requires pacts:view.

Operation id: preview_verify_v1_tenants__tenant_slug__pact_verifier_pacts_provider__provider__verify_preview_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider 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 preview a hosted verification.

Responses

StatusDescriptionBody
200Successful response for preview a hosted verification.application/json VerifyPreviewResponse
400pact-selector-invalid.—
404pacticipant-not-found in this workspace.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/pact-verifier/pacts/provider/{provider}/verify/runs​

Start a live hosted verification

Start the run POST …/verify would make, and answer at once (PFX-8.9) — the body is the same, field for field, and so is every refusal: a malformed provider version, pact-verify-too-many-pacts, an unknown or disabled target, pact-verify-mutating-production, all raised before anything is sent.

The run then replays in the background. Read it with GET …/pact-verifier/runs/{run_id} — one row per pact with interactions done of the total, the newest failing interaction with expected beside actual, and the log — and stop it with …/stop. Interactions are sent one at a time so a stop takes effect before the next one. Results are published exactly as …/verify publishes them, as each pact finishes.

A workspace runs at most 3 live runs at once (429 pact-verify-run-limit). A run lives in the API worker that started it and is kept for 30 minutes after it ends. Requires pacts:create and verification_evidence:create.

Operation id: start_live_run_v1_tenants__tenant_slug__pact_verifier_pacts_provider__provider__verify_runs_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider 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 start a live hosted verification.

Responses

StatusDescriptionBody
202Successful response for start a live hosted verification.application/json LiveRunSnapshot
400pact-selector-invalid, or a malformed provider version, branch or build URL.—
404pacticipant-not-found or target-not-found in this workspace.—
422The same refusals as POST …/verify.—
429pact-verify-run-limit: the workspace already has 3 runs going.—

GET /v1/tenants/{tenant_slug}/pact-verifier/providers/{provider}/provider-states​

List a provider's registered provider states

The provider states the provider has registered (PFX-3.3), by name, each with its parameters, its default setup and its per-target overrides. Requires pacts:view.

Operation id: list_states_route_v1_tenants__tenant_slug__pact_verifier_providers__provider__provider_states_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider 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 list a provider's registered provider states.application/json array of ProviderStateRecord
404pacticipant-not-found or provider-state-not-found in this workspace.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/pact-verifier/providers/{provider}/provider-states​

Register a provider state

Register a state the provider's pacts name, and how the hosted verifier sets it up (PFX-3.3).

Name — exactly as consumers write it (an invoice 1042 exists); unique per provider.

Parameters — [{name, required, default, description}]. An interaction that leaves out a required parameter without a default is held back with provider-state-param-missing; one that passes an undeclared parameter is reported, and the parameter passed on.

Setup — {kind: "state_change", url, teardown} posts the Pact state-change body {state, params, action} to url: a path is sent to the verification target with its credential, an absolute http(s) URL through the SSRF guard with none. {kind: "fixture", requests, teardown_requests} sends recorded requests to the target, ${param} substituted; empty requests means the target already holds the data. Credentials are never stored in a fixture.

Overrides — [{target_ref, setup}]: a different setup on one verification target.

Requires pacts:create.

Operation id: create_state_route_v1_tenants__tenant_slug__pact_verifier_providers__provider__provider_states_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider 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 register a provider state.

Responses

StatusDescriptionBody
201Successful response for register a provider state.application/json ProviderStateRecord
403The credential lacks the pacts permission this route needs.—
404pacticipant-not-found or provider-state-not-found in this workspace.—
409provider-state-name-taken.—
422provider-state-invalid, with a JSON Pointer to the place.—

POST /v1/tenants/{tenant_slug}/pact-verifier/providers/{provider}/provider-states/check​

Check a provider's pacts against its provider states

Before a hosted verification (PFX-3.3): select the pacts a run would (selection, as on …/verify), and report every provider state their interactions name — registered or not, the setup it would use on target_ref, and each problem: provider-state-not-registered, provider-state-param-missing, provider-state-setup-blocked (blocking — the run holds the interaction back) and provider-state-param-undeclared (a warning). ready is true when nothing blocks. Nothing is sent to the target. Requires pacts:view.

Operation id: check_states_route_v1_tenants__tenant_slug__pact_verifier_providers__provider__provider_states_check_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider 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 check a provider's pacts against its provider states.

Responses

StatusDescriptionBody
200Successful response for check a provider's pacts against its provider states.application/json StateCheckResponse
400pact-selector-invalid.—
403The credential lacks the pacts permission this route needs.—
404pacticipant-not-found or provider-state-not-found in this workspace.—
422pact-verify-too-many-pacts.—

GET /v1/tenants/{tenant_slug}/pact-verifier/providers/{provider}/provider-states/{state_id}​

Read a provider state

One registered provider state (PFX-3.3). Requires pacts:view.

Operation id: get_state_route_v1_tenants__tenant_slug__pact_verifier_providers__provider__provider_states__state_id__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
state_idpathstringyesPath parameter identifying the state 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 a provider state.application/json ProviderStateRecord
404pacticipant-not-found or provider-state-not-found in this workspace.—
422Validation Errorapplication/json HTTPValidationError

PUT /v1/tenants/{tenant_slug}/pact-verifier/providers/{provider}/provider-states/{state_id}​

Replace a provider state

Replace a registered state's name, parameters, setup and overrides (PFX-3.3); the body is the one POST takes, and the overrides it lists replace the stored ones. Requires pacts:edit.

Operation id: replace_state_route_v1_tenants__tenant_slug__pact_verifier_providers__provider__provider_states__state_id__put

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
state_idpathstringyesPath parameter identifying the state 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.

Request body (required)

Request body for replace a provider state.

Responses

StatusDescriptionBody
200Successful response for replace a provider state.application/json ProviderStateRecord
403The credential lacks the pacts permission this route needs.—
404pacticipant-not-found or provider-state-not-found in this workspace.—
409provider-state-name-taken.—
422provider-state-invalid, with a JSON Pointer to the place.—

DELETE /v1/tenants/{tenant_slug}/pact-verifier/providers/{provider}/provider-states/{state_id}​

Delete a provider state

Delete a registered state and its overrides (PFX-3.3). Interactions that name it are then held back with provider-state-not-registered. Requires pacts:delete.

Operation id: delete_state_route_v1_tenants__tenant_slug__pact_verifier_providers__provider__provider_states__state_id__delete

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
providerpathstringyesPath parameter identifying the provider segment.
state_idpathstringyesPath parameter identifying the state 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
204Successful response for delete a provider state.—
404pacticipant-not-found or provider-state-not-found in this workspace.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-verifier/runs/{run_id}​

Read a live hosted verification

A live run as it stands (PFX-8.9): status (running, finished, errored), one row per pact (queued, running, passed, failed, incomplete, stopped) with interactions done of the total, the newest interaction that did not pass with its mismatches (expected beside actual), the log lines after log_after, and — once finished — result, exactly what POST …/verify would have answered. Poll it every second or so; read the log on with log_after=<log_next>. A log keeps its newest 2000 lines and counts the older ones in log_dropped. Requires pacts:view.

Operation id: read_live_run_v1_tenants__tenant_slug__pact_verifier_runs__run_id__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
run_idpathstringyesPath parameter identifying the run id segment.
log_afterqueryintegernoReturn only log lines after this seq.
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 a live hosted verification.application/json LiveRunSnapshot
404pact-verify-run-not-found: no live run with that id in this workspace.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/pact-verifier/runs/{run_id}/rerun​

Re-run one interaction of a live hosted verification

Replay one interaction of a pact the run verified, against the run's target with the run's options (PFX-8.9) — provider states set up and torn down, the target's policy and the production rule enforced as in any run. Nothing is published and no evidence is recorded: one interaction does not verify a pact; start a run to record a result. The run must have finished (409 pact-verify-run-busy while it is going). Requires pacts:create and verification_evidence:create.

Operation id: rerun_live_interaction_v1_tenants__tenant_slug__pact_verifier_runs__run_id__rerun_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
run_idpathstringyesPath parameter identifying the run 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.

Request body (required)

Request body for re-run one interaction of a live hosted verification.

Responses

StatusDescriptionBody
200Successful response for re-run one interaction of a live hosted verification.application/json RerunResponse
404pact-verify-run-not-found, pact-verify-run-pact-not-found, pact-verify-run-interaction-not-found, or the target is gone.—
409pact-verify-run-busy: the run is still going.—
422The target can no longer be used, or would be sent a mutating request in production.—

POST /v1/tenants/{tenant_slug}/pact-verifier/runs/{run_id}/stop​

Stop a live hosted verification

Ask a live run to stop (PFX-8.9). It ends before its next interaction: the pact being replayed publishes nothing (run-stopped), the pacts not reached are listed under skipped with pact-verify-stopped, pacts already finished keep their published results, and the outcome is stopped. Stopping a finished run changes nothing. Requires pacts:create.

Operation id: stop_live_run_v1_tenants__tenant_slug__pact_verifier_runs__run_id__stop_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
run_idpathstringyesPath parameter identifying the run 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 stop a live hosted verification.application/json LiveRunSnapshot
404pact-verify-run-not-found: no live run with that id in this workspace.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-webhook-deliveries​

List webhook deliveries

The firings of the workspace's contract webhooks, newest first: each with its status (success, failure — dead-lettered after every attempt, retrying, not_run), attempts, the event, the pact that caused it and how it was triggered (resource_creation or user for a redelivery). webhook narrows to one webhook, status to one status. Pass nextCursor back as cursor for the next page. Requires pacts:view.

Operation id: read_deliveries_v1_tenants__tenant_slug__pact_webhook_deliveries_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
webhookquerystring or nullnoOnly this webhook's deliveries (its uuid).
statusqueryenum "success", "failure", "retrying", "not_run" or nullnoOnly deliveries with this status.
cursorquerystring or nullnoThe nextCursor of the previous page.
limitqueryintegernoThe page size.
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 webhook deliveries.application/json object
400pact-webhook-delivery-cursor-invalid or pact-webhook-invalid (unknown status).—
404pact-webhook-not-found: no such webhook in this workspace.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-webhook-deliveries/latest​

Latest delivery of each webhook

The newest firing of each of the workspace's contract webhooks, keyed by webhook uuid; a webhook that never fired is absent. Requires pacts:view.

Operation id: read_latest_deliveries_v1_tenants__tenant_slug__pact_webhook_deliveries_latest_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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 latest delivery of each webhook.application/json object
422Validation Errorapplication/json HTTPValidationError

GET /v1/tenants/{tenant_slug}/pact-webhook-deliveries/{delivery_id}​

Read a webhook delivery

One firing and the log of each attempt (attempt, success, status, logs, createdAt), oldest first — what was sent and what came back, every secret removed. Requires pacts:view.

Operation id: read_delivery_v1_tenants__tenant_slug__pact_webhook_deliveries__delivery_id__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
delivery_idpathstringyesPath parameter identifying the delivery 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 a webhook delivery.application/json object
404pact-triggered-webhook-not-found: no such delivery in this workspace.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/tenants/{tenant_slug}/pact-webhook-deliveries/{delivery_id}/redeliver​

Redeliver a webhook delivery

Send a finished firing (success or failure) again: a new firing of the same webhook, with the same event and template parameters, queued now and retried as any other (triggerType user). The original and its log are kept. Answers 202 with the new delivery. Requires pacts:edit.

Operation id: post_redeliver_v1_tenants__tenant_slug__pact_webhook_deliveries__delivery_id__redeliver_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
delivery_idpathstringyesPath parameter identifying the delivery 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
202Successful response for redeliver a webhook delivery.application/json object
404pact-triggered-webhook-not-found: no such delivery in this workspace.—
409pact-webhook-delivery-in-progress: the delivery is still queued or being retried; pact-webhook-disabled: its webhook is disabled.—
422Validation Errorapplication/json HTTPValidationError

Schemas used​

AcknowledgeRequest​

The consumer acknowledges a re-publish request.

PropertyTypeRequiredDescription
notestring or nullnoWhat the consumer will do, and when.

ConsoleRunRequest​

A re-run or verify-all-stale from the Verification console.

PropertyTypeRequiredDescription
target_refstringyesSlug or id of the registered verification target to replay against.
provider_versionstring or nullnoThe provider version being verified. A re-run defaults to the provider version of the pact's newest result; verify-all-stale requires it.
provider_branchstring or nullnoIts branch. A re-run that takes the provider version from a result takes its branch too.
build_urlstring or nullnohttp(s) URL of the CI build.
verificationPactVerificationOptionsnoWhat the run may send: the mutating-method opt-in, fixtures and the provider-state choice.
contextobjectnoNon-secret context stored with the evidence. Never credentials.

ConsoleRunResponse​

A console run: the hosted verifier's answer, its trigger, and what it did not run.

PropertyTypeRequiredDescription
providerstringyesThe provider's handle.
provider_versionstringyesThe provider version verified.
provider_branchstring or nullnoIts branch, when stated.
targetVerifiedTargetyesThe verification target replayed against.
successbooleanyesWhat a CI job should exit on: true when at least one pact was verified and every pact that is not pending passed — or, for already-verified, when every skipped pact's newest result for this provider version passed.
outcomestringyespassed, failed (a non-pending pact failed), incomplete (none failed, but one could not be fully replayed), could-not-connect (no request reached the target — see connection_error), already-verified (with skip_already_verified, every selected pact already has a result for this provider version), no-pacts (the selectors chose nothing) or stopped (a live run was stopped before it finished; PFX-8.9).
pactsarray of PactVerificationnoOne entry per pact verified.
skippedarray of SkippedPactnoChosen but not verified, each with why.
connection_errorstring or nullnoWith outcome could-not-connect: the target never answered (Could not connect to billing.staging.example (timeout)). Not a failed verification — nothing was published.
triggerstringyesmanual (re-run), stale-recheck (verify all stale) or scheduled.

HTTPValidationError​

Validation error response emitted when request data fails schema checks.

PropertyTypeRequiredDescription
detailarray of ValidationErrornoDetail.

LiveRunSnapshot​

A live run as it stands.

PropertyTypeRequiredDescription
run_idstringyesThe run's id.
providerstringyesThe provider's handle.
provider_namestringyesThe provider's display name.
provider_versionstringyesThe provider version being verified.
provider_branchstring or nullnoIts branch, when stated.
targetstringyesThe verification target's handle.
target_base_urlstringyesWhere the interactions are sent.
environmentstringyesThe target's environment class.
statusstringyesrunning, finished or errored.
stop_requestedbooleanyesWhether someone asked the run to stop.
started_atstring (date-time)yesWhen the run started.
finished_atstring (date-time) or nullnoWhen it ended.
interactionsintegeryesInteractions of every pact, as far as they are compiled.
doneintegeryesInteractions replayed or held back so far.
pactsarray of LiveRunPactnoOne row per pact, in run order.
skippedarray of SkippedPactnoChosen but not verified, each with why.
failureLiveRunFailure or nullnoThe newest interaction that did not pass.
logarray of LiveRunLogLinenoLog lines after log_after, oldest first.
log_nextintegeryesThe newest line's seq: send it as log_after to read on.
log_droppedintegernoOlder lines let go beyond the 2000 a run keeps.
resultPactVerifyResponse or nullnoOnce finished: exactly what POST …/verify would have answered.
errorLiveRunFault or nullnoWith status errored: why.

MigrationReport​

The answer to an import or a check.

PropertyTypeRequiredDescription
dry_runbooleanyesTrue for a check: nothing was written.
resultsarray of MigrationOutcomeyesOne entry per record, in batch order.
countsmap of integeryesHow many records had each outcome.

OverrideInput​

A provider-wide or per-pair override, as PUT …/overrides creates or replaces it.

PropertyTypeRequiredDescription
providerstringyesThe provider's handle, id or name.
consumerstring or nullnoThe consumer's handle, id or name; omit for every consumer of the provider.
cadencestring or nullnoThe cadence; null inherits.
stale_threshold_hoursinteger or nullnoThe stale threshold (1 … 2160); null inherits.
target_refstring or nullnoSlug or id of the verification target scheduled runs replay against; null inherits.

OverrideList​

Every override of the workspace, by provider then consumer.

PropertyTypeRequiredDescription
overridesarray of OverrideRecordnoOverrides.

OverrideRecord​

A stored override.

PropertyTypeRequiredDescription
idstringyesThe override's id (what DELETE …/overrides/{id} removes).
providerstringyesThe provider's handle.
provider_namestringyesThe provider's display name.
consumerstring or nullnoThe consumer's handle; null for every consumer.
consumer_namestring or nullnoThe consumer's display name.
cadencestring or nullnoThe cadence; null inherits.
stale_threshold_hoursinteger or nullnoThe threshold; null inherits.
targetstring or nullnoThe verification target's handle; null inherits.
target_namestring or nullnoIts display name.
target_deletedbooleannoTrue when the target was deleted: scheduled runs of this override cannot run.
updated_atstring or nullnoWhen it was last saved.

PactGenerateBody​

POST …/pact-broker/pacts/generate: exactly one of session, traffic and scenarios.

PropertyTypeRequiredDescription
sessionstring or nullnoThe capture session id (PFX-9.1).
trafficPactGenerateTraffic or nullnoPast traffic instead of a session: the capture history of a mock version.
scenariosPactGenerateScenarios or nullnoOperations × mock scenarios instead of captured calls.
providerstring or nullnoThe provider's name. Default: the pacticipant bound to the mocked project.
matchingenum "exact", "type", "spec"noexact: the first call's values. type: any value of the same type. spec: by type, plus the spec's formats and patterns.
fieldsenum "all", "read"noall: every field in every response. read: only the fields the consumer's field-usage reports say it read (an operation no report covers keeps every field); refused when the source has no report.
overridesarray of PactGenerateOverridenoOverrides.
leave_outarray of stringnoInteractions to keep out of the pact, each by its description (GET /invoices/{id} returns 404 given not-found, as report.interactions[].description names it). Each is listed in report.left_out_interactions; a name the session has no interaction for is listed there too.
previousstringnoDiff against latest (the consumer's newest pact for the provider), none, or a consumer version number.

PactHealthOverview​

The workspace's contract health over a window.

PropertyTypeRequiredDescription
windowstringyes7d, 30d or 90d.
sincestringyesThe window's first instant (inclusive).
untilstringyesThe window's end (exclusive): the end of today, UTC.
bucket_daysintegeryesThe length of one trend bucket, in days.
generated_atstringyesWhen this rollup was computed (it is computed on every read).
countsPactHealthCountsyesPairs per state.
totalsPactPairMetricsyesThe analytics of every listed pair together.
pairsarray of PactPairHealthnoWorst first, then by provider and consumer handle.
truncatedbooleannoTrue when more than 500 pairs match (the rest are left out and counted).
omitted_pairsintegernoHow many matching pairs were left out by the cap.

PactHeld​

A pact held for review.

PropertyTypeRequiredDescription
idstringyesStable resource identifier.
projectstringyesProject.
versionstringyesVersion.
consumerstringyesConsumer.
providerstringyesProvider.
consumer_versionstringyesConsumer Version.
branchstring or nullnoBranch.
tagsarray of stringnoAssociated tag labels.
build_urlstring or nullnoBuild URL.
shastringyesThe pact version it becomes when published.
interaction_countintegeryesNumber of interaction.
changesobjectyesWhat changed since the previous pact: added, removed, changed, unchanged, looser.
previous_consumer_versionstring or nullnoPrevious Consumer Version.
statusenum "held", "published", "discarded"yesStatus.
held_by_labelstring or nullnoHeld By Label.
held_atstring (date-time)yesHeld At timestamp (ISO 8601).
decided_by_labelstring or nullnoDecided By Label.
decided_atstring (date-time) or nullnoDecided At timestamp (ISO 8601).
decision_notestring or nullnoDecision Note.

PactHeldApproval​

A held pact, published.

PropertyTypeRequiredDescription
heldPactHeldyesHeld.
publishobjectyesThe publish result, as POST …/contracts/publish answers it.

PactHeldDetail​

A held pact with its document.

PropertyTypeRequiredDescription
idstringyesStable resource identifier.
projectstringyesProject.
versionstringyesVersion.
consumerstringyesConsumer.
providerstringyesProvider.
consumer_versionstringyesConsumer Version.
branchstring or nullnoBranch.
tagsarray of stringnoAssociated tag labels.
build_urlstring or nullnoBuild URL.
shastringyesThe pact version it becomes when published.
interaction_countintegeryesNumber of interaction.
changesobjectyesWhat changed since the previous pact: added, removed, changed, unchanged, looser.
previous_consumer_versionstring or nullnoPrevious Consumer Version.
statusenum "held", "published", "discarded"yesStatus.
held_by_labelstring or nullnoHeld By Label.
held_atstring (date-time)yesHeld At timestamp (ISO 8601).
decided_by_labelstring or nullnoDecided By Label.
decided_atstring (date-time) or nullnoDecided At timestamp (ISO 8601).
decision_notestring or nullnoDecision Note.
pactobjectyesThe document approving publishes, exactly.

PactHeldDiscardBody​

Why the held pact is not published.

PropertyTypeRequiredDescription
notestring or nullnoNote.

PactHeldList​

Held pacts, newest first.

PropertyTypeRequiredDescription
heldarray of PactHeldyesHeld.
held_countintegeryesHow many of the workspace's pacts wait for review (any filter aside).

PactIntegrationsPage​

What GET /v1/tenants/{tenant}/pact-integrations answers.

PropertyTypeRequiredDescription
integrationsarray of PactIntegrationnoThis page, worst first.
totalintegernoRows matching the search and filter.
offsetintegernoOffset.
limitintegernoLimit.
filterstringnoFilter.
searchstring or nullnoSearch.
countsPactIntegrationCountsnoCounts.
attentionPactIntegrationAttentionnoAttention.
pacticipantsintegernoPacticipants in the workspace.
environmentsintegernoEnvironments in the workspace.
truncatedbooleannoMore than 1000 pairs: the rest are not classified.
omitted_integrationsintegernoHow many pairs were left out when truncated.
mine_availablebooleannoFalse for a credential with no user (no mine filter).

PactMigrationRunList​

The workspace's migration runs.

PropertyTypeRequiredDescription
runsarray of PactMigrationRunViewyesNewest first, without findings, failures or log.
can_migratebooleannoWhether the caller may test a source and start, stop or resume a run (pacts:create and pacts:edit).

PactMigrationRunView​

A migration run, as the wizard and the Past migrations drawer read it.

PropertyTypeRequiredDescription
idstringyesStable resource identifier.
sourcestringyesThe source broker's base URL.
hoststringyesIts host, for display.
auth_kindstringyestoken, basic or none — what a resume must be given again.
modestringyesdry-run (nothing written) or copy.
statusstringyesrunning, completed, stopped or failed.
phasestringyesreading, the record kind being copied, checking (the agreement check), or done.
percentintegeryesRecords dealt with, of those the source returned (0 while it is being read).
optionsPactMigrationRunOptionsyesOptions.
kindsarray of PactMigrationKindProgressyesThe chosen kinds, in copying order.
factsobjectyesWhat the run learned: product, cleanup_rules_set, and — from a dry run — cleanup_would_skip (versions the keep-rules would leave behind), results_not_latest and labels_and_tags (how many the source has). After a copy (PFX-8.17): agreement — {asked, agree, not_asked, differences: [{question, pacticipant, version, environment, source, apiome, cause}], differences_dropped, checked_at} or {error}; moved — {total, moved, pacticipants: [{name, last: apiome|source|none, apiome_at, source_at}], dropped, checked_at} or {error}. source_error is the pact-migration-source-* code of a run the source broke.
findingsarray of PactMigrationRunFindingnoFindings.
failuresarray of PactMigrationRunFailurenoFailures.
failures_droppedintegernoRefused records counted but not listed.
logarray of PactMigrationRunLogLinenoLog lines after after.
log_seqintegernoThe number of the newest log line.
errorstring or nullnoWhy a run failed, or how it came to be stopped.
stop_requestedbooleannoStop Requested.
can_resumebooleanyesWhether it can be set running again (given the credentials).
started_bystring or nullnoStarted By.
created_atstring or nullnoCreation timestamp (ISO 8601).
finished_atstring or nullnoFinished At timestamp (ISO 8601).
not_readarray of stringnoWhat a migration never reads from a source.

PactMigrationSourceCredentials​

How to sign in to the source. Used for this request's run only; never stored.

PropertyTypeRequiredDescription
tokenstring (password) or nullnoA bearer token for the source; a read-only one is enough. Never stored.
usernamestring or nullnoBasic-auth user of an open-source broker without tokens.
passwordstring (password) or nullnoBasic-auth password. Never stored.

PactMigrationSourceRequest​

A source broker and how to sign in to it.

PropertyTypeRequiredDescription
tokenstring (password) or nullnoA bearer token for the source; a read-only one is enough. Never stored.
usernamestring or nullnoBasic-auth user of an open-source broker without tokens.
passwordstring (password) or nullnoBasic-auth password. Never stored.
sourcestringyesThe source's base URL, e.g. https://acme.pactflow.io (no credentials in it).

PactMigrationSourceTestResult​

What Test connection found.

PropertyTypeRequiredDescription
hoststringyesThe source's host.
productstringyesPactFlow or Pact Broker.
pacticipantsintegeryesPacticipants the source lists.

PactMigrationSyncView​

Whether a migration is kept in sync, and how its passes have gone.

PropertyTypeRequiredDescription
run_idstringyesRun ID.
enabledbooleanyesWhether what is new at the old broker is copied on a schedule.
interval_minutesintegeryesHow often a pass runs.
next_run_atstring or nullnoWhen the next pass is due (while enabled).
last_pass_atstring or nullnoLast Pass At timestamp (ISO 8601).
last_success_atstring or nullnoWhen a pass last copied without failing.
unreachable_sincestring or nullnoSince when the old broker could not be read; after 24 hours the sync stops itself.
passesintegernoPasses that ran to the end.
last_errorstring or nullnoWhat went wrong in the last pass.
stopped_reasonstring or nullnoWhy the sync stopped itself (an unreachable source, unopenable credentials …).
enabled_bystring or nullnoEnabled By.
availablebooleanyesWhether this server can keep credentials at all (a master key is configured); without one, switching on answers 503 pact-migration-sync-unavailable.
unreachable_limit_hoursintegeryesHow long the source may be unreachable before the sync stops.

PactPairHealthDetail​

One pair's health with its trend.

PropertyTypeRequiredDescription
windowstringyes7d, 30d or 90d.
sincestringyesThe window's first instant (inclusive).
untilstringyesThe window's end (exclusive).
bucket_daysintegeryesThe length of one trend bucket, in days.
generated_atstringyesWhen this was computed.
pairPactPairHealthyesThe pair's health over the whole window.
trendarray of PactTrendBucketyesEvery bucket of the window, oldest first (empty ones included).

PactPostmanRequest​

What to export: a stored pact (by pair and selection) or an inline Pact document.

PropertyTypeRequiredDescription
providerstring or nullnoThe provider pacticipant (handle, id or name). Required for a stored pact.
consumerstring or nullnoThe consumer pacticipant (handle, id or name). Required for a stored pact.
consumerVersionstring or nullnoThe pact this consumer version published.
tagstring or nullnoThe latest pact of consumer versions with this tag.
branchstring or nullnoThe latest pact of consumer versions on this branch.
pactVersionShastring or nullnoThe pact with this content address (64 hex characters).
pactobject or nullnoAn inline Pact document (specification 1–4) instead of a stored pact. consumer and provider then only name the collection, and default to the document's own.
baseUrlstring or nullnoThe value of the {{baseUrl}} collection variable (an http or https URL). Omitted: empty, to fill in (Newman: --env-var baseUrl=…).
testsbooleannoGive each request a test script that checks the expected response.
allConsumersbooleannoExport the latest pact of every consumer of provider (with tag or branch: the latest such pact), one folder per consumer. Leave consumer, consumerVersion, pactVersionSha and pact out.
stateSetupbooleannoGive each request that needs provider states a pre-request script that first POSTs {"state", "params", "action": "setup"} per state to the {{stateChangeUrl}} variable.
stateChangeUrlstring or nullnoThe value of the {{stateChangeUrl}} variable (an http or https URL; only with stateSetup). Omitted: empty, to fill in.

PactRecordBody​

One recorded pact and the test run behind it.

PropertyTypeRequiredDescription
sessionstringyesThe capture session the pact was generated from; it names the mock, consumer and version.
pactobjectyesThe generated Pact document (POST …/pacts/generate's pact).
tests_passedbooleanyesWhether the wrapped test command passed.
test_exit_codeinteger or nullnoIts exit code, for the reason.
branchstring or nullnoThe consumer build's branch.
tagsarray of stringnoTags for the consumer version.
build_urlstring or nullnohttp(s) URL of the CI build.

PactRecordingSetting​

The policy of one mock and consumer.

PropertyTypeRequiredDescription
projectstringyesProject.
versionstringyesVersion.
consumerstringyesConsumer.
publish_whenenum "tests-pass", "always"yesPublish When.
if_looserenum "publish-notify", "hold"yesIf Looser.
savedbooleanyesFalse while the defaults apply (nobody saved a policy).
saved_atstring (date-time) or nullnoSaved At timestamp (ISO 8601).
updated_by_labelstring or nullnoUpdated By Label.
last_runPactRecordingLastRun or nullnoLast Run.
last_run_atstring (date-time) or nullnoLast Run At timestamp (ISO 8601).
can_editbooleanyesWhether the caller may change it (pacts:edit).

PactRecordingSettingSave​

The policy to save for one mock and consumer.

PropertyTypeRequiredDescription
projectstringyesSlug of the mocked project.
versionstringyesVersion label of the mocked API.
consumerstringyesThe consumer, as its pacts name it.
publish_whenenum "tests-pass", "always"yestests-pass: publish only when the tests passed; always: publish whatever they did.
if_looserenum "publish-notify", "hold"yesWhen the pact no longer expects an interaction or field the previous one did: publish-notify publishes it and tells the provider's and consumer's owners; hold keeps it for review.

PactStubDetail​

A stub and its report.

PropertyTypeRequiredDescription
idstringyesStable resource identifier.
providerstringyesThe provider's name.
provider_slugstringyesProvider Slug.
namestringyesThe last segment of the stub's URL.
sourcesarray of PactStubSourceyesSources.
source_tokensarray of stringyesThe sources as apiome pact stub --pacts writes them.
source_labelsarray of stringyesThe sources as a person reads them.
fallbackenum "spec", "not-implemented"yesFallback.
fallback_mockPactStubMock or nullnonull when not set, or when the version was deleted (the stub then answers 501).
pathstringyes/{tenant}/~pacts/{provider}/{name} on the mock host.
urlstringyesThe stub's base URL: append the API path.
created_atstring (date-time)yesCreation timestamp (ISO 8601).
updated_atstring (date-time)yesLast update timestamp (ISO 8601).
updated_by_labelstring or nullnoUpdated By Label.
reportPactStubReportyesReport.
createdboolean or nullnoOn PUT: whether the stub is new.

PactStubList​

The workspace's stubs.

PropertyTypeRequiredDescription
stubsarray of PactStubyesStubs.

PactStubSave​

PUT …/pact-stubs/{provider}/{name}.

PropertyTypeRequiredDescription
sourcesarray of PactStubSourceyesThe pacts to serve.
fallbackenum "spec", "not-implemented"noWhat answers a request no interaction matches: the spec mock (spec) or a 501 (not-implemented).
fallback_mockPactStubMock or nullnoThe spec mock to answer from; required with fallback: spec.

PactSuiteCompileRequest​

What to compile from the pact version named in the URL. An empty body compiles everything.

PropertyTypeRequiredDescription
optionsPactSuiteOptionsnoCompiler options. They are echoed on the manifest (pact.options) and hashed into its digest, so the same pact version compiled with the same options always yields the same suite.

PactSuiteResponse​

The suite compiled from one pact version.

PropertyTypeRequiredDescription
consumerstringyesThe consumer's handle.
providerstringyesThe provider's handle.
pact_version_shastringyesThe pact version compiled.
manifestContractSuiteManifestyesThe compiled suite: one pact_interaction case per HTTP interaction, with unsupported and findings naming everything that could not be replayed.

PactVerifyRequest​

Which pacts to verify, against which target, as which provider build.

PropertyTypeRequiredDescription
target_refstringyesSlug or id of the registered verification target (ECA-1.2) to replay against: an http target for HTTP interactions, a grpc or connect target for gRPC calls recorded by the Pact protobuf plugin.
provider_versionstringyesThe provider application version being verified (a commit SHA). Results are recorded against it.
provider_branchstring or nullnoThe branch of that provider version. Recorded on the version before a result is published, and used as providerVersionBranch for pending pacts and matchingBranch selectors when selection does not state one.
build_urlstring or nullnohttp(s) URL of the CI build, stored on each result.
selectionobjectnoWhich pacts to verify — the body of POST …/pact-broker/pacts/provider/{provider}/for-verification, unchanged: consumerVersionSelectors, providerVersionBranch, providerVersionTags, includePendingStatus, includeWipPactsSince. Empty selects what a Pact verifier gets by default.
verificationPactVerificationOptionsnoWhat this run may send: the mutating-method opt-in, fixtures and the provider-state choice.
publishbooleannoPublish a verification result for every pact whose run is conclusive (passed or failed). false is a dry run: everything is replayed and reported, nothing is published.
skip_already_verifiedbooleannoSkip every selected pact that already has a verification result for this exact provider_version (PFX-8.8): it is listed under skipped with pact-verify-already-verified and its newest result, and not replayed. When every pact is skipped the run's outcome is already-verified. Off by default: a Pact verifier re-verifies whatever its selectors choose.
contextobjectnoNon-secret CI context (commit, workflow URL) stored with the evidence. Never credentials.

PactVerifyResponse​

The outcome of one hosted verification.

PropertyTypeRequiredDescription
providerstringyesThe provider's handle.
provider_versionstringyesThe provider version verified.
provider_branchstring or nullnoIts branch, when stated.
targetVerifiedTargetyesThe verification target replayed against.
successbooleanyesWhat a CI job should exit on: true when at least one pact was verified and every pact that is not pending passed — or, for already-verified, when every skipped pact's newest result for this provider version passed.
outcomestringyespassed, failed (a non-pending pact failed), incomplete (none failed, but one could not be fully replayed), could-not-connect (no request reached the target — see connection_error), already-verified (with skip_already_verified, every selected pact already has a result for this provider version), no-pacts (the selectors chose nothing) or stopped (a live run was stopped before it finished; PFX-8.9).
pactsarray of PactVerificationnoOne entry per pact verified.
skippedarray of SkippedPactnoChosen but not verified, each with why.
connection_errorstring or nullnoWith outcome could-not-connect: the target never answered (Could not connect to billing.staging.example (timeout)). Not a failed verification — nothing was published.

ProviderStateInput​

The body that registers or replaces a provider state.

PropertyTypeRequiredDescription
namestringyesThe state exactly as consumers write it (an invoice 1042 exists).
descriptionstring or nullnoWhat the state means.
parametersarray of StateParameternoThe parameters the state takes.
setupStateSetupyesHow the state is set up by default.
overridesarray of StateOverrideInputnoPer-target setups, replacing the default on that target.

ProviderStateRecord​

A registered provider state, as stored.

PropertyTypeRequiredDescription
idstringyesThe state's id.
providerstringyesThe provider's handle.
namestringyesThe state, as consumers write it.
descriptionstring or nullnoWhat it means.
parametersarray of StateParameternoThe parameters it takes.
setupStateSetupyesThe default setup.
overridesarray of StateOverrideRecordnoPer-target setups.
created_atstring (date-time)yesWhen it was registered.
updated_atstring (date-time)yesWhen it last changed.

RepublishRequestPage​

One page of re-publish requests, newest first.

PropertyTypeRequiredDescription
requestsarray of RepublishRequestRecordnoRequests.
next_cursorstring or nullnoPass as cursor for the next page.

RepublishRequestRecord​

A request to a consumer to re-publish a stale pact.

PropertyTypeRequiredDescription
idstringyesThe request's id.
providerstringyesThe provider's handle.
provider_namestringyesThe provider's display name.
consumerstringyesThe consumer's handle.
consumer_namestringyesThe consumer's display name.
pact_version_shastringyesThe stale pact version.
consumer_versionstringyesThe consumer version that published it last.
statestringyesrequested, acknowledged, republished, cleared or expired.
threshold_hoursintegeryesThe stale threshold it crossed.
reference_atstring or nullnoWhen the pact was last verified (or published, when never verified).
requested_atstring or nullnoWhen the request was opened.
expires_atstring or nullnoWhen it expires and escalates, unless answered.
acknowledged_atstring or nullnoWhen the consumer acknowledged it.
acknowledged_bystring or nullnoWho acknowledged it.
notestring or nullnoThe acknowledgement's note.
resolved_atstring or nullnoWhen it was republished, cleared or expired.
resolved_consumer_versionstring or nullnoThe consumer version that re-published, for republished.
notification_statusstring or nullnoWhat notifying the consumer's owners did: routed, throttled, unowned, catch_all, unlinked (the consumer is linked to no consumer or project with owners) or failed.
escalation_statusstring or nullnoThe same, for the escalation on expiry.
webhook_deliveriesintegernoContract webhook deliveries queued for it.

RerunRequest​

Which interaction of the run to replay again.

PropertyTypeRequiredDescription
pact_version_shastringyesThe pact version, as the run listed it.
case_idstringyesThe interaction's suite case (failure.interaction.case_id).

RerunResponse​

One interaction replayed again; nothing published.

PropertyTypeRequiredDescription
run_idstringyesThe run it belongs to.
pact_version_shastringyesThe pact version.
interactionInteractionVerificationyesWhat replaying it showed this time.
publishedbooleannoAlways false: one interaction does not verify a pact.

ResultDetail​

One verification result in full.

PropertyTypeRequiredDescription
resultResultSummaryyesThe result.
providerstringyesThe provider's handle.
provider_namestringyesThe provider's display name.
test_resultsarray of anynoThe per-interaction results as stored: interactionDescription, success, and for a failure mismatches (attribute, identifier, description, and — from the hosted verifier and most Pact verifiers — expected and actual) or exceptions.
comparisonobject or nullnoA bi-directional result's comparison.
evidence_statusstringyesattached, not-recorded, not-found (pruned) or forbidden (no verification_evidence:view).
evidenceVerificationRunRecord or nullnoThe evidence run: every request with its assertions, when attached.

ResultHistoryPage​

One page of a provider's verification history.

PropertyTypeRequiredDescription
providerstringyesThe provider's handle.
provider_namestringyesThe provider's display name.
consumerstring or nullnoThe consumer the page is narrowed to.
resultsarray of ResultSummarynoNewest first.
next_cursorstring or nullnoPass as cursor for the next page; null at the end.

SecretList​

The workspace's secrets, by name.

Attributes: secrets: Every secret. limit: The most a workspace may keep.

PropertyTypeRequiredDescription
secretsarray of SecretRecordnoSecrets.
limitintegernoLimit.

SecretRecord​

A stored secret as everyone reads it: never its value.

Attributes: id: The secret's id. name: The name references use. description: What it is for. reference: How a webhook template writes it: ${user.<name>}. used_by: The webhooks and targets that refer to it. has_value: False for a secret created without one (a migrated webhook's redacted secret); nothing that refers to it can be sent until a value is set. origin: migration when apiome pact migrate created it; None for one a person created. value_updated_at: When the value was last set (created or rotated). created_at: When it was created. updated_at: When it was last changed.

PropertyTypeRequiredDescription
idstringyesStable resource identifier.
namestringyesHuman-readable name.
descriptionstring or nullnoFree-text description.
referencestringyesReference.
used_bySecretUsagenoUsed By.
has_valuebooleannofalse: created without a value; set one to use it.
originstring or nullnomigration when apiome pact migrate created it.
value_updated_atstring or nullnoValue Updated At timestamp (ISO 8601).
created_atstring or nullnoCreation timestamp (ISO 8601).
updated_atstring or nullnoLast update timestamp (ISO 8601).

StartPactMigrationRunRequest​

A run to start.

PropertyTypeRequiredDescription
tokenstring (password) or nullnoA bearer token for the source; a read-only one is enough. Never stored.
usernamestring or nullnoBasic-auth user of an open-source broker without tokens.
passwordstring (password) or nullnoBasic-auth password. Never stored.
sourcestringyesThe source's base URL, e.g. https://acme.pactflow.io (no credentials in it).
modeenum "dry-run", "copy"nodry-run reads and checks and writes nothing; copy imports.
optionsPactMigrationRunOptionsnoWhat to copy and how.

StateCheckRequest​

Which pacts to check, and on which target.

PropertyTypeRequiredDescription
selectionobjectnoWhich pacts — the selection of the verify request (the body of …/for-verification), unchanged. Empty selects what a Pact verifier gets by default.
target_refstring or nullnoSlug or id of the verification target the run would use: its overrides are chosen and its mutating-method policy checked. Omit to check the default setups.

StateCheckResponse​

Whether a provider can set up every state its pacts name.

PropertyTypeRequiredDescription
providerstringyesThe provider's handle.
targetstring or nullnoThe target checked against, when one was named.
readybooleanyesTrue when no interaction would be held back for its provider states.
pactsintegeryesHow many pacts the selection chose.
blockingintegeryesHow many blocking problems were found.
warningsintegeryesHow many warnings were found.
statesarray of StateCheckEntrynoEvery state the selected interactions name; unregistered ones first.
unusedarray of stringnoRegistered states no selected interaction names.

UpdatePactMigrationSyncRequest​

Switch keep-in-sync on (with the source's credentials) or off.

PropertyTypeRequiredDescription
tokenstring (password) or nullnoA bearer token for the source; a read-only one is enough. Never stored.
usernamestring or nullnoBasic-auth user of an open-source broker without tokens.
passwordstring (password) or nullnoBasic-auth password. Never stored.
enabledbooleanyesOn: copy what is new on a schedule. Off: stop, and let go of the credentials.
interval_minutesintegernoHow often to copy again (5 minutes to a day).

VerificationSettings​

The workspace's verification settings, as read.

PropertyTypeRequiredDescription
cadencestringyeson-publish, hourly, nightly or manual-only: when the hosted verifier runs a pair.
stale_threshold_hoursintegeryesA pact not verified for longer than this is stale (1 … 2160).
max_concurrent_runsintegeryesHow many scheduled verifications may run at once in the workspace (1 … 10).
request_window_hoursintegeryesHow long a re-publish request stays open before it expires and escalates (1 … 720).
republish_requests_enabledbooleanyesWhether a stale pact opens a re-publish request.
customisedbooleanyesFalse while the workspace uses the defaults (never saved).
updated_atstring or nullnoWhen they were last saved.

VerificationSettingsInput​

The workspace's verification settings, as PUT replaces them.

PropertyTypeRequiredDescription
cadencestringyeson-publish, hourly, nightly or manual-only: when the hosted verifier runs a pair.
stale_threshold_hoursintegeryesA pact not verified for longer than this is stale (1 … 2160).
max_concurrent_runsintegeryesHow many scheduled verifications may run at once in the workspace (1 … 10).
request_window_hoursintegeryesHow long a re-publish request stays open before it expires and escalates (1 … 720).
republish_requests_enabledbooleanyesWhether a stale pact opens a re-publish request.

VerificationStatus​

Where a provider's verification stands.

PropertyTypeRequiredDescription
providerstringyesThe provider's handle.
provider_namestringyesThe provider's display name.
countsStatusCountsyesThe KPI strip.
pactsarray of VerificationStatusEntrynoOne per consumer, by handle.
truncatedbooleannoTrue when the provider has more than 500 consumers (the rest are left out).
settingsEffectiveSettings or nullnoThe cadence, stale threshold and target that apply to the provider (PFX-6.2).

VerifyPreviewRequest​

The body of …/verify, with the target and the provider version optional.

PropertyTypeRequiredDescription
target_refstring or nullnoSlug or id of the verification target the run would use. Omit for a self-run.
provider_versionstring or nullnoThe provider version the run would verify; needed to say which pacts it already verified.
provider_branchstring or nullnoIts branch — the providerVersionBranch of pending pacts and matchingBranch selectors.
selectionobjectnoThe run's selection (the body of …/for-verification), unchanged.
verificationPactVerificationOptionsnoThe run's options: the mutating opt-in and the provider-state choice.
skip_already_verifiedbooleannoWhether the run would skip pacts already verified for provider_version.

VerifyPreviewResponse​

What the run would verify.

PropertyTypeRequiredDescription
providerstringyesThe provider's handle.
provider_namestringyesIts display name.
provider_versionstring or nullnoThe provider version, as checked.
targetPreviewTarget or nullnoThe target, when one was named and found.
rulesarray of PreviewRulenoOne entry per consumer-version selector.
selectedintegeryesHow many pacts the whole selection chooses.
will_runintegeryesHow many of them the run would verify.
skippedintegeryesHow many it would skip as already verified for this provider version.
interactionsintegeryesHow many interactions the pacts it would verify hold.
pactsarray of PreviewPactnoThe chosen pacts, the first 100, in the run's order.
truncatedbooleannoWhether more pacts were chosen than pacts lists.
statesPreviewStatesyesProvider-state coverage.
max_pacts_per_runintegernoThe most pacts one run verifies.
refusalsarray of PreviewRefusalnoWhy the run would not start; empty when it would.