Hi @wolflytics
are you talking about Launch Server-side?
Question: why don't you use the "Adobe Cloud Connector" extension which should make your life easier as explained here.
If that is not an option, you can actually make a fetch to the API endpoint in your custom code.
I would first look at the CAPi endpoint in Postman and check what's needed in terms of auth headers as well.
Alternatively, you could also try to replicate the same request the web / client-side library request would send.
Good luck
Cheers from Switzerland!