Automating credential creation

Hi everyone,
So, I am trying to automate an automation :grinning:
Let’s say I have an automation using Stripe and I would like to replicate that X times for X different accounts.
If I grab the api key for each account via plain text and would like to automate their insertion on the credentials_entity table and associate them with the right flow I would need to know what Algorithm and Encoding too choose from in the crypto node, am I thinking this right?
I would then encrypt it and submit it to the desired table. Any clues on this?

Thanks

Yes, that would be possible. I would however recommend using the internal n8n API instead. Check what kind of request the UI makes when new credentials get created and then do the same. n8n will then take care of saving them to the DB and encrypting them correctly for you.

1 Like

Thank you @jan , will give that a try!

1 Like

@jan , that did work, thank you so much for pointing me in the right direction

1 Like