For AI agents: the complete documentation index is available at /hclapi/llms.txt, the full documentation bundle is available at /hclapi/llms-full.txt, and this page is available as Markdown at /hclapi/docs/manifest/functions/encoding/base64_decode.md.

base64_decode

Decodes a standard Base64 encoded string back to plain text.

Signature

base64_decode(str: string) -> string

Parameters

ParameterTypeRequiredDescription
strstringyesThe Base64 string to decode

Return value

Returns the documented result for the function signature.

Example

respond {
  status = 200
  body = { value = base64_decode(ctx.request.headers.x_token) }
}