ah indeed its simpler than what i did:
httpnode for login —>function node to make the request sentence with login and token —-> httpnode to get the id
Thank you Bryan and Jeff
Now i have to use it to configure a mqtt broker having this serial number in its client id. Possible ?