not sure if this is possible - but I would like to get a passcode from the Authy app via API ( so I can log in programmatically ).
Is that possible?
Twilio developer evangelist here.
There is not an API for this. Adding 2FA to an account is intended to stop automatic logins and require a user to produce a code from something they have (in this case, their phone number and authorised device), so side-stepping this is not supported or recommended.