--- title: "Encoding Macros" slug: "encoding-macros" updated: 2023-01-06T15:50:11Z published: 2023-01-06T15:50:10Z canonical: "docs.catchpoint.com/encoding-macros" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.catchpoint.com/llms.txt > Use this file to discover all available pages before exploring further. # Encoding Macros ## Overview The Encoding macros are primarily used in scripts written for the API monitor, but they can be used with the Transaction monitor as well. ## Example Some APIs require content to be encoded in various formats. Currently, Catchpoint supports the following: `${hex("<content to encode>")}` `${base64("<content to encode>")}` `${urlencode("<content to encode>")}` `${urldecode("<content to decode>")` Additionally, the macro can be nested as shown below: `${hex("${hash('md5','${var(key)},${var(secret)}')}")};`