do some APIs need to have sub-users, and sub-users need a paid version, right? "sg.addRequestHeader("on-behalf-of", .." must the paid version be used if there is such a code in the program?
Twilio SendGrid developer evangelist here.
The on-behalf-of
SubUser header takes a SubUser username as an argument, so yes, it requires your account to have SubUsers and yes, you need to have a Pro Email API or an Advanced Marketing Campaigns subscription to use SubUsers.