Go to trello developer portal. Login if you are not logged in, Click menu Sandbox from top menu bar. Now you will see a link says “Grab your Api key here“. On that page you will see api key and next thing you need is api token. if you read the first paragraph then it says something like the below screenshot and click the link says “Token” to generate it
So, I think you already get the api key and token, Now need to find the id of the list you want to put cards, this part is bit tricky but not complex and interesting though. Go to your desired board, click any card for your desired list. The card url will be something like this https://trello.com/c/evfIvzSC/8-test-card , so copy your card url and join .json at end , means if your card url is https://trello.com/c/evfIvzSC/8-test-card then after adding .json at end it will be https://trello.com/c/evfIvzSC/8-test-card.json , hit in browser. Search the word “idList” , you will get it’s value. So we get the list(idList) id value as well. So you trello integration part is done.