Español

Lee este artículo en español.

How to generate UUIDs in n8n (one node)

If you automate with n8n, there are moments when you need a unique identifier: naming a file so it never clashes with another, creating a record with an ID that doesn't depend on a database, or tagging each run of a flow. With the regular HTTP Request node and the Cofferdock API, you generate v4 UUIDs instantly.

Quick note: n8n has no dedicated "generate UUID" node (you can write one by hand with a Code expression, but if you're already using HTTP Request elsewhere in the flow, this is simpler). Here's how, field by field.

What you'll get

You ask for how many UUIDs you need (1 to 100) and get them back as a list, generated with the server's own cryptographic random generator. One UUID or a hundred, in the same call.

Common uses in n8n:

What you need

Step by step in the HTTP Request node

Add an HTTP Request node and fill it in like this:

{ "count": 1 }

The response includes uuids, always as a list (even when you ask for just one), ready to use with {{ $json.uuids[0] }}.

A quick example

Say you create a new record with its own ID, without relying on a database's auto-increment:

  1. A trigger (a webhook or a new Google Sheets row) with the record's data.
  2. The HTTP Request node above, requesting { "count": 1 }.
  3. A Set node that adds {{ $json.uuids[0] }} as an id field before saving the record.

Every record is born with a unique identifier, without touching the database.

Options you can tweak

Add it in the same JSON body:

OptionDefaultWhat it does
count1How many UUIDs to generate at once (1 to 100).

Prefer to see it in code?

The same call with curl:

curl -X POST "https://api.cofferdock.com/generate-uuid" \
  -H "x-api-key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"count": 5}'

How much does it cost?

Each call uses 1 credit from your plan, whether you generate 1 UUID or 100. Every Cofferdock tool draws from the same pool of credits.

FAQ

Does n8n have a native node to generate UUIDs? Not directly via an API call; you do it with the HTTP Request node calling the Cofferdock API.

What UUID version does it generate? v4 (random), the most common choice for identifiers with no encoded meaning.

Can I request several UUIDs at once? Yes, up to 100 in the same call, with count.

Can UUIDs repeat? The odds of a collision are effectively zero: there are more possible combinations than atoms on Earth.

Related guides

Try it yourself

You'll find the full instructions, with copy-paste examples, on the UUID generator page. And if you don't have an account yet, you can create one for free and build your first flow today.