Skip to content
POST AI agent ready /v1/uuid/v4

UUID v4 API - Free Random UUID Generator

Returns a single cryptographically random UUID v4 string. UUID v4 uses 122 bits of randomness and is the most widely adopted UUID version for primary keys and correlation IDs.

Code examples

curl -X POST https://api.botoi.com/v1/uuid/v4 \
  -H "Content-Type: application/json" \
  -d '{}'

When to use this API

Database primary keys

Generate UUID v4 identifiers before inserting rows so your client can reference the record immediately without waiting for a database sequence.

Distributed tracing

Assign a UUID v4 to each incoming request and propagate it through microservices for end-to-end trace correlation.

Frequently asked questions

Are UUID v4 values guaranteed to be unique?
Collisions are theoretically possible but astronomically unlikely. With 122 random bits, you would need to generate about 2.7 quintillion UUIDs to have a 50% chance of one collision.
What is the difference between UUID and GUID?
They are the same format. GUID (Globally Unique Identifier) is the term Microsoft uses. UUID (Universally Unique Identifier) is the RFC 4122 standard name.
Should I use UUID v4 or UUID v7 for database keys?
UUID v7 is better for database keys because it is time-ordered, which keeps B-tree indexes efficient. UUID v4 is ideal when ordering does not matter.
Can I generate multiple UUIDs at once?
Yes. Use the /v1/uuid/batch endpoint to generate up to 100 UUIDs in a single request.

Get your API key

Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.