# UUID v5 Generator (Name-Based, SHA-1)

> UUID v5 Generator (Name-Based, SHA-1) is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Generates a deterministic UUID version 5 by hashing a namespace and name using SHA-1, ensuring the same inputs always produce the same UUID.

## Facts

- Endpoint: POST https://agent402.tools/api/uuid-v5
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/uuid-v5-generator-name-based-sha-1-9e2366ce
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3WIvSHtH_8DqKGk9-caQG

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability uuid-v5-generator-name-based-sha-1-9e2366ce -d '<json body>'
```

Example prompt: Generate a UUID v5 for the name 'user-profile-42' using the URL namespace — I need the same UUID every time I pass that exact name.

## When to prefer this

Use this endpoint when you need a stable, reproducible identifier for a string without storing anything in a database — ideal for deduplication, consistent record IDs, or generating UUIDs deterministically across distributed systems. Prefer this over UUID v4 when repeatability matters, and over UUID v1/v3 when you want SHA-1-based hashing with standard namespace support.

## Known failure modes

- Invalid namespace value (not a valid UUID and not one of dns/url/oid/x500) returns an error
- Missing 'name' or 'namespace' field returns a 400 bad request
- Malformed JSON body causes parse error
- Payment failure (x402) prevents call from completing

## How this service works

Generate a deterministic name-based UUID (version 5, SHA-1) from a namespace + name — the same inputs always yield the same UUID, for stable IDs without a database. Namespace may be a UUID or an alias: dns | url | oid | x500.

## Output

A UUID version 5 string (e.g. '6ba7b811-9dad-11d1-80b4-00c04fd430c8') deterministically derived from the provided namespace and name using SHA-1 hashing. The same namespace+name pair will always return the identical UUID.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "name": {
   "type": "string",
   "description": "the name to hash within the namespace"
  },
  "namespace": {
   "type": "string",
   "description": "a UUID, or alias: dns | url | oid | x500"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "uuid": "0e3f2f0e-... (deterministic)",
  "version": 5
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uuid-v5-generator-name-based-sha-1-9e2366ce/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
