Zend certified PHP/Magento developer

how to make rest api consumption using ajax?

I’m trying to get the checkout sending methods on another page in magento 2, and I saw that it would be possible to do it using magento 2 api consumption. However, magento 2 documentation is very bad, an api request using ajax?