and a little reading it seems you can assemble an API through this? - create a DNS for your api.dom
and a little reading it seems you can assemble an API through this? - create a DNS for your api.domainX.com - create a Pages Function or Worker - assign a routing for that / those functions?

