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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for pact broker index. | application/hal+json any |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
pacticipant | query | string | yes | The pacticipant being deployed: its name or handle. |
version | query | string | yes | The version being deployed. |
toEnvironment | query | string | no | The environment being deployed to. environment is accepted too. |
to | query | string | no | A tag instead of an environment: check against the latest version of each other pacticipant with it. |
ignore | query | array of string | no | A pacticipant whose rows do not count towards the verdict. Repeat for several; ignore[][pacticipant] with ignore[][version] ignores one version. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | The 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 |
| 400 | pact-matrix-invalid: the query is malformed, or names a pacticipant or an environment that does not exist. detail.pointer names the parameter. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
provider_version | path | string | yes | Path parameter identifying the provider version segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read a provider contract. | application/hal+json any |
| 404 | pacticipant-not-found or provider-contract-not-found. | — |
| 422 | Validation Error | application/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 are422 provider-contract-invalid, withdetail.pointerlocating the problem. - The provider is registered on first use, and the version is recorded with its
branch,tagsandbuildUrl, asPUT …/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.
201for a new contract,200when the same contract and self-verification results are published again (nothing changes),409for 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
provider_version | path | string | yes | Path parameter identifying the provider version segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for publish a provider contract.
application/json— object
| Property | Type | Required | Description |
|---|---|---|---|
content | string | no | The OpenAPI 3.x or AsyncAPI 2.x / 3.x document (JSON or YAML), base64-encoded. Send this or apiomeVersion. |
contractType | enum "oas", "asyncapi" | no | oas 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. |
contentType | string | no | How content is encoded: application/json or application/yaml. Sniffed when omitted. |
apiomeVersion | string | no | <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. |
branch | string | no | The repository branch the version was built from. |
tags | array of string | no | Tags for the provider version (at most 50). |
buildUrl | string | no | http(s) URL of the CI build. |
verificationResults | object | no | The 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
| Status | Description | Body |
|---|---|---|
| 200 | The same contract was published again: nothing changed. comparisons reports the pacts compared with it, as for 201. | application/hal+json any |
| 201 | The 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. | — |
| 409 | provider-contract-conflict: this provider version already published a different contract (or the same one with different self-verification results). Nothing was stored. | — |
| 413 | provider-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. | — |
| 422 | provider-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. | — |
| 429 | pact-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, soresults[].verdictandsuccessare what the publish would store (unverifiedwhen the evidence does not pass). Each result names the consumer version'senvironmentsand its first failures. coverage: the contract's operations, and inunusedthe ones no compared pact touches (OpenAPI only;coverageReasonsays why it isnull).existing: the contract this version already published —sameContent: falsemeans the publish would be refused with409;summary.publishablesays 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
provider_version | path | string | yes | Path parameter identifying the provider version segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-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
| Property | Type | Required | Description |
|---|---|---|---|
content | string | no | The document, base64-encoded. |
contentUrl | string (uri) | no | Read the document from this http(s) URL, once, instead of content. The bytes come back in fetched.content to publish inline. |
contractType | enum "oas", "asyncapi" | no | Contract Type. |
contentType | string | no | Content Type. |
apiomeVersion | string | no | <project>@<version>. |
branch | string | no | Selects the branch's pacts, as a publish does. |
verificationResults | object | no | As for the publish: read into selfVerification, never stored. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for check a provider contract before publishing it. | application/json object |
| 413 | provider-contract-too-large: the document or the request is over the size limit. | — |
| 422 | As 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. | — |
| 429 | pact-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
consumerContractsand 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 incomparisonsand 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-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
| Property | Type | Required | Description |
|---|---|---|---|
pacticipantName | string | yes | The consumer publishing. |
pacticipantVersionNumber | string | yes | Its application version, as the build reports it (a commit SHA). |
branch | string | no | The repository branch the version was built from. |
tags | array of string | no | Tags for the version (at most 50). |
buildUrl | string | no | http(s) URL of the CI build. |
contracts | array of object | yes | Contracts. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for publish the pacts of a consumer version. | application/hal+json any |
| 409 | pact-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. | — |
| 413 | pact-too-large: the document or the request is over the size limit. | — |
| 422 | pact-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. | — |
| 429 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
uuid | path | string | yes | The deployment's uuid. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read a deployment. | application/hal+json any |
| 404 | pact-deployed-version-not-found: no such deployment in this workspace. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
uuid | path | string | yes | The deployment's uuid. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for record an undeployment.
application/merge-patch+json— objectapplication/json— object
| Property | Type | Required | Description |
|---|---|---|---|
currentlyDeployed | enum false | no | Currently Deployed. |
| Property | Type | Required | Description |
|---|---|---|---|
currentlyDeployed | enum false | no | Currently Deployed. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for record an undeployment. | application/hal+json any |
| 404 | pact-deployed-version-not-found: no such deployment in this workspace. | — |
| 422 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
name | query | string or null | no | Only the environment with exactly this name. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list environments. | application/hal+json any |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for create an environment.
application/json— object
| Property | Type | Required | Description |
|---|---|---|---|
name | string | yes | The name tooling uses: one word, no spaces. |
displayName | string | no | The name people read; the name when omitted. |
production | boolean | no | Production. |
contractRequired | boolean | no | Apiome only: can-i-deploy to this environment refuses a pacticipant that has no contract. |
contacts | array of object | no | Contacts. |
Responses
| Status | Description | Body |
|---|---|---|
| 201 | Successful response for create an environment. | application/hal+json any |
| 409 | pact-environment-name-taken: another environment has this name. | — |
| 422 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
uuid | path | string | yes | The environment's uuid, as GET …/environments lists it. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read an environment. | application/hal+json any |
| 404 | pact-environment-not-found: no such environment in this workspace. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
uuid | path | string | yes | The environment's uuid, as GET …/environments lists it. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for replace an environment.
application/json— object
| Property | Type | Required | Description |
|---|---|---|---|
name | string | yes | The name tooling uses: one word, no spaces. |
displayName | string | no | The name people read; the name when omitted. |
production | boolean | no | Production. |
contractRequired | boolean | no | Apiome only: can-i-deploy to this environment refuses a pacticipant that has no contract. |
contacts | array of object | no | Contacts. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for replace an environment. | application/hal+json any |
| 404 | pact-environment-not-found: no such environment in this workspace. | — |
| 409 | pact-environment-name-taken: another environment has this name. | — |
| 422 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
uuid | path | string | yes | The environment's uuid, as GET …/environments lists it. |
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 204 | Successful response for delete an environment. | — |
| 404 | pact-environment-not-found: no such environment in this workspace. | — |
| 422 | Validation Error | application/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.
pacticipantnarrows to one pacticipant (handle or name; an unknown one lists nothing).applicationInstancenarrows to one instance; sent empty, to the unnamed instance.targetis 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
uuid | path | string | yes | The environment's uuid, as GET …/environments lists it. |
pacticipant | query | string or null | no | Only this pacticipant (handle or name). |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list the versions currently deployed to an environment. | application/hal+json any |
| 404 | pact-environment-not-found: no such environment in this workspace. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
uuid | path | string | yes | The environment's uuid, as GET …/environments lists it. |
pacticipant | query | string or null | no | Only this pacticipant (handle or name). |
version | query | string or null | no | Only this version number. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list the versions released and supported in an environment. | application/hal+json any |
| 404 | pact-environment-not-found: no such environment in this workspace. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list every label (pact broker shape). | application/hal+json any |
| 422 | Validation Error | application/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:
environmentchecks against every version currently deployed to or released in that environment;tagwithlatest=trueagainst the latest version with that tag;latest=truealone against the latest version of each other pacticipant;mainBranch=true(withlatest=true) against main branches. The other pacticipants are worked out from the pacts. - Verdict (
summary.deployable):truewhen every row that counts succeeded (or nothing depends on the version);falsewhen a verification failed or a named version does not exist;nullwhen a result is missing. A consumer needs its providers to be there; a provider does not need its consumers. - Reasons:
summary.reasonandnoticesuse the Pact Broker's wording. Each notice has acodeand each row areason(verified,verification-failed,pact-pending,no-verification-result);no-pactis the notice when the environment requires a contract and the version has none. - Ignore: rows of an
ignore[][pacticipant]are returned withignored: trueand do not count. - Retry while unknown: a
nullverdict comes withRetry-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
q[][pacticipant] | query | array of string | no | A 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] | query | array of string | no | Exactly this version of the pacticipant. |
q[][latest] | query | array of string | no | true: only the latest of the versions described. |
q[][tag] | query | array of string | no | Versions with this tag. |
q[][branch] | query | array of string | no | Versions recorded on this branch. |
q[][environment] | query | array of string | no | Versions currently deployed to, or released and supported in, this environment. |
q[][mainBranch] | query | array of string | no | true: versions on the pacticipant's main branch. |
latestby | query | enum "cvp", "cvpv", "cp" | no | Collapse 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. |
limit | query | integer | no | The most rows to return. |
environment | query | string | no | The destination: check against every version currently in this environment (can-i-deploy --to-environment). |
tag | query | string | no | The destination: check against versions with this tag (can-i-deploy --to, with latest=true). |
latest | query | boolean | no | true: check against the latest version of each other pacticipant. |
mainBranch | query | boolean | no | true: check against each other pacticipant's main branch. |
ignore[][pacticipant] | query | array of string | no | A pacticipant whose rows do not count towards the verdict; ignore[][version] narrows it to one version. |
success[] | query | array of string | no | Keep only rows with this result: true, false, or empty for rows without a result. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | The 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 |
| 400 | pact-matrix-invalid: the query is malformed, or names a pacticipant or an environment that does not exist. detail.pointer names the parameter. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
label | path | string | yes | Path parameter identifying the label segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list the pacticipants with a label (pact broker shape). | application/hal+json any |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
pacticipant | path | string | yes | Path parameter identifying the pacticipant segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read a pacticipant (pact broker shape). | application/hal+json any |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
pacticipant | path | string | yes | Path parameter identifying the pacticipant segment. |
reason | query | string or null | no | Why; stored with the delete and audited. |
force | query | boolean | no | Delete even when a version is currently deployed or released. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 204 | Successful response for delete a pacticipant (pact broker shape). | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
pacticipant | path | string | yes | Path parameter identifying the pacticipant segment. |
branch | path | string | yes | Git branch name. |
version | path | string | yes | Endpoint or API version metadata. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for record a version on a branch (pact broker shape). | application/hal+json any |
| 201 | The version was created and recorded on the branch. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
pacticipant | path | string | yes | Path parameter identifying the pacticipant segment. |
label | path | string | yes | Path parameter identifying the label segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read a label (pact broker shape). | application/hal+json any |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
pacticipant | path | string | yes | Path parameter identifying the pacticipant segment. |
label | path | string | yes | Path parameter identifying the label segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for label a pacticipant (pact broker shape). | application/hal+json any |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
pacticipant | path | string | yes | Path parameter identifying the pacticipant segment. |
label | path | string | yes | Path parameter identifying the label segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 204 | Successful response for remove a label (pact broker shape). | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
pacticipant | path | string | yes | Path parameter identifying the pacticipant segment. |
number | path | string | yes | Path parameter identifying the number segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read a pacticipant version (pact broker shape). | application/hal+json any |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
pacticipant | path | string | yes | Path parameter identifying the pacticipant segment. |
number | path | string | yes | Path parameter identifying the number segment. |
reason | query | string or null | no | Why; stored with the delete and audited. |
force | query | boolean | no | Delete even when a version is currently deployed or released. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 204 | Successful response for delete a pacticipant version (pact broker shape). | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
pacticipant | path | string | yes | The pacticipant's handle, id or name. |
version | path | string | yes | The version number, exactly as recorded. |
uuid | path | string | yes | The environment's uuid, as GET …/environments lists it. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list the deployments of a version to an environment. | application/hal+json any |
| 404 | pacticipant-not-found, pacticipant-version-not-found or pact-environment-not-found: the version must have been recorded (published a pact, or verified one) first. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
pacticipant | path | string | yes | The pacticipant's handle, id or name. |
version | path | string | yes | The version number, exactly as recorded. |
uuid | path | string | yes | The environment's uuid, as GET …/environments lists it. |
overrideCanIDeploy | query | boolean | no | The deployment is recorded although can-i-deploy answered no. Audited; changes nothing else. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (optional)
Request body for record a deployment.
application/json— object
| Property | Type | Required | Description |
|---|---|---|---|
applicationInstance | string | no | The instance of the environment deployed to (a region, a customer). Omit it when the environment has one instance. |
target | string | no | Deprecated name of applicationInstance. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | This version was already the current deployment; it is returned. | — |
| 201 | Successful response for record a deployment. | application/hal+json any |
| 404 | pacticipant-not-found, pacticipant-version-not-found or pact-environment-not-found: the version must have been recorded (published a pact, or verified one) first. | — |
| 422 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
pacticipant | path | string | yes | The pacticipant's handle, id or name. |
version | path | string | yes | The version number, exactly as recorded. |
uuid | path | string | yes | The environment's uuid, as GET …/environments lists it. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read the release of a version to an environment. | application/hal+json any |
| 404 | pacticipant-not-found, pacticipant-version-not-found or pact-environment-not-found: the version must have been recorded (published a pact, or verified one) first. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
pacticipant | path | string | yes | The pacticipant's handle, id or name. |
version | path | string | yes | The version number, exactly as recorded. |
uuid | path | string | yes | The environment's uuid, as GET …/environments lists it. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | The version was already released there; it is supported again. | — |
| 201 | Successful response for record a release. | application/hal+json any |
| 404 | pacticipant-not-found, pacticipant-version-not-found or pact-environment-not-found: the version must have been recorded (published a pact, or verified one) first. | — |
| 422 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
pacticipant | path | string | yes | Path parameter identifying the pacticipant segment. |
version | path | string | yes | Endpoint or API version metadata. |
tag | path | string | yes | Path parameter identifying the tag segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for tag a version (pact broker shape). | application/hal+json any |
| 201 | The version was created with the tag. | — |
| 422 | Validation Error | application/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
verdictandsuccessare what publishing this pact would store as its bi-directional verification result, evidence policy included (unverifiedwhen the contract has no passing self-verification). - Per interaction,
outcomeismatch,differsornot-in-spec, with the failures; a row that does not match carriesexpected(what the pact needs) anddeclared(what the contract declares), each at most 8 KB. - Nothing dropped. A selector that names nothing is listed in
unresolvedwith the reason; versions over the limit of 20 inskipped.summary.successis 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-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
| Property | Type | Required | Description |
|---|---|---|---|
pact | object | yes | The Pact document (v1 to v4), as a JSON object. |
against | array of string | yes | Provider-version selectors: main, deployed:<environment>, version:<number>, draft:<revision> (a label, revision id or latest). |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for check a pact against provider versions before publishing. | application/json object |
| 413 | pact-too-large: the request is over the size limit. | — |
| 422 | pact-check-invalid or pact-invalid, with pointer: a malformed request, an unknown field or selector, or a document that is not a pact. | — |
| 429 | pact-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 bysince,untilandcaller(an API key id, ornone), newest 5,000 calls at most (report.source.truncatedsays when the range holds more); orscenarios— 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 inreport.excludedwith the reason.report.source.kindsays 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.excludedwith its reason. - Provider states come from the
X-Mock-Scenariobehind a scenario answer (named after the scenario) or the statefulX-Mock-Sessionbehind a session answer; path parameter values are itsparams. - Matching.
exact,type(default) orspec(type plus the spec'suuid,date-time,dateformats,patterns and integers). A field is expected when every response of the group has it; anything left out is in the interaction'sleft_outwith 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: readkeeps only the response fields the consumer reported reading (the SDK'sfieldUsagehook or the mock's browser recorder post them to the mock); each removed field is inleft_outwith the reason, and an interaction no report covers says so and keeps every field (fields: allon its row).report.field_usagesays what reports the source has. - Protocols. GraphQL operations become GraphQL-over-HTTP interactions, gRPC calls protobuf-plugin
Synchronous/Messagesinteractions (the version's descriptors inmetadata.plugins), and event messagesAsynchronous/Messagesinteractions;interactions[].protocolsays which. A call that cannot be expressed (a streaming gRPC method) is inreport.excludedwith the reason. - Overrides set one field's matcher or leave it out; each says what it
applied_toand, where it did not apply, why (not_applied). - Leaving interactions out.
leave_outnames interactions that stay out of the pact; each is listed inreport.left_out_interactionswith its calls. - Checked and compared.
report.spec_usagesays how many of the spec's operations, and of the response fields those operations declare, the pact uses.report.spec_checkcompares the pact with the mocked spec revision (AsyncAPI for message pacts; GraphQL and gRPC pacts are checked by replay instead, andreasonsays so);report.previouslists what changed since the consumer's previous pact, andlooseris 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-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.
application/json—PactGenerateBody
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for generate a pact from a mock capture session. | application/json object |
| 404 | capture-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. | — |
| 422 | pact-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). | — |
| 429 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
project | query | string | yes | The mocked project's slug. |
version | query | string | yes | The mocked version's label. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list the operation × scenario pairs a pact can be built from. | application/json object |
| 404 | capture-version-not-found: the mock version is not the workspace's. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
project | query | string | yes | The mocked project's slug. |
version | query | string | yes | The mocked version's label. |
consumer | query | string | yes | The consumer the calls were tagged for. |
since | query | string (date-time) or null | no | Only calls captured at or after this instant. |
until | query | string (date-time) or null | no | Only calls captured before this instant. |
caller | query | string or null | no | An API key id, or none for calls made without one. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for count the past traffic a pact can be generated from. | application/json object |
| 404 | capture-version-not-found: the mock version is not the workspace's. | — |
| 422 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
consumer | path | string | yes | Path parameter identifying the consumer segment. |
branch | path | string | yes | Git branch name. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read the latest pact for a consumer branch. | application/hal+json any |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
consumer | path | string | yes | Path parameter identifying the consumer segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read the latest pact. | application/hal+json any |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
consumer | path | string | yes | Path parameter identifying the consumer segment. |
tag | path | string | yes | Path parameter identifying the tag segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read the latest pact for a consumer tag. | application/hal+json any |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
consumer | path | string | yes | Path parameter identifying the consumer segment. |
sha | path | string | yes | Path parameter identifying the sha segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read a pact by its content version. | application/hal+json any |
| 422 | Validation Error | application/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 --jsonoutput (Content-Type: application/json): the verifier'sresult/errors/pendingErrors, or apacts[].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 withoutEngineFinishedrecorded 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
consumer | path | string | yes | Path parameter identifying the consumer segment. |
sha | path | string | yes | Path parameter identifying the sha segment. |
providerApplicationVersion | query | string | yes | The provider version the report verified (a commit SHA). |
buildUrl | query | string or null | no | http(s) URL of the CI build. |
branch | query | string or null | no | Record the provider version on this branch first. |
tag | query | array of string or null | no | Tag the provider version first (repeatable). |
format | query | string | no | One of auto, pact-verifier-json, junit, schemathesis, newman, dredd; auto reads the content type, then the body. |
verifier | query | string or null | no | The verifier's name, recorded in verifiedBy. |
verifierVersion | query | string or null | no | The verifier's version, recorded in verifiedBy. |
providerVerificationReportId | query | string or null | no | Link a CTG-4.3 provider verification report (a UUID). |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-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— objectapplication/xml— string
Responses
| Status | Description | Body |
|---|---|---|
| 201 | The stored result, with an ingestion object (format, syntax, interactions, notices). | application/hal+json any |
| 404 | pacticipant-not-found or pact-not-found: no such pair or pact version. | — |
| 422 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
consumer | path | string | yes | Path parameter identifying the consumer segment. |
sha | path | string | yes | Path parameter identifying the sha segment. |
metadata | path | string | yes | The selection metadata of a for-verification link (URL-safe base64); kept for the result. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read a pact by its content version (for-verification link). | application/hal+json any |
| 422 | Validation Error | application/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.
successandproviderApplicationVersionare required. The provider version is recorded if the workspace does not have it yet.testResultsis 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
201with its URL inLocation. - The provider branch recorded with it is the branch the provider version was recorded on last (verifiers record it with
pb:branch-versionjust 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
consumer | path | string | yes | Path parameter identifying the consumer segment. |
sha | path | string | yes | Path parameter identifying the sha segment. |
metadata | path | string | yes | The selection metadata of the for-verification link (URL-safe base64). |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-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
| Property | Type | Required | Description |
|---|---|---|---|
success | boolean | yes | Whether every interaction passed. |
providerApplicationVersion | string | yes | The provider version that verified (a commit SHA). |
buildUrl | string | no | http(s) URL of the CI build. |
testResults | array of object | no | Per-interaction results, stored as sent (at most 10,000). |
verifiedBy | object | no | Verified By. |
providerVerificationReportId | string (uuid) | no | Apiome only: the CTG-4.3 provider verification report this result was produced with. Linked, not copied. |
Responses
| Status | Description | Body |
|---|---|---|
| 201 | Successful response for publish a verification result (for-verification link). | application/hal+json any |
| 404 | pacticipant-not-found or pact-not-found: no such pair or pact version. | — |
| 422 | pact-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.
successandproviderApplicationVersionare required. The provider version is recorded if the workspace does not have it yet.testResultsis 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
201with its URL inLocation. - The provider branch recorded with it is the branch the provider version was recorded on last (verifiers record it with
pb:branch-versionjust 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
consumer | path | string | yes | Path parameter identifying the consumer segment. |
sha | path | string | yes | Path parameter identifying the sha segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for publish a verification result.
application/json— object
| Property | Type | Required | Description |
|---|---|---|---|
success | boolean | yes | Whether every interaction passed. |
providerApplicationVersion | string | yes | The provider version that verified (a commit SHA). |
buildUrl | string | no | http(s) URL of the CI build. |
testResults | array of object | no | Per-interaction results, stored as sent (at most 10,000). |
verifiedBy | object | no | Verified By. |
providerVerificationReportId | string (uuid) | no | Apiome only: the CTG-4.3 provider verification report this result was produced with. Linked, not copied. |
Responses
| Status | Description | Body |
|---|---|---|
| 201 | Successful response for publish a verification result. | application/hal+json any |
| 404 | pacticipant-not-found or pact-not-found: no such pair or pact version. | — |
| 422 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
consumer | path | string | yes | Path parameter identifying the consumer segment. |
sha | path | string | yes | Path parameter identifying the sha segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read the latest verification result of a pact version. | application/hal+json any |
| 404 | pact-verification-not-found: the pact version has no results. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
consumer | path | string | yes | Path parameter identifying the consumer segment. |
sha | path | string | yes | Path parameter identifying the sha segment. |
number | path | integer | yes | The result's number among the results of this pact version. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read a verification result. | application/hal+json any |
| 404 | pact-verification-not-found: no result with that number. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
consumer | path | string | yes | Path parameter identifying the consumer segment. |
sha | path | string | yes | Path parameter identifying the sha segment. |
number | path | integer | yes | Path parameter identifying the number segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for webhooks a verification result triggered. | application/hal+json any |
| 404 | pacticipant-not-found: no such consumer or provider. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
consumer | path | string | yes | Path parameter identifying the consumer segment. |
consumer_version | path | string | yes | Path parameter identifying the consumer version segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read the pact of a consumer version. | application/hal+json any |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
consumer | path | string | yes | Path parameter identifying the consumer segment. |
consumer_version | path | string | yes | Path parameter identifying the consumer version segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-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
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for publish one pact. | application/hal+json any |
| 201 | The pact was published for this consumer version. | — |
| 409 | pact-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. | — |
| 413 | pact-too-large: the document or the request is over the size limit. | — |
| 422 | pact-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. | — |
| 429 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
consumer | path | string | yes | Path parameter identifying the consumer segment. |
consumer_version | path | string | yes | Path parameter identifying the consumer version segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for webhooks a publication triggered. | application/hal+json any |
| 404 | pacticipant-not-found: no such consumer or provider. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
provider | path | string | yes | The provider. |
consumer | path | string | yes | The consumer. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list the webhooks of a pact. | application/hal+json any |
| 404 | pacticipant-not-found: no such consumer or provider. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
provider | path | string | yes | The provider. |
consumer | path | string | yes | The consumer. |
Request body (required)
Request body for create a webhook for a pact.
application/json— object
| Property | Type | Required | Description |
|---|---|---|---|
description | string | no | Free-text description. |
consumer | object | no | Only pacts of this consumer. Omit for any. |
provider | object | no | Only pacts of this provider. Omit for any. |
enabled | boolean | no | Whether the resource is active. |
events | array of object | no | Default: contract_content_changed. |
request | object | no | The HTTP request to send. Send this or target. |
target | object | no | Apiome: a GitHub Actions repository_dispatch, in place of request. |
signingSecret | string | no | Apiome: 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
| Status | Description | Body |
|---|---|---|
| 201 | Successful response for create a webhook for a pact. | application/hal+json any |
| 404 | pacticipant-not-found: no such consumer or provider. | — |
| 409 | pact-webhook-limit-reached: the workspace already has 200 webhooks. | — |
| 422 | pact-webhook-invalid: the body is malformed; detail.pointer names the field. | — |
| 503 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
consumer | path | string | yes | Path parameter identifying the consumer segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for webhook status of a pact. | application/hal+json any |
| 404 | pacticipant-not-found: no such consumer or provider. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for the pacts a provider must verify (query-string form). | application/hal+json any |
| 400 | pact-selector-invalid: a selector is ambiguous or malformed; see detail.pointer. | — |
| 404 | pacticipant-not-found: the workspace has no such provider. | — |
| 422 | Validation Error | application/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 branchx, withfallbackBranchorfallbackToMainBranchfor a consumer that has none there;{"matchingBranch": true}—branchset to the request'sproviderVersionBranch;{"tag": "x"}— every version taggedx; with"latest": truethe latest one, andfallbackTagfor 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-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
| Property | Type | Required | Description |
|---|---|---|---|
consumerVersionSelectors | array of object | no | Consumer Version Selectors. |
providerVersionBranch | string | no | Provider Version Branch. |
providerVersionTags | array of string | no | Provider Version Tags. |
includePendingStatus | boolean | no | Include Pending Status. |
includeWipPactsSince | string (date) | no | Include Wip Pacts Since. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for the pacts a provider must verify. | application/hal+json any |
| 400 | pact-selector-invalid: a selector is ambiguous or malformed; see detail.pointer. | — |
| 404 | pacticipant-not-found: the workspace has no such provider. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for the latest pact of every consumer of a provider. | application/hal+json any |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
tag | path | string | yes | Path parameter identifying the tag segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for the latest pact of every consumer of a provider, for a tag. | application/hal+json any |
| 422 | Validation Error | application/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:
- Publish when. Under
tests-pass(the default) a run whose tests failed publishes nothing (outcome: skipped); underalwaysit publishes anyway. - 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);holdstores the document for review instead (outcome: held,held), where approving publishes exactly that document. - Anything else is published through the same path as
POST …/contracts/publish(webhooks, commit statuses, comparisons), andpublishis 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-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.
application/json—PactRecordBody
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for publish, hold or skip a pact recorded in ci. | application/json object |
| 404 | capture-session-not-found: unknown, expired or another workspace's session. | — |
| 409 | The consumer version already has a different pact for the provider. | — |
| 422 | pact-invalid (with a pointer), pact-record-provider-missing, or an invalid body (an unknown field). | — |
| 429 | Over 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
uuid | path | string | yes | The release's uuid. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read a release. | application/hal+json any |
| 404 | pact-released-version-not-found: no such release in this workspace. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
uuid | path | string | yes | The release's uuid. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-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— objectapplication/json— object
| Property | Type | Required | Description |
|---|---|---|---|
currentlySupported | enum false | no | Currently Supported. |
| Property | Type | Required | Description |
|---|---|---|---|
currentlySupported | enum false | no | Currently Supported. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for record the end of support for a release. | application/hal+json any |
| 404 | pact-released-version-not-found: no such release in this workspace. | — |
| 422 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
uuid | path | string | yes | Path parameter identifying the uuid segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for execution log of a triggered webhook. | application/json any; text/plain any; application/hal+json any |
| 404 | pact-triggered-webhook-not-found: no such triggered webhook. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list webhooks. | application/hal+json any |
| 422 | Validation Error | application/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'sconsumer_version_branch_createdand 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
requestfor any HTTP endpoint (POST, PUT or PATCH), or Apiome'stargetof typegithub_repository_dispatchto 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, thetargettoken, secret headers (Authorization, anything naming a token, secret, API key or cookie) andsigningSecretare 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, thetargettoken orsigningSecretrefers to a secret kept under/v1/tenants/{tenant}/pact-secrets; it must exist when the webhook is saved (422pact-webhook-invalidnaming the field otherwise), is resolved only when the webhook is sent, and is scrubbed from every log. The webhook lists the names assecretReferences. - Signing: with
signingSecret, each delivery carriesX-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-Afteris 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for create a webhook.
application/json— object
| Property | Type | Required | Description |
|---|---|---|---|
description | string | no | Free-text description. |
consumer | object | no | Only pacts of this consumer. Omit for any. |
provider | object | no | Only pacts of this provider. Omit for any. |
enabled | boolean | no | Whether the resource is active. |
events | array of object | no | Default: contract_content_changed. |
request | object | no | The HTTP request to send. Send this or target. |
target | object | no | Apiome: a GitHub Actions repository_dispatch, in place of request. |
signingSecret | string | no | Apiome: 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
| Status | Description | Body |
|---|---|---|
| 201 | Successful response for create a webhook. | application/hal+json any |
| 409 | pact-webhook-limit-reached: the workspace already has 200 webhooks. | — |
| 422 | pact-webhook-invalid: the body is malformed; detail.pointer names the field. | — |
| 503 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
consumer | path | string | yes | The consumer. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list the webhooks of a consumer. | application/hal+json any |
| 404 | pacticipant-not-found: no such consumer or provider. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
consumer | path | string | yes | The consumer. |
Request body (required)
Request body for create a webhook for a consumer.
application/json— object
| Property | Type | Required | Description |
|---|---|---|---|
description | string | no | Free-text description. |
consumer | object | no | Only pacts of this consumer. Omit for any. |
provider | object | no | Only pacts of this provider. Omit for any. |
enabled | boolean | no | Whether the resource is active. |
events | array of object | no | Default: contract_content_changed. |
request | object | no | The HTTP request to send. Send this or target. |
target | object | no | Apiome: a GitHub Actions repository_dispatch, in place of request. |
signingSecret | string | no | Apiome: 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
| Status | Description | Body |
|---|---|---|
| 201 | Successful response for create a webhook for a consumer. | application/hal+json any |
| 404 | pacticipant-not-found: no such consumer or provider. | — |
| 409 | pact-webhook-limit-reached: the workspace already has 200 webhooks. | — |
| 422 | pact-webhook-invalid: the body is malformed; detail.pointer names the field. | — |
| 503 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for run an unsaved webhook.
application/json— object
| Property | Type | Required | Description |
|---|---|---|---|
description | string | no | Free-text description. |
consumer | object | no | Only pacts of this consumer. Omit for any. |
provider | object | no | Only pacts of this provider. Omit for any. |
enabled | boolean | no | Whether the resource is active. |
events | array of object | no | Default: contract_content_changed. |
request | object | no | The HTTP request to send. Send this or target. |
target | object | no | Apiome: a GitHub Actions repository_dispatch, in place of request. |
signingSecret | string | no | Apiome: 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
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for run an unsaved webhook. | application/hal+json any |
| 409 | pact-webhook-limit-reached: the workspace already has 200 webhooks. | — |
| 422 | pact-webhook-invalid: the body is malformed; detail.pointer names the field. | — |
| 429 | pact-webhook-test-rate-limited: too many test runs; Retry-After says when to retry. | — |
| 503 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
provider | path | string | yes | The provider. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list the webhooks of a provider. | application/hal+json any |
| 404 | pacticipant-not-found: no such consumer or provider. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
provider | path | string | yes | The provider. |
Request body (required)
Request body for create a webhook for a provider.
application/json— object
| Property | Type | Required | Description |
|---|---|---|---|
description | string | no | Free-text description. |
consumer | object | no | Only pacts of this consumer. Omit for any. |
provider | object | no | Only pacts of this provider. Omit for any. |
enabled | boolean | no | Whether the resource is active. |
events | array of object | no | Default: contract_content_changed. |
request | object | no | The HTTP request to send. Send this or target. |
target | object | no | Apiome: a GitHub Actions repository_dispatch, in place of request. |
signingSecret | string | no | Apiome: 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
| Status | Description | Body |
|---|---|---|
| 201 | Successful response for create a webhook for a provider. | application/hal+json any |
| 404 | pacticipant-not-found: no such consumer or provider. | — |
| 409 | pact-webhook-limit-reached: the workspace already has 200 webhooks. | — |
| 422 | pact-webhook-invalid: the body is malformed; detail.pointer names the field. | — |
| 503 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
provider | path | string | yes | The provider. |
consumer | path | string | yes | The consumer. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list the webhooks of an integration. | application/hal+json any |
| 404 | pacticipant-not-found: no such consumer or provider. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
provider | path | string | yes | The provider. |
consumer | path | string | yes | The consumer. |
Request body (required)
Request body for create a webhook for an integration.
application/json— object
| Property | Type | Required | Description |
|---|---|---|---|
description | string | no | Free-text description. |
consumer | object | no | Only pacts of this consumer. Omit for any. |
provider | object | no | Only pacts of this provider. Omit for any. |
enabled | boolean | no | Whether the resource is active. |
events | array of object | no | Default: contract_content_changed. |
request | object | no | The HTTP request to send. Send this or target. |
target | object | no | Apiome: a GitHub Actions repository_dispatch, in place of request. |
signingSecret | string | no | Apiome: 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
| Status | Description | Body |
|---|---|---|
| 201 | Successful response for create a webhook for an integration. | application/hal+json any |
| 404 | pacticipant-not-found: no such consumer or provider. | — |
| 409 | pact-webhook-limit-reached: the workspace already has 200 webhooks. | — |
| 422 | pact-webhook-invalid: the body is malformed; detail.pointer names the field. | — |
| 503 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
uuid | path | string | yes | Path parameter identifying the uuid segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read a webhook. | application/hal+json any |
| 404 | pact-webhook-not-found: no such webhook in this workspace. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
uuid | path | string | yes | Path parameter identifying the uuid segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-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
| Property | Type | Required | Description |
|---|---|---|---|
description | string | no | Free-text description. |
consumer | object | no | Only pacts of this consumer. Omit for any. |
provider | object | no | Only pacts of this provider. Omit for any. |
enabled | boolean | no | Whether the resource is active. |
events | array of object | no | Default: contract_content_changed. |
request | object | no | The HTTP request to send. Send this or target. |
target | object | no | Apiome: a GitHub Actions repository_dispatch, in place of request. |
signingSecret | string | no | Apiome: 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
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for create or replace a webhook. | application/hal+json any |
| 201 | The webhook did not exist and was created. | — |
| 409 | pact-webhook-limit-reached: the workspace already has 200 webhooks. | — |
| 422 | pact-webhook-invalid: the body is malformed; detail.pointer names the field. | — |
| 503 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
uuid | path | string | yes | Path parameter identifying the uuid segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 204 | Successful response for delete a webhook. | — |
| 404 | pact-webhook-not-found: no such webhook in this workspace. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
uuid | path | string | yes | Path parameter identifying the uuid segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for run a webhook now. | application/hal+json any |
| 404 | pact-webhook-not-found: no such webhook in this workspace. | — |
| 422 | Validation Error | application/json HTTPValidationError |
| 429 | pact-webhook-test-rate-limited: too many test runs; Retry-After says when to retry. | — |
| 503 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
limit | query | integer | no | How many to return. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list recent bi-directional comparisons. | application/json object |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
result_id | path | string | yes | Path parameter identifying the result id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read the fidelity report of a bi-directional comparison. | application/json object |
| 404 | pact-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. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for environments and what is deployed to them. | application/json object |
| 422 | Validation Error | application/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
verdictfor that environment (deployabletrue, false, or null while a verification is missing). nextis 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.idlerows 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for what is running where. | application/json object |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
environment | query | string or null | no | Only this environment (its name). |
pacticipant | query | string or null | no | Only this pacticipant (handle or name). |
cursor | query | string or null | no | The nextCursor of the previous page. |
limit | query | integer | no | The page size. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for history of every environment. | application/json object |
| 400 | pact-history-cursor-invalid. | — |
| 404 | pact-environment-not-found or pacticipant-not-found. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
environment | path | string | yes | Path parameter identifying the environment segment. |
pacticipant | query | string or null | no | Only this pacticipant's deployments (handle or name). |
cursor | query | string or null | no | The nextCursor of the previous page. |
limit | query | integer | no | The page size. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for deployment history of an environment. | application/json object |
| 400 | pact-deployment-cursor-invalid. | — |
| 404 | pact-environment-not-found or pacticipant-not-found. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
environment | path | string | yes | Path parameter identifying the environment segment. |
pacticipant | query | string | yes | The pacticipant to deploy (handle or name). |
version | query | string | yes | The version to deploy. |
applicationInstance | query | string or null | no | The instance to deploy to; the unnamed one when omitted. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for simulate a deployment. | application/json object |
| 400 | pact-simulation-invalid: a malformed applicationInstance. | — |
| 404 | pact-environment-not-found, pacticipant-not-found or pacticipant-version-not-found. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
window | query | string or null | no | 7d, 30d or 90d (default 30d). |
provider | query | string or null | no | Only this provider's pairs. |
consumer | query | string or null | no | Only this consumer's pairs. |
state | query | string or null | no | Only pairs in this state: healthy, degraded, failing or unknown. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read the workspace's contract health. | application/json PactHealthOverview |
| 400 | pact-health-window-invalid or pact-health-state-invalid. | — |
| 404 | pacticipant-not-found for the provider or consumer filter. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
consumer | path | string | yes | Path parameter identifying the consumer segment. |
window | query | string or null | no | 7d, 30d or 90d (default 30d). |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read one pair's contract health and trends. | application/json PactPairHealthDetail |
| 400 | pact-health-window-invalid. | — |
| 404 | pacticipant-not-found, or pact-health-pair-not-found when the consumer has published no pact for the provider. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
q | query | string or null | no | Text a handle or name contains. |
filter | query | string or null | no | all (default), failing, stale, … |
limit | query | integer or null | no | Page size, 1 … 100 (default 25). |
offset | query | integer or null | no | Rows to skip, 0 … 1000. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list the workspace's contract integrations. | application/json PactIntegrationsPage |
| 400 | pact-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. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-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
| Property | Type | Required | Description |
|---|---|---|---|
source | string | no | The source broker's URL. |
records | array of object | yes | Records. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for check records from a pact broker or pactflow (dry run). | application/json MigrationReport |
| 413 | pact-too-large: the batch is over twice the pact size limit; send fewer records. | — |
| 422 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-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
| Property | Type | Required | Description |
|---|---|---|---|
source | string | no | The source broker's URL. |
records | array of object | yes | Records. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for import records from a pact broker or pactflow. | application/json MigrationReport |
| 413 | pact-too-large: the batch is over twice the pact size limit; send fewer records. | — |
| 422 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
limit | query | integer | no | The most runs to answer. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list migration runs. | application/json PactMigrationRunList |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for start a migration run.
application/json—StartPactMigrationRunRequest
Responses
| Status | Description | Body |
|---|---|---|
| 202 | Successful response for start a migration run. | application/json PactMigrationRunView |
| 409 | pact-migration-run-active: the workspace already has a migration running. | — |
| 422 | pact-migration-run-invalid (choices that cannot be honoured together, e.g. versions: kept without saved keep-rules) or a pact-migration-source-* code. | — |
| 429 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
run_id | path | string | yes | Path parameter identifying the run id segment. |
after | query | integer | no | Only log lines numbered above this. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read a migration run. | application/json PactMigrationRunView |
| 404 | pact-migration-run-not-found: this workspace has no such run. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
run_id | path | string | yes | Path parameter identifying the run id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for resume a migration run.
application/json—PactMigrationSourceCredentials
Responses
| Status | Description | Body |
|---|---|---|
| 202 | Successful response for resume a migration run. | application/json PactMigrationRunView |
| 404 | pact-migration-run-not-found: this workspace has no such run. | — |
| 409 | pact-migration-run-active: the workspace already has a migration running. | — |
| 422 | pact-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). | — |
| 429 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
run_id | path | string | yes | Path parameter identifying the run id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for stop a migration run. | application/json PactMigrationRunView |
| 404 | pact-migration-run-not-found: this workspace has no such run. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
run_id | path | string | yes | Path parameter identifying the run id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read a migration's keep-in-sync. | application/json PactMigrationSyncView |
| 404 | pact-migration-run-not-found: this workspace has no such run. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
run_id | path | string | yes | Path parameter identifying the run id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-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.
application/json—UpdatePactMigrationSyncRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for switch a migration's keep-in-sync on or off. | application/json PactMigrationSyncView |
| 404 | pact-migration-run-not-found: this workspace has no such run. | — |
| 409 | pact-migration-sync-active: another migration of this workspace is kept in sync. | — |
| 422 | pact-migration-sync-invalid (the run is a dry run), or a pact-migration-source-* code: the credentials were tried before anything was kept. | — |
| 503 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for test the connection to a source broker.
application/json—PactMigrationSourceRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for test the connection to a source broker. | application/json PactMigrationSourceTestResult |
| 422 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for export a pact as a postman collection.
application/json—PactPostmanRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for export a pact as a postman collection. | application/json object |
| 404 | pacticipant-not-found or pact-not-found: no such stored pact in this workspace. | — |
| 413 | pact-too-large: the inline pact is over the workspace's pact size limit. | — |
| 422 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
language | query | string | yes | One of: typescript, java, go, python. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for scaffold a provider verification test. | application/json object |
| 403 | The credential lacks pacts:view. | — |
| 404 | pacticipant-not-found: no such provider in this workspace. | — |
| 422 | provider-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
status | query | enum "held", "published", "discarded", "all" | no | Query parameter: status. |
limit | query | integer | no | Maximum number of rows to return. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list pacts held for review. | application/json PactHeldList |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
held_id | path | string | yes | Path parameter identifying the held id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read a held pact. | application/json PactHeldDetail |
| 404 | pact-held-not-found. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
held_id | path | string | yes | Path parameter identifying the held id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for publish a held pact. | application/json PactHeldApproval |
| 404 | pact-held-not-found. | — |
| 409 | pact-held-already-decided, or the consumer version already has a different pact for the provider. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
held_id | path | string | yes | Path parameter identifying the held id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for discard a held pact.
application/json—PactHeldDiscardBody
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for discard a held pact. | application/json PactHeld |
| 404 | pact-held-not-found. | — |
| 409 | pact-held-already-decided. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
project | query | string | yes | Required. Query parameter: project. |
version | query | string | yes | Endpoint or API version metadata. |
consumer | query | string | yes | Required. Query parameter: consumer. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read the standing recording policy of a mock and consumer. | application/json PactRecordingSetting |
| 404 | capture-version-not-found: the version is not the workspace's. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-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.
application/json—PactRecordingSettingSave
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for save the standing recording policy of a mock and consumer. | application/json PactRecordingSetting |
| 404 | capture-version-not-found: the version is not the workspace's. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | query | string or null | no | Only this provider's. |
consumer | query | string or null | no | Only this consumer's. |
state | query | string or null | no | A state, or open. |
cursor | query | string or null | no | The next_cursor of the previous page. |
limit | query | integer | no | Page size. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list re-publish requests. | application/json RepublishRequestPage |
| 400 | pact-republish-request-cursor-invalid. | — |
| 404 | pacticipant-not-found for the provider or consumer filter. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
request_id | path | string | yes | Path parameter identifying the request id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read one re-publish request. | application/json RepublishRequestRecord |
| 404 | pact-republish-request-not-found in this workspace. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
request_id | path | string | yes | Path parameter identifying the request id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for acknowledge a re-publish request.
application/json—AcknowledgeRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for acknowledge a re-publish request. | application/json RepublishRequestRecord |
| 404 | pact-republish-request-not-found in this workspace. | — |
| 409 | pact-republish-request-closed. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list the workspace's secrets. | application/json SecretList |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for create a workspace secret.
application/json— object
| Property | Type | Required | Description |
|---|---|---|---|
name | string | yes | What references use: a letter, then up to 63 letters, digits and underscores. Never changes. |
description | string | no | Free-text description. |
value | string | yes | The secret, one line. Sealed; never returned. |
Responses
| Status | Description | Body |
|---|---|---|
| 201 | Successful response for create a workspace secret. | application/json SecretRecord |
| 409 | pact-secret-name-taken or pact-secret-limit-reached. | — |
| 422 | pact-secret-invalid: the body is malformed; detail.pointer names the field. | — |
| 503 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
secret_id | path | string | yes | Path parameter identifying the secret id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read a workspace secret. | application/json SecretRecord |
| 404 | pact-secret-not-found: no such secret in this workspace. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
secret_id | path | string | yes | Path parameter identifying the secret id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-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
| Property | Type | Required | Description |
|---|---|---|---|
name | string | no | Ignored when it repeats the stored name. |
description | string | no | Omit or null to clear. |
value | string | no | A new value (rotation). Omit to keep the stored one. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for update or rotate a workspace secret. | application/json SecretRecord |
| 404 | pact-secret-not-found: no such secret in this workspace. | — |
| 422 | pact-secret-invalid: the body is malformed; detail.pointer names the field. | — |
| 503 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
secret_id | path | string | yes | Path parameter identifying the secret id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 204 | Successful response for delete a workspace secret. | — |
| 404 | pact-secret-not-found: no such secret in this workspace. | — |
| 409 | pact-secret-in-use: names what still refers to it. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | query | string or null | no | The provider, by handle, id or name. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list pact stubs. | application/json PactStubList |
| 404 | pacticipant-not-found: an unknown provider. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
name | path | string | yes | Path parameter identifying the name segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read a pact stub and what it serves. | application/json PactStubDetail |
| 404 | pacticipant-not-found or pact-stub-not-found. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
name | path | string | yes | Path parameter identifying the name segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for create or replace a pact stub.
application/json—PactStubSave
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for create or replace a pact stub. | application/json PactStubDetail |
| 404 | pacticipant-not-found, or capture-version-not-found for the fallback mock. | — |
| 422 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
name | path | string | yes | Path parameter identifying the name segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 204 | Successful response for delete a pact stub. | — |
| 404 | pacticipant-not-found or pact-stub-not-found. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
consumer | path | string | yes | Path parameter identifying the consumer segment. |
sha | path | string | yes | The pact version's SHA-256 (64 hex characters). |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-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.
application/json—PactSuiteCompileRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for compile a pact version into a contract suite. | application/json PactSuiteResponse |
| 404 | pacticipant-not-found or pact-not-found: no such provider, consumer or pact version in this workspace. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read the workspace's pact verification settings. | application/json VerificationSettings |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for save the workspace's pact verification settings.
application/json—VerificationSettingsInput
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for save the workspace's pact verification settings. | application/json VerificationSettings |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list the pact verification overrides. | application/json OverrideList |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for save a pact verification override.
application/json—OverrideInput
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for save a pact verification override. | application/json OverrideRecord |
| 404 | pacticipant-not-found or target-not-found in this workspace. | — |
| 422 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
override_id | path | string | yes | Path parameter identifying the override id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 204 | Successful response for remove a pact verification override. | — |
| 404 | pact-verification-override-not-found in this workspace. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
consumer | path | string | yes | Path parameter identifying the consumer segment. |
sha | path | string | yes | Path parameter identifying the sha segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for re-run the verification of one pact.
application/json—ConsoleRunRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for re-run the verification of one pact. | application/json ConsoleRunResponse |
| 400 | A malformed provider version, branch or build URL. | — |
| 404 | pacticipant-not-found, pact-not-found or target-not-found in this workspace. | — |
| 409 | pact-verify-in-progress: a console run of this pair is already running. | — |
| 422 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
consumer | query | string or null | no | Only this consumer's results. |
cursor | query | string or null | no | The next_cursor of the previous page. |
limit | query | integer | no | Page size. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list a provider's verification results. | application/json ResultHistoryPage |
| 400 | pact-history-cursor-invalid. | — |
| 404 | pacticipant-not-found or pact-verification-not-found in this workspace. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
result_id | path | string | yes | Path parameter identifying the result id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read one verification result with its log. | application/json ResultDetail |
| 404 | pacticipant-not-found or pact-verification-not-found in this workspace. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for where a provider's verification stands. | application/json VerificationStatus |
| 404 | pacticipant-not-found or pact-verification-not-found in this workspace. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-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).
application/json—PactVerifyRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for verify a provider against its pacts (hosted verifier). | application/json PactVerifyResponse |
| 400 | pact-selector-invalid, or a malformed provider version, branch or build URL. | — |
| 404 | pacticipant-not-found or target-not-found in this workspace. | — |
| 422 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for verify every stale pact of a provider.
application/json—ConsoleRunRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for verify every stale pact of a provider. | application/json ConsoleRunResponse |
| 400 | A malformed provider version, branch or build URL. | — |
| 404 | pacticipant-not-found, pact-not-found or target-not-found in this workspace. | — |
| 409 | pact-verify-in-progress: a console run of this pair is already running. | — |
| 422 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for preview a hosted verification.
application/json—VerifyPreviewRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for preview a hosted verification. | application/json VerifyPreviewResponse |
| 400 | pact-selector-invalid. | — |
| 404 | pacticipant-not-found in this workspace. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for start a live hosted verification.
application/json—PactVerifyRequest
Responses
| Status | Description | Body |
|---|---|---|
| 202 | Successful response for start a live hosted verification. | application/json LiveRunSnapshot |
| 400 | pact-selector-invalid, or a malformed provider version, branch or build URL. | — |
| 404 | pacticipant-not-found or target-not-found in this workspace. | — |
| 422 | The same refusals as POST …/verify. | — |
| 429 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list a provider's registered provider states. | application/json array of ProviderStateRecord |
| 404 | pacticipant-not-found or provider-state-not-found in this workspace. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for register a provider state.
application/json—ProviderStateInput
Responses
| Status | Description | Body |
|---|---|---|
| 201 | Successful response for register a provider state. | application/json ProviderStateRecord |
| 403 | The credential lacks the pacts permission this route needs. | — |
| 404 | pacticipant-not-found or provider-state-not-found in this workspace. | — |
| 409 | provider-state-name-taken. | — |
| 422 | provider-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-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.
application/json—StateCheckRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for check a provider's pacts against its provider states. | application/json StateCheckResponse |
| 400 | pact-selector-invalid. | — |
| 403 | The credential lacks the pacts permission this route needs. | — |
| 404 | pacticipant-not-found or provider-state-not-found in this workspace. | — |
| 422 | pact-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
state_id | path | string | yes | Path parameter identifying the state id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read a provider state. | application/json ProviderStateRecord |
| 404 | pacticipant-not-found or provider-state-not-found in this workspace. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
state_id | path | string | yes | Path parameter identifying the state id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for replace a provider state.
application/json—ProviderStateInput
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for replace a provider state. | application/json ProviderStateRecord |
| 403 | The credential lacks the pacts permission this route needs. | — |
| 404 | pacticipant-not-found or provider-state-not-found in this workspace. | — |
| 409 | provider-state-name-taken. | — |
| 422 | provider-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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
provider | path | string | yes | Path parameter identifying the provider segment. |
state_id | path | string | yes | Path parameter identifying the state id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 204 | Successful response for delete a provider state. | — |
| 404 | pacticipant-not-found or provider-state-not-found in this workspace. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
run_id | path | string | yes | Path parameter identifying the run id segment. |
log_after | query | integer | no | Return only log lines after this seq. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read a live hosted verification. | application/json LiveRunSnapshot |
| 404 | pact-verify-run-not-found: no live run with that id in this workspace. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
run_id | path | string | yes | Path parameter identifying the run id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-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.
application/json—RerunRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for re-run one interaction of a live hosted verification. | application/json RerunResponse |
| 404 | pact-verify-run-not-found, pact-verify-run-pact-not-found, pact-verify-run-interaction-not-found, or the target is gone. | — |
| 409 | pact-verify-run-busy: the run is still going. | — |
| 422 | The 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
run_id | path | string | yes | Path parameter identifying the run id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for stop a live hosted verification. | application/json LiveRunSnapshot |
| 404 | pact-verify-run-not-found: no live run with that id in this workspace. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
webhook | query | string or null | no | Only this webhook's deliveries (its uuid). |
status | query | enum "success", "failure", "retrying", "not_run" or null | no | Only deliveries with this status. |
cursor | query | string or null | no | The nextCursor of the previous page. |
limit | query | integer | no | The page size. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list webhook deliveries. | application/json object |
| 400 | pact-webhook-delivery-cursor-invalid or pact-webhook-invalid (unknown status). | — |
| 404 | pact-webhook-not-found: no such webhook in this workspace. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for latest delivery of each webhook. | application/json object |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
delivery_id | path | string | yes | Path parameter identifying the delivery id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for read a webhook delivery. | application/json object |
| 404 | pact-triggered-webhook-not-found: no such delivery in this workspace. | — |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
delivery_id | path | string | yes | Path parameter identifying the delivery id segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 202 | Successful response for redeliver a webhook delivery. | application/json object |
| 404 | pact-triggered-webhook-not-found: no such delivery in this workspace. | — |
| 409 | pact-webhook-delivery-in-progress: the delivery is still queued or being retried; pact-webhook-disabled: its webhook is disabled. | — |
| 422 | Validation Error | application/json HTTPValidationError |
Schemas used
AcknowledgeRequest
The consumer acknowledges a re-publish request.
| Property | Type | Required | Description |
|---|---|---|---|
note | string or null | no | What the consumer will do, and when. |
ConsoleRunRequest
A re-run or verify-all-stale from the Verification console.
| Property | Type | Required | Description |
|---|---|---|---|
target_ref | string | yes | Slug or id of the registered verification target to replay against. |
provider_version | string or null | no | The provider version being verified. A re-run defaults to the provider version of the pact's newest result; verify-all-stale requires it. |
provider_branch | string or null | no | Its branch. A re-run that takes the provider version from a result takes its branch too. |
build_url | string or null | no | http(s) URL of the CI build. |
verification | PactVerificationOptions | no | What the run may send: the mutating-method opt-in, fixtures and the provider-state choice. |
context | object | no | Non-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.
| Property | Type | Required | Description |
|---|---|---|---|
provider | string | yes | The provider's handle. |
provider_version | string | yes | The provider version verified. |
provider_branch | string or null | no | Its branch, when stated. |
target | VerifiedTarget | yes | The verification target replayed against. |
success | boolean | yes | What 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. |
outcome | string | yes | passed, 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). |
pacts | array of PactVerification | no | One entry per pact verified. |
skipped | array of SkippedPact | no | Chosen but not verified, each with why. |
connection_error | string or null | no | With outcome could-not-connect: the target never answered (Could not connect to billing.staging.example (timeout)). Not a failed verification — nothing was published. |
trigger | string | yes | manual (re-run), stale-recheck (verify all stale) or scheduled. |
HTTPValidationError
Validation error response emitted when request data fails schema checks.
| Property | Type | Required | Description |
|---|---|---|---|
detail | array of ValidationError | no | Detail. |
LiveRunSnapshot
A live run as it stands.
| Property | Type | Required | Description |
|---|---|---|---|
run_id | string | yes | The run's id. |
provider | string | yes | The provider's handle. |
provider_name | string | yes | The provider's display name. |
provider_version | string | yes | The provider version being verified. |
provider_branch | string or null | no | Its branch, when stated. |
target | string | yes | The verification target's handle. |
target_base_url | string | yes | Where the interactions are sent. |
environment | string | yes | The target's environment class. |
status | string | yes | running, finished or errored. |
stop_requested | boolean | yes | Whether someone asked the run to stop. |
started_at | string (date-time) | yes | When the run started. |
finished_at | string (date-time) or null | no | When it ended. |
interactions | integer | yes | Interactions of every pact, as far as they are compiled. |
done | integer | yes | Interactions replayed or held back so far. |
pacts | array of LiveRunPact | no | One row per pact, in run order. |
skipped | array of SkippedPact | no | Chosen but not verified, each with why. |
failure | LiveRunFailure or null | no | The newest interaction that did not pass. |
log | array of LiveRunLogLine | no | Log lines after log_after, oldest first. |
log_next | integer | yes | The newest line's seq: send it as log_after to read on. |
log_dropped | integer | no | Older lines let go beyond the 2000 a run keeps. |
result | PactVerifyResponse or null | no | Once finished: exactly what POST …/verify would have answered. |
error | LiveRunFault or null | no | With status errored: why. |
MigrationReport
The answer to an import or a check.
| Property | Type | Required | Description |
|---|---|---|---|
dry_run | boolean | yes | True for a check: nothing was written. |
results | array of MigrationOutcome | yes | One entry per record, in batch order. |
counts | map of integer | yes | How many records had each outcome. |
OverrideInput
A provider-wide or per-pair override, as PUT …/overrides creates or replaces it.
| Property | Type | Required | Description |
|---|---|---|---|
provider | string | yes | The provider's handle, id or name. |
consumer | string or null | no | The consumer's handle, id or name; omit for every consumer of the provider. |
cadence | string or null | no | The cadence; null inherits. |
stale_threshold_hours | integer or null | no | The stale threshold (1 … 2160); null inherits. |
target_ref | string or null | no | Slug or id of the verification target scheduled runs replay against; null inherits. |
OverrideList
Every override of the workspace, by provider then consumer.
| Property | Type | Required | Description |
|---|---|---|---|
overrides | array of OverrideRecord | no | Overrides. |
OverrideRecord
A stored override.
| Property | Type | Required | Description |
|---|---|---|---|
id | string | yes | The override's id (what DELETE …/overrides/{id} removes). |
provider | string | yes | The provider's handle. |
provider_name | string | yes | The provider's display name. |
consumer | string or null | no | The consumer's handle; null for every consumer. |
consumer_name | string or null | no | The consumer's display name. |
cadence | string or null | no | The cadence; null inherits. |
stale_threshold_hours | integer or null | no | The threshold; null inherits. |
target | string or null | no | The verification target's handle; null inherits. |
target_name | string or null | no | Its display name. |
target_deleted | boolean | no | True when the target was deleted: scheduled runs of this override cannot run. |
updated_at | string or null | no | When it was last saved. |
PactGenerateBody
POST …/pact-broker/pacts/generate: exactly one of session, traffic and scenarios.
| Property | Type | Required | Description |
|---|---|---|---|
session | string or null | no | The capture session id (PFX-9.1). |
traffic | PactGenerateTraffic or null | no | Past traffic instead of a session: the capture history of a mock version. |
scenarios | PactGenerateScenarios or null | no | Operations × mock scenarios instead of captured calls. |
provider | string or null | no | The provider's name. Default: the pacticipant bound to the mocked project. |
matching | enum "exact", "type", "spec" | no | exact: the first call's values. type: any value of the same type. spec: by type, plus the spec's formats and patterns. |
fields | enum "all", "read" | no | all: 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. |
overrides | array of PactGenerateOverride | no | Overrides. |
leave_out | array of string | no | Interactions 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. |
previous | string | no | Diff 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.
| Property | Type | Required | Description |
|---|---|---|---|
window | string | yes | 7d, 30d or 90d. |
since | string | yes | The window's first instant (inclusive). |
until | string | yes | The window's end (exclusive): the end of today, UTC. |
bucket_days | integer | yes | The length of one trend bucket, in days. |
generated_at | string | yes | When this rollup was computed (it is computed on every read). |
counts | PactHealthCounts | yes | Pairs per state. |
totals | PactPairMetrics | yes | The analytics of every listed pair together. |
pairs | array of PactPairHealth | no | Worst first, then by provider and consumer handle. |
truncated | boolean | no | True when more than 500 pairs match (the rest are left out and counted). |
omitted_pairs | integer | no | How many matching pairs were left out by the cap. |
PactHeld
A pact held for review.
| Property | Type | Required | Description |
|---|---|---|---|
id | string | yes | Stable resource identifier. |
project | string | yes | Project. |
version | string | yes | Version. |
consumer | string | yes | Consumer. |
provider | string | yes | Provider. |
consumer_version | string | yes | Consumer Version. |
branch | string or null | no | Branch. |
tags | array of string | no | Associated tag labels. |
build_url | string or null | no | Build URL. |
sha | string | yes | The pact version it becomes when published. |
interaction_count | integer | yes | Number of interaction. |
changes | object | yes | What changed since the previous pact: added, removed, changed, unchanged, looser. |
previous_consumer_version | string or null | no | Previous Consumer Version. |
status | enum "held", "published", "discarded" | yes | Status. |
held_by_label | string or null | no | Held By Label. |
held_at | string (date-time) | yes | Held At timestamp (ISO 8601). |
decided_by_label | string or null | no | Decided By Label. |
decided_at | string (date-time) or null | no | Decided At timestamp (ISO 8601). |
decision_note | string or null | no | Decision Note. |
PactHeldApproval
A held pact, published.
| Property | Type | Required | Description |
|---|---|---|---|
held | PactHeld | yes | Held. |
publish | object | yes | The publish result, as POST …/contracts/publish answers it. |
PactHeldDetail
A held pact with its document.
| Property | Type | Required | Description |
|---|---|---|---|
id | string | yes | Stable resource identifier. |
project | string | yes | Project. |
version | string | yes | Version. |
consumer | string | yes | Consumer. |
provider | string | yes | Provider. |
consumer_version | string | yes | Consumer Version. |
branch | string or null | no | Branch. |
tags | array of string | no | Associated tag labels. |
build_url | string or null | no | Build URL. |
sha | string | yes | The pact version it becomes when published. |
interaction_count | integer | yes | Number of interaction. |
changes | object | yes | What changed since the previous pact: added, removed, changed, unchanged, looser. |
previous_consumer_version | string or null | no | Previous Consumer Version. |
status | enum "held", "published", "discarded" | yes | Status. |
held_by_label | string or null | no | Held By Label. |
held_at | string (date-time) | yes | Held At timestamp (ISO 8601). |
decided_by_label | string or null | no | Decided By Label. |
decided_at | string (date-time) or null | no | Decided At timestamp (ISO 8601). |
decision_note | string or null | no | Decision Note. |
pact | object | yes | The document approving publishes, exactly. |
PactHeldDiscardBody
Why the held pact is not published.
| Property | Type | Required | Description |
|---|---|---|---|
note | string or null | no | Note. |
PactHeldList
Held pacts, newest first.
| Property | Type | Required | Description |
|---|---|---|---|
held | array of PactHeld | yes | Held. |
held_count | integer | yes | How many of the workspace's pacts wait for review (any filter aside). |
PactIntegrationsPage
What GET /v1/tenants/{tenant}/pact-integrations answers.
| Property | Type | Required | Description |
|---|---|---|---|
integrations | array of PactIntegration | no | This page, worst first. |
total | integer | no | Rows matching the search and filter. |
offset | integer | no | Offset. |
limit | integer | no | Limit. |
filter | string | no | Filter. |
search | string or null | no | Search. |
counts | PactIntegrationCounts | no | Counts. |
attention | PactIntegrationAttention | no | Attention. |
pacticipants | integer | no | Pacticipants in the workspace. |
environments | integer | no | Environments in the workspace. |
truncated | boolean | no | More than 1000 pairs: the rest are not classified. |
omitted_integrations | integer | no | How many pairs were left out when truncated. |
mine_available | boolean | no | False for a credential with no user (no mine filter). |
PactMigrationRunList
The workspace's migration runs.
| Property | Type | Required | Description |
|---|---|---|---|
runs | array of PactMigrationRunView | yes | Newest first, without findings, failures or log. |
can_migrate | boolean | no | Whether 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.
| Property | Type | Required | Description |
|---|---|---|---|
id | string | yes | Stable resource identifier. |
source | string | yes | The source broker's base URL. |
host | string | yes | Its host, for display. |
auth_kind | string | yes | token, basic or none — what a resume must be given again. |
mode | string | yes | dry-run (nothing written) or copy. |
status | string | yes | running, completed, stopped or failed. |
phase | string | yes | reading, the record kind being copied, checking (the agreement check), or done. |
percent | integer | yes | Records dealt with, of those the source returned (0 while it is being read). |
options | PactMigrationRunOptions | yes | Options. |
kinds | array of PactMigrationKindProgress | yes | The chosen kinds, in copying order. |
facts | object | yes | What 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. |
findings | array of PactMigrationRunFinding | no | Findings. |
failures | array of PactMigrationRunFailure | no | Failures. |
failures_dropped | integer | no | Refused records counted but not listed. |
log | array of PactMigrationRunLogLine | no | Log lines after after. |
log_seq | integer | no | The number of the newest log line. |
error | string or null | no | Why a run failed, or how it came to be stopped. |
stop_requested | boolean | no | Stop Requested. |
can_resume | boolean | yes | Whether it can be set running again (given the credentials). |
started_by | string or null | no | Started By. |
created_at | string or null | no | Creation timestamp (ISO 8601). |
finished_at | string or null | no | Finished At timestamp (ISO 8601). |
not_read | array of string | no | What a migration never reads from a source. |
PactMigrationSourceCredentials
How to sign in to the source. Used for this request's run only; never stored.
| Property | Type | Required | Description |
|---|---|---|---|
token | string (password) or null | no | A bearer token for the source; a read-only one is enough. Never stored. |
username | string or null | no | Basic-auth user of an open-source broker without tokens. |
password | string (password) or null | no | Basic-auth password. Never stored. |
PactMigrationSourceRequest
A source broker and how to sign in to it.
| Property | Type | Required | Description |
|---|---|---|---|
token | string (password) or null | no | A bearer token for the source; a read-only one is enough. Never stored. |
username | string or null | no | Basic-auth user of an open-source broker without tokens. |
password | string (password) or null | no | Basic-auth password. Never stored. |
source | string | yes | The source's base URL, e.g. https://acme.pactflow.io (no credentials in it). |
PactMigrationSourceTestResult
What Test connection found.
| Property | Type | Required | Description |
|---|---|---|---|
host | string | yes | The source's host. |
product | string | yes | PactFlow or Pact Broker. |
pacticipants | integer | yes | Pacticipants the source lists. |
PactMigrationSyncView
Whether a migration is kept in sync, and how its passes have gone.
| Property | Type | Required | Description |
|---|---|---|---|
run_id | string | yes | Run ID. |
enabled | boolean | yes | Whether what is new at the old broker is copied on a schedule. |
interval_minutes | integer | yes | How often a pass runs. |
next_run_at | string or null | no | When the next pass is due (while enabled). |
last_pass_at | string or null | no | Last Pass At timestamp (ISO 8601). |
last_success_at | string or null | no | When a pass last copied without failing. |
unreachable_since | string or null | no | Since when the old broker could not be read; after 24 hours the sync stops itself. |
passes | integer | no | Passes that ran to the end. |
last_error | string or null | no | What went wrong in the last pass. |
stopped_reason | string or null | no | Why the sync stopped itself (an unreachable source, unopenable credentials …). |
enabled_by | string or null | no | Enabled By. |
available | boolean | yes | Whether this server can keep credentials at all (a master key is configured); without one, switching on answers 503 pact-migration-sync-unavailable. |
unreachable_limit_hours | integer | yes | How long the source may be unreachable before the sync stops. |
PactPairHealthDetail
One pair's health with its trend.
| Property | Type | Required | Description |
|---|---|---|---|
window | string | yes | 7d, 30d or 90d. |
since | string | yes | The window's first instant (inclusive). |
until | string | yes | The window's end (exclusive). |
bucket_days | integer | yes | The length of one trend bucket, in days. |
generated_at | string | yes | When this was computed. |
pair | PactPairHealth | yes | The pair's health over the whole window. |
trend | array of PactTrendBucket | yes | Every 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.
| Property | Type | Required | Description |
|---|---|---|---|
provider | string or null | no | The provider pacticipant (handle, id or name). Required for a stored pact. |
consumer | string or null | no | The consumer pacticipant (handle, id or name). Required for a stored pact. |
consumerVersion | string or null | no | The pact this consumer version published. |
tag | string or null | no | The latest pact of consumer versions with this tag. |
branch | string or null | no | The latest pact of consumer versions on this branch. |
pactVersionSha | string or null | no | The pact with this content address (64 hex characters). |
pact | object or null | no | An 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. |
baseUrl | string or null | no | The value of the {{baseUrl}} collection variable (an http or https URL). Omitted: empty, to fill in (Newman: --env-var baseUrl=…). |
tests | boolean | no | Give each request a test script that checks the expected response. |
allConsumers | boolean | no | Export 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. |
stateSetup | boolean | no | Give each request that needs provider states a pre-request script that first POSTs {"state", "params", "action": "setup"} per state to the {{stateChangeUrl}} variable. |
stateChangeUrl | string or null | no | The 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.
| Property | Type | Required | Description |
|---|---|---|---|
session | string | yes | The capture session the pact was generated from; it names the mock, consumer and version. |
pact | object | yes | The generated Pact document (POST …/pacts/generate's pact). |
tests_passed | boolean | yes | Whether the wrapped test command passed. |
test_exit_code | integer or null | no | Its exit code, for the reason. |
branch | string or null | no | The consumer build's branch. |
tags | array of string | no | Tags for the consumer version. |
build_url | string or null | no | http(s) URL of the CI build. |
PactRecordingSetting
The policy of one mock and consumer.
| Property | Type | Required | Description |
|---|---|---|---|
project | string | yes | Project. |
version | string | yes | Version. |
consumer | string | yes | Consumer. |
publish_when | enum "tests-pass", "always" | yes | Publish When. |
if_looser | enum "publish-notify", "hold" | yes | If Looser. |
saved | boolean | yes | False while the defaults apply (nobody saved a policy). |
saved_at | string (date-time) or null | no | Saved At timestamp (ISO 8601). |
updated_by_label | string or null | no | Updated By Label. |
last_run | PactRecordingLastRun or null | no | Last Run. |
last_run_at | string (date-time) or null | no | Last Run At timestamp (ISO 8601). |
can_edit | boolean | yes | Whether the caller may change it (pacts:edit). |
PactRecordingSettingSave
The policy to save for one mock and consumer.
| Property | Type | Required | Description |
|---|---|---|---|
project | string | yes | Slug of the mocked project. |
version | string | yes | Version label of the mocked API. |
consumer | string | yes | The consumer, as its pacts name it. |
publish_when | enum "tests-pass", "always" | yes | tests-pass: publish only when the tests passed; always: publish whatever they did. |
if_looser | enum "publish-notify", "hold" | yes | When 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.
| Property | Type | Required | Description |
|---|---|---|---|
id | string | yes | Stable resource identifier. |
provider | string | yes | The provider's name. |
provider_slug | string | yes | Provider Slug. |
name | string | yes | The last segment of the stub's URL. |
sources | array of PactStubSource | yes | Sources. |
source_tokens | array of string | yes | The sources as apiome pact stub --pacts writes them. |
source_labels | array of string | yes | The sources as a person reads them. |
fallback | enum "spec", "not-implemented" | yes | Fallback. |
fallback_mock | PactStubMock or null | no | null when not set, or when the version was deleted (the stub then answers 501). |
path | string | yes | /{tenant}/~pacts/{provider}/{name} on the mock host. |
url | string | yes | The stub's base URL: append the API path. |
created_at | string (date-time) | yes | Creation timestamp (ISO 8601). |
updated_at | string (date-time) | yes | Last update timestamp (ISO 8601). |
updated_by_label | string or null | no | Updated By Label. |
report | PactStubReport | yes | Report. |
created | boolean or null | no | On PUT: whether the stub is new. |
PactStubList
The workspace's stubs.
| Property | Type | Required | Description |
|---|---|---|---|
stubs | array of PactStub | yes | Stubs. |
PactStubSave
PUT …/pact-stubs/{provider}/{name}.
| Property | Type | Required | Description |
|---|---|---|---|
sources | array of PactStubSource | yes | The pacts to serve. |
fallback | enum "spec", "not-implemented" | no | What answers a request no interaction matches: the spec mock (spec) or a 501 (not-implemented). |
fallback_mock | PactStubMock or null | no | The 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.
| Property | Type | Required | Description |
|---|---|---|---|
options | PactSuiteOptions | no | Compiler 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.
| Property | Type | Required | Description |
|---|---|---|---|
consumer | string | yes | The consumer's handle. |
provider | string | yes | The provider's handle. |
pact_version_sha | string | yes | The pact version compiled. |
manifest | ContractSuiteManifest | yes | The 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.
| Property | Type | Required | Description |
|---|---|---|---|
target_ref | string | yes | Slug 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_version | string | yes | The provider application version being verified (a commit SHA). Results are recorded against it. |
provider_branch | string or null | no | The 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_url | string or null | no | http(s) URL of the CI build, stored on each result. |
selection | object | no | Which 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. |
verification | PactVerificationOptions | no | What this run may send: the mutating-method opt-in, fixtures and the provider-state choice. |
publish | boolean | no | Publish 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_verified | boolean | no | Skip 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. |
context | object | no | Non-secret CI context (commit, workflow URL) stored with the evidence. Never credentials. |
PactVerifyResponse
The outcome of one hosted verification.
| Property | Type | Required | Description |
|---|---|---|---|
provider | string | yes | The provider's handle. |
provider_version | string | yes | The provider version verified. |
provider_branch | string or null | no | Its branch, when stated. |
target | VerifiedTarget | yes | The verification target replayed against. |
success | boolean | yes | What 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. |
outcome | string | yes | passed, 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). |
pacts | array of PactVerification | no | One entry per pact verified. |
skipped | array of SkippedPact | no | Chosen but not verified, each with why. |
connection_error | string or null | no | With 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.
| Property | Type | Required | Description |
|---|---|---|---|
name | string | yes | The state exactly as consumers write it (an invoice 1042 exists). |
description | string or null | no | What the state means. |
parameters | array of StateParameter | no | The parameters the state takes. |
setup | StateSetup | yes | How the state is set up by default. |
overrides | array of StateOverrideInput | no | Per-target setups, replacing the default on that target. |
ProviderStateRecord
A registered provider state, as stored.
| Property | Type | Required | Description |
|---|---|---|---|
id | string | yes | The state's id. |
provider | string | yes | The provider's handle. |
name | string | yes | The state, as consumers write it. |
description | string or null | no | What it means. |
parameters | array of StateParameter | no | The parameters it takes. |
setup | StateSetup | yes | The default setup. |
overrides | array of StateOverrideRecord | no | Per-target setups. |
created_at | string (date-time) | yes | When it was registered. |
updated_at | string (date-time) | yes | When it last changed. |
RepublishRequestPage
One page of re-publish requests, newest first.
| Property | Type | Required | Description |
|---|---|---|---|
requests | array of RepublishRequestRecord | no | Requests. |
next_cursor | string or null | no | Pass as cursor for the next page. |
RepublishRequestRecord
A request to a consumer to re-publish a stale pact.
| Property | Type | Required | Description |
|---|---|---|---|
id | string | yes | The request's id. |
provider | string | yes | The provider's handle. |
provider_name | string | yes | The provider's display name. |
consumer | string | yes | The consumer's handle. |
consumer_name | string | yes | The consumer's display name. |
pact_version_sha | string | yes | The stale pact version. |
consumer_version | string | yes | The consumer version that published it last. |
state | string | yes | requested, acknowledged, republished, cleared or expired. |
threshold_hours | integer | yes | The stale threshold it crossed. |
reference_at | string or null | no | When the pact was last verified (or published, when never verified). |
requested_at | string or null | no | When the request was opened. |
expires_at | string or null | no | When it expires and escalates, unless answered. |
acknowledged_at | string or null | no | When the consumer acknowledged it. |
acknowledged_by | string or null | no | Who acknowledged it. |
note | string or null | no | The acknowledgement's note. |
resolved_at | string or null | no | When it was republished, cleared or expired. |
resolved_consumer_version | string or null | no | The consumer version that re-published, for republished. |
notification_status | string or null | no | What 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_status | string or null | no | The same, for the escalation on expiry. |
webhook_deliveries | integer | no | Contract webhook deliveries queued for it. |
RerunRequest
Which interaction of the run to replay again.
| Property | Type | Required | Description |
|---|---|---|---|
pact_version_sha | string | yes | The pact version, as the run listed it. |
case_id | string | yes | The interaction's suite case (failure.interaction.case_id). |
RerunResponse
One interaction replayed again; nothing published.
| Property | Type | Required | Description |
|---|---|---|---|
run_id | string | yes | The run it belongs to. |
pact_version_sha | string | yes | The pact version. |
interaction | InteractionVerification | yes | What replaying it showed this time. |
published | boolean | no | Always false: one interaction does not verify a pact. |
ResultDetail
One verification result in full.
| Property | Type | Required | Description |
|---|---|---|---|
result | ResultSummary | yes | The result. |
provider | string | yes | The provider's handle. |
provider_name | string | yes | The provider's display name. |
test_results | array of any | no | The 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. |
comparison | object or null | no | A bi-directional result's comparison. |
evidence_status | string | yes | attached, not-recorded, not-found (pruned) or forbidden (no verification_evidence:view). |
evidence | VerificationRunRecord or null | no | The evidence run: every request with its assertions, when attached. |
ResultHistoryPage
One page of a provider's verification history.
| Property | Type | Required | Description |
|---|---|---|---|
provider | string | yes | The provider's handle. |
provider_name | string | yes | The provider's display name. |
consumer | string or null | no | The consumer the page is narrowed to. |
results | array of ResultSummary | no | Newest first. |
next_cursor | string or null | no | Pass 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.
| Property | Type | Required | Description |
|---|---|---|---|
secrets | array of SecretRecord | no | Secrets. |
limit | integer | no | Limit. |
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.
| Property | Type | Required | Description |
|---|---|---|---|
id | string | yes | Stable resource identifier. |
name | string | yes | Human-readable name. |
description | string or null | no | Free-text description. |
reference | string | yes | Reference. |
used_by | SecretUsage | no | Used By. |
has_value | boolean | no | false: created without a value; set one to use it. |
origin | string or null | no | migration when apiome pact migrate created it. |
value_updated_at | string or null | no | Value Updated At timestamp (ISO 8601). |
created_at | string or null | no | Creation timestamp (ISO 8601). |
updated_at | string or null | no | Last update timestamp (ISO 8601). |
StartPactMigrationRunRequest
A run to start.
| Property | Type | Required | Description |
|---|---|---|---|
token | string (password) or null | no | A bearer token for the source; a read-only one is enough. Never stored. |
username | string or null | no | Basic-auth user of an open-source broker without tokens. |
password | string (password) or null | no | Basic-auth password. Never stored. |
source | string | yes | The source's base URL, e.g. https://acme.pactflow.io (no credentials in it). |
mode | enum "dry-run", "copy" | no | dry-run reads and checks and writes nothing; copy imports. |
options | PactMigrationRunOptions | no | What to copy and how. |
StateCheckRequest
Which pacts to check, and on which target.
| Property | Type | Required | Description |
|---|---|---|---|
selection | object | no | Which pacts — the selection of the verify request (the body of …/for-verification), unchanged. Empty selects what a Pact verifier gets by default. |
target_ref | string or null | no | Slug 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.
| Property | Type | Required | Description |
|---|---|---|---|
provider | string | yes | The provider's handle. |
target | string or null | no | The target checked against, when one was named. |
ready | boolean | yes | True when no interaction would be held back for its provider states. |
pacts | integer | yes | How many pacts the selection chose. |
blocking | integer | yes | How many blocking problems were found. |
warnings | integer | yes | How many warnings were found. |
states | array of StateCheckEntry | no | Every state the selected interactions name; unregistered ones first. |
unused | array of string | no | Registered states no selected interaction names. |
UpdatePactMigrationSyncRequest
Switch keep-in-sync on (with the source's credentials) or off.
| Property | Type | Required | Description |
|---|---|---|---|
token | string (password) or null | no | A bearer token for the source; a read-only one is enough. Never stored. |
username | string or null | no | Basic-auth user of an open-source broker without tokens. |
password | string (password) or null | no | Basic-auth password. Never stored. |
enabled | boolean | yes | On: copy what is new on a schedule. Off: stop, and let go of the credentials. |
interval_minutes | integer | no | How often to copy again (5 minutes to a day). |
VerificationSettings
The workspace's verification settings, as read.
| Property | Type | Required | Description |
|---|---|---|---|
cadence | string | yes | on-publish, hourly, nightly or manual-only: when the hosted verifier runs a pair. |
stale_threshold_hours | integer | yes | A pact not verified for longer than this is stale (1 … 2160). |
max_concurrent_runs | integer | yes | How many scheduled verifications may run at once in the workspace (1 … 10). |
request_window_hours | integer | yes | How long a re-publish request stays open before it expires and escalates (1 … 720). |
republish_requests_enabled | boolean | yes | Whether a stale pact opens a re-publish request. |
customised | boolean | yes | False while the workspace uses the defaults (never saved). |
updated_at | string or null | no | When they were last saved. |
VerificationSettingsInput
The workspace's verification settings, as PUT replaces them.
| Property | Type | Required | Description |
|---|---|---|---|
cadence | string | yes | on-publish, hourly, nightly or manual-only: when the hosted verifier runs a pair. |
stale_threshold_hours | integer | yes | A pact not verified for longer than this is stale (1 … 2160). |
max_concurrent_runs | integer | yes | How many scheduled verifications may run at once in the workspace (1 … 10). |
request_window_hours | integer | yes | How long a re-publish request stays open before it expires and escalates (1 … 720). |
republish_requests_enabled | boolean | yes | Whether a stale pact opens a re-publish request. |
VerificationStatus
Where a provider's verification stands.
| Property | Type | Required | Description |
|---|---|---|---|
provider | string | yes | The provider's handle. |
provider_name | string | yes | The provider's display name. |
counts | StatusCounts | yes | The KPI strip. |
pacts | array of VerificationStatusEntry | no | One per consumer, by handle. |
truncated | boolean | no | True when the provider has more than 500 consumers (the rest are left out). |
settings | EffectiveSettings or null | no | The 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.
| Property | Type | Required | Description |
|---|---|---|---|
target_ref | string or null | no | Slug or id of the verification target the run would use. Omit for a self-run. |
provider_version | string or null | no | The provider version the run would verify; needed to say which pacts it already verified. |
provider_branch | string or null | no | Its branch — the providerVersionBranch of pending pacts and matchingBranch selectors. |
selection | object | no | The run's selection (the body of …/for-verification), unchanged. |
verification | PactVerificationOptions | no | The run's options: the mutating opt-in and the provider-state choice. |
skip_already_verified | boolean | no | Whether the run would skip pacts already verified for provider_version. |
VerifyPreviewResponse
What the run would verify.
| Property | Type | Required | Description |
|---|---|---|---|
provider | string | yes | The provider's handle. |
provider_name | string | yes | Its display name. |
provider_version | string or null | no | The provider version, as checked. |
target | PreviewTarget or null | no | The target, when one was named and found. |
rules | array of PreviewRule | no | One entry per consumer-version selector. |
selected | integer | yes | How many pacts the whole selection chooses. |
will_run | integer | yes | How many of them the run would verify. |
skipped | integer | yes | How many it would skip as already verified for this provider version. |
interactions | integer | yes | How many interactions the pacts it would verify hold. |
pacts | array of PreviewPact | no | The chosen pacts, the first 100, in the run's order. |
truncated | boolean | no | Whether more pacts were chosen than pacts lists. |
states | PreviewStates | yes | Provider-state coverage. |
max_pacts_per_run | integer | no | The most pacts one run verifies. |
refusals | array of PreviewRefusal | no | Why the run would not start; empty when it would. |