The /Content
endpoint for each FunctionVersion lets you retrieve the code.
The SID of the Service that the Function Version resource is associated with.
GET https://serverless.twilio.com/v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid}/Content
The SID of the Service to fetch the Function Version content from.
The SID of the Function that is the parent of the Function Version content to fetch.