/v1/diff/{from}/{to} endpoint returns an item-level diff between any two version directories the server still retains. It first looks for a precomputed diff-from-{from}.json inside the to version directory; if there isn’t one, it computes the diff on demand.
Use this endpoint when you need a diff that isn’t simply “the latest” — for example, replaying a sequence of patches against an older cache or comparing a specific historical pair.
Endpoint
Path parameters
Manifest ID of the older version. Must match
^[A-Za-z0-9._-]+$, be 1–128 characters, and must not start with a dot or equal current (those names are reserved for pipeline internals).Manifest ID of the newer version. Same validation rules as
from.Request
TheUser-Agent header is required for all requests to the Astra API. Use the format AppName/Version (+URL).
Response fields
HTTP status code of the response (e.g.
200).Response
Errors
Returned when either
from or to is empty, longer than 128 characters, contains characters outside [A-Za-z0-9._-], equals ./.., starts with a dot, or equals current.Returned when either version directory does not exist on disk. Older versions are pruned by retention.
Returned when a precomputed diff file exists but is unreadable or corrupt.