Use the Response Transformer policy to transform response headers before the response is sent to the client. You can add, remove, or modify response headers in your Proxy Endpoint responses.
You can only apply this policy to your Proxy endpoints and Proxies.
You can use this policy in the following use cases.
Data normalization: This can be used to standardize the format of the data returned by the API, making it easier for clients to consume. For example, you could use a response transformation policy to convert all dates to a standard format, such as ISO 8601.
Data security: This can be used to redact sensitive data from the response data, such as credit card numbers or social security numbers. For example, you could use a response transformation policy to replace all credit card numbers with asterisks or even hashing using encodings such as MD5 SHA 256/512.