Add ability to setup an API from a role

Btw, keep in mind when adding comments that this is a public repo! 
Is that a typo for 'imagine'?