Get Environment File Diff
Get Environment File Diff
Returns a unified diff (git-compatible format) comparing the environment file version to main branch or a specific version. The filePath should be URL-encoded if it contains special characters (e.g., pages%2Findex.mdx for pages/index.mdx).
GET
Get Environment File Diff
Authorizations
Use a JWT bearer token or a Veryfront API key in the Authorization header.
Path Parameters
Environment name (e.g., production, preview)
File path (URL-encoded, e.g., pages%2Findex.mdx)
Query Parameters
Source version ID to compare from (default: main branch current version)
Number of context lines around changes (default: 3)
Required range:
0 <= x <= 10