---
title: "verify active expectations against a Pact contract"
method: PUT
path: "/mockserver/pact/verify"
tags: ["pact"]
---

# verify active expectations against a Pact contract

`PUT /mockserver/pact/verify`

## Request

- Base URL: `http://localhost:1080`
- URL: `http://localhost:1080/mockserver/pact/verify`
- Auth: none declared

Verifies the supplied Pact contract (JSON) against the current expectations and returns the verification result. Returns 202 when verification passes and 406 when it fails.

## Request body

- object: Pact contract document to verify against

## Response `202`

Pact verification passed

- object: Pact verification result

## Other responses

- `400`: empty or invalid Pact contract
- `406`: Pact verification failed

---

[API](https://skmtc.dev/mock-server/apis/mockserver-api.md) · [All operations](https://skmtc.dev/mock-server/apis/mockserver-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mock-server/apis/mockserver-api/revisions/9239b693996e?raw)
