Diff two environments
Compares the secret keys of two environments and reports what is added, removed or changed. Useful before promoting configuration between environments.
/secrets/diffAuthorizationBearer token (varsafe API token) · headerrequiredA team-scoped API token, created self-serve in the dashboard and presented as Authorization: Bearer <token>. A token can be restricted to specific projects and environments and to read-only access. Intended for CI pipelines and unattended automation.
AuthorizationBearer token (varsafe CLI grant) · headerrequiredAn opaque, database-backed credential obtained through the device authorization grant (POST /auth/cli/device) and revocable on the spot. Presented as Authorization: Bearer <token>. A route accepts it only when it declares CLI access; the scopes it must hold are listed per operation under x-varsafe-cli-scopes.
__Secure-varsafe.session_tokenAPI key · cookierequiredThe browser session cookie issued to the dashboard (named varsafe.session_token without the __Secure- prefix on non-production deployments). Listed for completeness: it authorizes the same routes, but programmatic callers should use an API token or a CLI grant.
projectIdstring<uuid>requiredsourceEnvstringrequiredtargetEnvstringrequiredSuccess.
projectstringrequiredsourcestringrequiredtargetstringrequiredonlyInSourcestring[]requiredonlyInTargetstring[]requireddifferentstring[]requiredidenticalstring[]requiredThe request failed validation. field names the offending input.
statusCodeintegerrequiredHTTP status code, repeated in the body.
codestringrequiredStable machine-readable error code, e.g. SECRET_NOT_FOUND or FORBIDDEN. Branch on this, never on the message.
messagestringrequiredHuman-readable explanation. Wording may change.
fieldstringThe offending request field, present on validation failures.
No credential was presented, or it is invalid or revoked.
statusCodeintegerrequiredHTTP status code, repeated in the body.
codestringrequiredStable machine-readable error code, e.g. SECRET_NOT_FOUND or FORBIDDEN. Branch on this, never on the message.
messagestringrequiredHuman-readable explanation. Wording may change.
fieldstringThe offending request field, present on validation failures.
The credential is valid but lacks the required scope, role or team access.
statusCodeintegerrequiredHTTP status code, repeated in the body.
codestringrequiredStable machine-readable error code, e.g. SECRET_NOT_FOUND or FORBIDDEN. Branch on this, never on the message.
messagestringrequiredHuman-readable explanation. Wording may change.
fieldstringThe offending request field, present on validation failures.
The resource does not exist, or is not visible to this credential.
statusCodeintegerrequiredHTTP status code, repeated in the body.
codestringrequiredStable machine-readable error code, e.g. SECRET_NOT_FOUND or FORBIDDEN. Branch on this, never on the message.
messagestringrequiredHuman-readable explanation. Wording may change.
fieldstringThe offending request field, present on validation failures.
Rate limited. Retry after the interval named in the response.
statusCodeintegerrequiredHTTP status code, repeated in the body.
codestringrequiredStable machine-readable error code, e.g. SECRET_NOT_FOUND or FORBIDDEN. Branch on this, never on the message.
messagestringrequiredHuman-readable explanation. Wording may change.
fieldstringThe offending request field, present on validation failures.
Unexpected server error. The body never carries internal detail.
statusCodeintegerrequiredHTTP status code, repeated in the body.
codestringrequiredStable machine-readable error code, e.g. SECRET_NOT_FOUND or FORBIDDEN. Branch on this, never on the message.
messagestringrequiredHuman-readable explanation. Wording may change.
fieldstringThe offending request field, present on validation failures.