Did the rest api for N8N cloud change in version 1.82? - Solved

Describe the problem/error/question

Can’t access new cloud account of client using rest api running version 182.1. It is working on cloud account of other client running older version of n8n.

It’s realy hard to find documentation on this. Can someone point me in the right direction. Would like to keep upto date in case version changes break code.

What is the error message (if any)?

In postman when debugging I get as response

{
“code”: “invalid_type”,
“expected”: “string”,
“received”: “undefined”,
“path”: [
“emailOrLdapLoginId”
],
“message”: “Required”
}

in the other account running 180.5 I get successful response and can use to continue.

Please share your workflow

[
https://[client].app.n8n.cloud/rest/login

Share the output returned by the last node

Not applicaable

Information on your n8n setup

  • n8n version:
    Version 1.80.5 (working) 1.82.1 not working
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
    cloud and self hosted
  • Operating system:
    Linux and windows

hello @pranicvivek

where did you get that endpoint? n8n public api has a different format of /api/v1/<endpoint>

/rest api was an internal one, so it may change without any notes.

1 Like

Hi there,

I managed to fix it. The official api doesn’t work on trial accounts and I like to offer our clients a try before you buy option. If the api would also work on trial accounts I would use that of course. We also have pro accounts and self hosted accounts. Api with key works fine and is documented.

If anyone is having the same issue I solved it. You have to change the email label in the body to emailOrLdapLoginId instead of just email as it used to be.

Thanks for responding though.