Skip to content

UUID

Generate UUIDs and ULIDs, or decode an existing one to inspect its version, variant, and embedded timestamp.

FieldTypeRequiredDescription
actionstringYesgenerate or decode
formatstringNov4, v7, or ulid. Used with generate. Defaults to v4
valuestringNoUUID or ULID to decode. Required when action is decode
FieldTypeDescription
valuestringGenerated UUID/ULID or the decoded input
formatstringFormat type
decodedobjectPresent when action is decode
decoded.versionintegerUUID version
decoded.variantstringUUID variant
decoded.timestampstringEmbedded timestamp (v7 / ULID only)
decoded.is_ulidbooleanWhether the value is a ULID
Terminal window
curl -X POST https://morso.dev/api/uuid \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"action": "generate", "format": "v4"}'
{
"value": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"format": "v4"
}
Terminal window
curl -X POST https://morso.dev/api/uuid \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"action": "generate", "format": "ulid"}'
{
"value": "01HYX3KPZQ8RJGQ2VT4BXCN5EM",
"format": "ulid"
}
Terminal window
curl -X POST https://morso.dev/api/uuid \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"action": "decode", "value": "018f6b1a-5b3c-7d4e-8f9a-1b2c3d4e5f60"}'
{
"value": "018f6b1a-5b3c-7d4e-8f9a-1b2c3d4e5f60",
"format": "v7",
"decoded": {
"version": 7,
"variant": "RFC 4122",
"timestamp": "2026-05-06T12:00:00Z",
"is_ulid": false
}
}