1.Have you enabled the API connection on your dashboard yet?
Settings tab > Settings > enable API checkbox
2.Then you must enable API for each user you would like (must be full user)
Settings tab > Users > (choose user) > check the API checkbox > click Send API key
Retrieve key and use as key to set up connection.