You can ask TrainAsOne to get in touch with Zwift for API access. They shared this form for reaching the team responsible for that:
That said I know Runalyze has been trying to get access and last I heard there was no response.
They could also try contacting partnerships@zwift.com