v4, v7, nanoid, custom
curl -s 'https://api.whittly.dev/v1/uuid?version=4&count=5' \
-H 'Authorization: Bearer $WHITTLY_API_KEY'
const res = await fetch(
'https://api.whittly.dev/v1/uuid?version=4&count=5',
{ headers: { Authorization: 'Bearer ' + apiKey } }
);
const data = await res.json();
const { data } = await axios.get(
'https://api.whittly.dev/v1/uuid?version=4&count=5',
{ headers: { Authorization: 'Bearer ' + apiKey } }
);
UUIDs (Universally Unique Identifiers) are 128-bit identifiers designed to be unique across time and space without a central coordinator. v4 UUIDs are random, v7 UUIDs are time-ordered (better for database primary keys), and NanoID generates shorter URL-safe IDs.