Skip to content

Generate a v5 UUID

GET
/uuid/v5

Parameters

Query Parameters

namespace*

The namespace to use for the UUID

The following namespaces are supported:

  • dns - 6ba7b810-9dad-11d1-80b4-00c04fd430c8
  • url - 6ba7b811-9dad-11d1-80b4-00c04fd430c8
  • oid - 6ba7b812-9dad-11d1-80b4-00c04fd430c8
  • x500 - 6ba7b814-9dad-11d1-80b4-00c04fd430c8
  • custom - any UUID in string form
Typestring
Required
name*

The name to use for the UUID.

Typestring
Required
format

An optional format to use for the UUID. If not provided, the default format (hyphenated) will be used.

Typestring
Enumhyphenated, simple, urn, braced

Responses

The generated UUID
string

Samples

cURL
curl -X GET https://httpbin.rs/uuid/v5
JavaScript
fetch("https://httpbin.rs/uuid/v5")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("https://httpbin.rs/uuid/v5");
Python
import requests
response = requests.get("https://httpbin.rs/uuid/v5")
print(response.json())
Powered by VitePress OpenAPI