API / Service Contract
Demonstrate that producers and consumers have an explicit shared interface definition that supports independent change without relying on undocumented implementation assumptions or accidental compatibility.
Reference model, not an assessment. No evidence from your organisation has been reviewed, and nothing here is saved.
The interface is documented somewhere, but may not match what is actually deployed.
What it proves
What this evidence is supposed to demonstrate
Start here. If the record does not carry this claim, improving its formatting will not help.
APIs and independently changing services evolve without an explicit, current contract for behaviour, schemas, errors, compatibility and lifecycle expectations, causing breaking changes, integration failures and ambiguous producer-consumer responsibilities.
Synthesised from the Provide service contracts per API practice, which links explicit contracts and versioning/backward compatibility to reliable independent development and deployment.
Maintain explicit, versioned and verifiable contracts for APIs and independently evolving service interfaces, covering inputs, outputs, behaviour, errors, compatibility, lifecycle and ownership, and validate implementations against those contracts.
A controlled, versioned contract defining the externally observable behaviour of an API or independently evolving service interface, including operations, inputs, outputs, errors, compatibility expectations, lifecycle and ownership.
Quality
What good looks like
Published expectations for this record type. Compare your own document against them rather than rewriting it from scratch.
Minimum expected content
If any of these are missing, the record cannot carry the claim.
- Contract identity, service/API name, owner and current version/status
- Intended consumers, scope and interface purpose
- Operations, endpoints, events or callable behaviours in scope
- Request/input schemas, constraints and required/optional fields
- Response/output schemas and semantic meaning
- Expected behaviour, state changes and material side effects
- Error model, error codes/conditions and retry expectations where relevant
- Authentication/authorisation and trust expectations where they form part of the interface
- Compatibility and versioning policy
- Deprecation, migration and support-window expectations
- Material reliability, timeout, idempotency or rate/usage expectations where consumers depend on them
- Machine-readable contract/specification where appropriate
- Verification or contract-test approach
- Change history and communication expectations for consumers
What makes it credible
Signs the record reflects a real decision and a running control.
- The contract describes observable behaviour rather than internal implementation details
- Schemas and semantics are precise enough for consumers to integrate without undocumented assumptions
- Errors and exceptional behaviour are documented rather than only the happy path
- Compatibility/versioning rules make clear which changes are breaking and how they are introduced
- The contract is version controlled and can be traced to the currently supported interface
- Machine-readable specifications are used where they improve verification or client/tool interoperability
- Automated contract or compatibility checks verify that implementations match the declared interface where practical
- Consumer-impacting changes have a defined communication, migration and deprecation path
- Ownership is clear for resolving ambiguity and coordinating changes
What weakens this kind of evidence
Published anti-patterns for this record type.
- Documentation generated from implementation but never reviewed as a producer-consumer contract
- Only endpoint names are documented while schemas, semantics and errors remain implicit
- Breaking changes are released under the same contract/version with no migration path
- The contract embeds unnecessary implementation internals that prevent independent evolution
- Versioning exists in the URL or metadata but no compatibility policy defines what versions mean
- Consumers rely on behaviours not represented in the contract
- Contract tests validate examples only and miss meaningful compatibility or schema changes
- The published contract is stale compared with the deployed interface
- No named owner or change path exists when producers and consumers disagree about expected behaviour
Freshness
When it should be reviewed
Staleness is the most common reason a genuine record stops being credible.
- Expected review rhythm
- Review whenever the interface, schemas, behaviour, compatibility policy or lifecycle materially changes, and keep the current contract version aligned with the deployed/supported interface.
- Approval expectation
- The product/service owner for the interface should ensure the contract represents intended consumer and business behaviour. API/software engineers maintain the technical definition. QA and delivery/platform roles should contribute verification and deployment/change considerations. Material compatibility or lifecycle changes should be agreed with affected consumers; WAG does not infer one universal risk-acceptance role.
Ownership
Who produces it, owns it and relies on it
Producing the record and owning the decision it captures are different jobs.
Produces and contributes
Gathers the evidence and completes the record.
Consumes and reviews
Relies on this record to judge whether the relevant control is operating.
API Product Owner is normalised to Product / Service Owner and API Developer to Software Engineer using the migration taxonomy. QA and DevOps consumer roles are source-supported. Technical Writer is an explicit source role but remains unmapped in the canonical taxonomy and is therefore preserved only in source provenance rather than forced into another role family. No accountable role is inferred.
The product/service owner for the interface should ensure the contract represents intended consumer and business behaviour. API/software engineers maintain the technical definition. QA and delivery/platform roles should contribute verification and deployment/change considerations. Material compatibility or lifecycle changes should be agreed with affected consumers; WAG does not infer one universal risk-acceptance role.
Challenge
Questions that expose weak evidence
Published challenge questions for this record. Each one is designed to surface evidence that exists but does not hold.
Ask these in the room
- What behaviour do consumers rely on that is not explicitly represented in the contract?
- Which changes are considered breaking, and how would a producer know before release?
- How do we prove that the deployed implementation still conforms to the published contract?
- Are errors, retries, timeouts and other failure behaviours clear enough for consumers to build resilient integrations?
- How are consumers identified and notified when a version is deprecated or compatibility changes?
- Which parts of the contract are truly consumer-visible obligations and which are unnecessary implementation detail?
What it supports
What this evidence holds up
If this record is weak, these are the responsibilities and practices that lose their proof.
Responsibilities it supports
Each of these responsibilities relies on this record to show it is being met.
- Service architecture reliability (REL3)
Maintain explicit service and API contracts
Every interface a consumer depends on has a published contract, so services can change independently without surprising each other.
Practices that expect it
6 published practices name this record as expected evidence. AWS traceability is secondary here — it is shown so the mapping can be checked.
- REL03-BP02Build services focused on specific business domains and functionality
- REL03-BP03Provide service contracts per API
- REL04-BP02Implement loosely coupled dependencies
- REL04-BP04Make mutating operations idempotent
- REL05-BP05Set client timeouts
- REL06-BP07Monitor end-to-end tracing of requests through your system
Who relies on it
API Product Owner is normalised to Product / Service Owner and API Developer to Software Engineer using the migration taxonomy. QA and DevOps consumer roles are source-supported. Technical Writer is an explicit source role but remains unmapped in the canonical taxonomy and is therefore preserved only in source provenance rather than forced into another role family. No accountable role is inferred.
Improve
Common improvement patterns in this kind of record
These are the ways records of this kind commonly fall short across organisations. They are read-across patterns to compare against, not observations about your evidence.
- The record is stale: it describes a state of the world that has since changed.
- InsteadTie the review to a trigger — a material change, a release, a commitment renewal — rather than to a calendar habit.
- No decision or outcome is recorded, only context and options.
- InsteadState what was decided, who decided it, when, and what was rejected.
- The template is completed but nobody uses the result.
- InsteadPoint at least one recurring forum, control or release gate at the record, so it has a consumer.
- No named owner or reviewer: the record exists but belongs to nobody.
- InsteadName the accountable role for the decision separately from whoever produced the document.
- The record describes intent rather than actual operation.
- InsteadAdd the execution trail — dates, instances, exceptions — so the record shows the control running.
- The record is not connected to any measured outcome.
- InsteadReference the measure or report that would show whether the decision worked out as expected.
Guide interpretation — proposed by the Well-Architected Guide, not taken from the AWS framework.