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/system/uuid.md.

uuid / uuid_v4

Generates a cryptographically secure random UUID version 4 string. uuid() is an alias to uuid_v4().

Signature

uuid() -> string
uuid_v4() -> string

Parameters

ParameterTypeRequiredDescription
NoneNo parameters

Return value

Returns the documented result for the function signature.

Example

respond {
  status = 201
  headers = { "X-Request-ID" = uuid() }
  body = { session_id = uuid_v4(), status = "created" }
}

uuid() is an alias for uuid_v4().