---
title: "gsql_uuid_v4()"
component: "gsql-ref"
version: "3.11"
module: "ddl-and-loading"
html_url: "/gsql-ref/3.11/ddl-and-loading/functions/token/gsql_uuid_v4"
canonical_url: "https://www.tigergraph.com/docs/gsql-ref/3.11/ddl-and-loading/functions/token/gsql_uuid_v4"
markdown_url: "https://www.tigergraph.com/docs/gsql-ref/3.11/ddl-and-loading/functions/token/gsql_uuid_v4.md"
---

[View as HTML](https://www.tigergraph.com/docs/gsql-ref/3.11/ddl-and-loading/functions/token/gsql_uuid_v4)

# gsql_uuid_v4()

Returns a version-4 [universally unique identifier (UUID)](https://en.wikipedia.org/wiki/Universally%5Funique%5Fidentifier#Version%5F4%5F%28random%29).

## Syntax

`gsql_uuid_v4()`

## Parameters

None.

## Return type

`STRING`

## Example

The function doesn't take any arguments and returns a version-4 UUID:

gsql_uuid_v4() -> "3e9ca3e6-5ad4-4a32-9cfc-9f53367bd420"
