Executable contracts
How an individual consumer and provider should interact.
Turn specified system interactions into runnable evidence.
How an individual consumer and provider should interact.
How multiple services participate in a business process.
Both working together to make intended interactions continuously verifiable.
Describe interfaces with OpenAPI and the cross-service workflow with Arazzo. Generate intelligent mocks and execute the workflow. Engineers and AI coding agents can then implement different services independently against those same expectations. Verify every implementation against its contract and the shared workflow. Replace mocks progressively while continuing to execute the workflow and detect drift. Carry agreed expectations into deployment checks, and use operational evidence to refine the architecture.
Runs locally in your browser. No live services, Specmatic backend or AI agents.
These minimal versioned examples describe one payment operation and a one-step workflow. The five-step checkout above remains an educational simulation.
{
"openapi": "3.1.0",
"info": {
"title": "Payment API",
"version": "1.0.0"
},
"paths": {
"/payments": {
"post": {
"operationId": "authorisePayment",
"responses": {
"200": {
"description": "Payment authorised",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"authorised"
],
"properties": {
"authorised": {
"type": "boolean"
}
}
}
}
}
}
}
}
}
}
}Download OpenAPI example{
"arazzo": "1.0.1",
"info": {
"title": "Payment workflow",
"version": "1.0.0"
},
"sourceDescriptions": [
{
"name": "payment",
"url": "./payment.openapi.json",
"type": "openapi"
}
],
"workflows": [
{
"workflowId": "checkout",
"steps": [
{
"stepId": "authorise",
"operationId": "$sourceDescriptions.payment.authorisePayment",
"successCriteria": [
{
"condition": "$statusCode == 200"
}
]
}
]
}
]
}Download Arazzo exampleExamples checked against the linked OpenAPI 3.1.0 and Arazzo 1.0.1 specifications.
Interface descriptions define boundaries. Workflow descriptions connect calls into an outcome. Execution tools make those descriptions verifiable.
Tool support varies. Specifications, mocks, contract testing, workflow execution, compatibility checks and governance are complementary capabilities, not interchangeable guarantees.