Does anyone have a sample to call external API (other system) from Function with Authentication

Does anyone have a sample to call external API (other system) from Function with Authentication

I need to send a message to another system using their API from Contact.

Other system requires authentication and about 5-10 variables.   Does anyone have a sample function code that acomplishes that.  I cant seem to find one.