The only workable solution, if you want to record from the headphone output, is to use a 'Y–cord', which comprises a TRS plug at the amp end, and two TS plugs for the interface end. It's often sold as an 'insert breakout cable' or a 'stereo–to–dual–mono output splitter' cable.
Do you need headphones to record guitar?
If you will be recording acoustic guitar, vocals or any other instrument with a microphone, you will need some good quality headphones. ... Either option will likely be a big upgrade from typical headphones, but whether it's worth the upgrade is up to you.
Can a headphone jack be used as a line in?
So can a headphone output be a workable substitute for a line level output in other situations? Sure, in a pinch it will usually work okay. Headphone amps usually aren't as free from noise and distortion as good line amps, but in many situations they can be used without significant degradation in overall sound quality.