<PackageReference Include="Refit" Version="15.2.0" />

Refit.EncodedAttribute

public sealed class EncodedAttribute : Attribute
Marks a parameter value as already URL-encoded so Refit passes it through verbatim instead of escaping it — the equivalent of Retrofit's encoded = true. Applies to path segment values (including round-tripping {**param} segments), query values, and QueryNameAttribute flags. The caller becomes responsible for producing valid encoded output; malformed values are sent as-is.