How to get n8n cloud version via api

how to get n8n cloud version via api?

something like this:

curl https://sample.app.n8n.cloud/api/v1/version

then current version will be the output.

1 Like

Hey @nelajc,
Welcome to the community,

I don’t think GET /api/v1/version is a thing on n8n Cloud (it’s not in the public API docs), so that curl won’t work as-is.
If your goal is just “is the instance reachable”, you can use the health endpoint:
curl -i https://sample.app.n8n.cloud/healthz

But if you specifically need the exact n8n version, there isn’t a documented REST API endpoint for it right now.

Let me know if it helps

2 Likes

Hi @nelajc!
You can do what Jon have said here:

Read this conversation here!

Cheers!

1 Like

@nelajc Using the Settings Endpoint (Recommended)

curl -X GET https://sample.app.n8n.cloud/rest/settings \
  -H "X-N8N-API-KEY: your_api_key_here"

This returns settings information that includes the n8n version.

Does this help?

1 Like

hi @Anshul_Namdev we used /rest/settings to get current n8n version before. but i think, it was already disabled for security risk.

for /metrics i don’t have it on my end. is this something need to enable?

1 Like

hi @Orionpax we used /rest/settings to get current n8n version before. but i think, it was already disabled for security risk.

@Mayank1024 we used /rest/settings to get current n8n version before. but i think, it was already disabled for security risk. hopefully they will put it back with auth token. it really helps us monitors our n8n version to keep us updated.

@nelajc I think they do not provide that endpoint on the cloud NOW, so i think you can either switch to self hosted that might provide more customization and endpoint readability: