What is API documentation drift?
API documentation drift occurs when an API’s documentation and its implementation describe different behavior. An endpoint may return a field the guide no longer names, require an undocumented parameter, or use a unit that an example explains incorrectly. Start an investigation by recording the exact operation, API version, documentation revision and observed response. A report without those identifiers can confuse different versions or account configurations.
Identify which two things disagree
Separate the written contract, the implementation and the consuming application. OpenAPI describes operations, parameters, request bodies and responses. Generated documentation can agree with that description while the deployed implementation differs. A client can also depend on behavior that neither the specification nor the guide promises. Check each relationship before assigning the fix.
| Comparison | Example | Next action |
|---|---|---|
| Guide versus declared contract | A sample omits a required request property. | Correct the sample and execute it against the intended version. |
| Declared contract versus observed response | A response omits a property declared required. | Confirm version, status, media type and full capture before reporting a mismatch. |
| Consumer assumption versus provider behavior | A numeric amount is interpreted in the wrong units. | Consult authoritative unit documentation and application facts. |
Work through a missing-field example
Illustrative JSON: the documented successful response includes display_name, but a captured response contains only name. If display_name is required by the selected response schema, this is a structural mismatch. A field appearing in properties without being required does not establish the same violation. Neither spelling proves that the values mean the same thing or authorizes a rename.
{
"documented": {"id":"customer-123","display_name":"Ada"},
"observed": {"id":"customer-123","name":"Ada"}
}Reproduce with comparable evidence
Use a complete permitted capture from the same method, path, API version, response status and content type. Keep authentication scope, tenant, feature flags and locale comparable. Validate against the matching schema, then exercise the application operation that depends on the field. Redact credentials and personal data before sharing evidence. If you only have truncated content, label the comparison incomplete instead of reporting that the provider removed a field.
Choose the correction and verify it
If the implementation violates the intended contract, correct or escalate the implementation. If the change is intentional, update the specification, guide and client migration together. Add a regression that fails on the original mismatch and passes after the correction. Preserve the source revision and test result so the next reader can reproduce the decision. Keep descriptions of statistical behavior separate from structural acceptance: two numeric values can satisfy the same schema while using different units.
Use AGINDOW at the observed boundary
For local evaluation, the browser playground compares captured GET responses with a supplied JSON Schema and separately runs configured statistical comparisons. The SDK statistical path needs explicitly selected fields and comparable baseline/current windows. The background OpenAPI comparator is a separate configured workflow. These paths do not automatically rewrite documentation or discover a safe migration. A zero-finding result without sufficient coverage is inconclusive.
About this guide
Written and reviewed 27 November 2026 by the AGINDOW documentation team. Product behavior follows the current beta documentation edition. Evaluate integration behavior locally before relying on it in production.