Generar UUID
Generar UUID es una API que crea identificadores únicos (UUID v4) para usar como ID de un registro, una clave de idempotencia o cualquier cosa que necesite un identificador que no se repita nunca.
Cómo funciona
Le pides cuántos UUID necesitas y te los devuelve generados al momento, con el generador criptográfico del propio Node.js: no guarda ni reutiliza ninguno.
Lo único que necesitas
- Tu API key. La creas en tu panel con "+ Crear llave". Se muestra una sola vez, así que cópiala y guárdala.
- En tu plataforma de automatización, un paso de tipo "HTTP Request" / "Hacer una petición HTTP" (lo tienen n8n, Make, Zapier, Pipedream…).
Cómo usarlo en n8n (paso a paso)
En el nodo HTTP Request:
- Method:
POST - URL:
https://api.cofferdock.com/generate-uuid - Send Headers: actívalo y añade dos:
x-api-key= tu llave, yContent-Type=application/json - Send Body: actívalo → Body Content Type: JSON →
{}(para 1 UUID) o{ "count": 5 }(para varios)
En Make (módulo HTTP → Make a request): mismo método y URL, Body type: Raw, Content type: JSON, con el mismo cuerpo.
Opciones (dentro del JSON)
| Opción | Por defecto | Para qué sirve |
|---|---|---|
count | 1 | Cuántos UUID generar de una vez (hasta 100). |
Resumen de la API
- Endpoint:
POST https://api.cofferdock.com/generate-uuid - Auth: cabecera
x-api-key: TU_LLAVE. - Entrada:
application/json, cuerpo opcional (puede ir vacío). - Motor:
crypto.randomUUID()nativo de Node.js (UUID v4, generador criptográfico). - Límites: 30 peticiones/min por IP. 1 llamada = 1 crédito, sin importar cuántos UUID pidas.
Opciones
| Opción | Por defecto | Descripción |
|---|---|---|
count | 1 | Entero entre 1 y 100 (400 si no cumple). |
Ejemplos
curl:
curl -X POST "https://api.cofferdock.com/generate-uuid" \
-H "x-api-key: TU_LLAVE" \
-H "Content-Type: application/json" \
-d '{"count":5}'
JavaScript (Node 18+):
const r = await fetch('https://api.cofferdock.com/generate-uuid', {
method: 'POST',
headers: { 'x-api-key': 'TU_LLAVE', 'Content-Type': 'application/json' },
body: JSON.stringify({ count: 5 }),
});
const { uuids } = await r.json();
Python:
import requests
r = requests.post(
'https://api.cofferdock.com/generate-uuid',
headers={'x-api-key': 'TU_LLAVE', 'Content-Type': 'application/json'},
json={'count': 5},
)
print(r.json())
Respuesta
{ "success": true, "uuids": ["a1b2c3d4-e5f6-4789-a123-456789abcdef", "..."],
"meta": { "count": 5, "used": 12, "remaining": 488 } }
Lo que recibes
Siempre un array en uuids, aunque pidas solo 1, para no tener dos formas de respuesta distintas.
Generate UUID
Generate UUID is an API that creates unique identifiers (UUID v4) to use as a record ID, an idempotency key, or anything that needs an identifier that never repeats.
How it works
You ask for however many UUIDs you need and get them back generated on the spot, using Node.js's own cryptographic generator: none are stored or reused.
All you need
- Your API key. Create it in your dashboard with "+ Create key". It's shown only once, so copy and save it.
- In your automation platform, an "HTTP Request" step (n8n, Make, Zapier, Pipedream… all have one).
How to use it in n8n (step by step)
In the HTTP Request node:
- Method:
POST - URL:
https://api.cofferdock.com/generate-uuid - Send Headers: on → add two:
x-api-key= your key, andContent-Type=application/json - Send Body: on → Body Content Type: JSON →
{}(for 1 UUID) or{ "count": 5 }(for several)
In Make (HTTP → Make a request module): same method and URL, Body type: Raw, Content type: JSON, with the same body.
Options (inside the JSON)
| Option | Default | What it does |
|---|---|---|
count | 1 | How many UUIDs to generate at once (up to 100). |
API overview
- Endpoint:
POST https://api.cofferdock.com/generate-uuid - Auth: header
x-api-key: YOUR_KEY. - Input:
application/json, optional body (can be empty). - Engine: Node.js's native
crypto.randomUUID()(UUID v4, cryptographic generator). - Limits: 30 requests/min per IP. 1 call = 1 credit, no matter how many UUIDs you ask for.
Options
| Option | Default | Description |
|---|---|---|
count | 1 | Integer between 1 and 100 (400 otherwise). |
Examples
curl:
curl -X POST "https://api.cofferdock.com/generate-uuid" \
-H "x-api-key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"count":5}'
JavaScript (Node 18+):
const r = await fetch('https://api.cofferdock.com/generate-uuid', {
method: 'POST',
headers: { 'x-api-key': 'YOUR_KEY', 'Content-Type': 'application/json' },
body: JSON.stringify({ count: 5 }),
});
const { uuids } = await r.json();
Python:
import requests
r = requests.post(
'https://api.cofferdock.com/generate-uuid',
headers={'x-api-key': 'YOUR_KEY', 'Content-Type': 'application/json'},
json={'count': 5},
)
print(r.json())
Response
{ "success": true, "uuids": ["a1b2c3d4-e5f6-4789-a123-456789abcdef", "..."],
"meta": { "count": 5, "used": 12, "remaining": 488 } }
What you get back
Always an array in uuids, even if you only ask for 1, so there's just one response shape to handle.