# Using Salesforce’s API

**URL:** <https://forum.bubble.io/t/using-salesforce-s-api/201792>\
**Category:** APIs\
**Created:** [April 12, 2022, 3:28pm UTC](https://forum.bubble.io/t/using-salesforce-s-api/201792 "2022-04-12T15:28:22Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [February 23, 2024, 8:28pm UTC](https://forum.bubble.io/t/using-salesforce-s-api/201792/12 "2024-02-23T20:28:24Z")

</div>

You don,t need to run anyhing else for auth. This is done in the custom oAuth2 and Bubble will automatically add the authorization header to all call. You can delete the token endpoint but set this in oAuth2 custom token call like in my screenshot.

 ![screenshot-bubble.io-2024.02.23-15_27_03](https://us1.discourse-cdn.com/bubble/original/3X/b/4/b4d9199be4d24234a0645a48b8729deb344d5630.png)

Simple get user call to validate my auth is working

If you look correctly, you need to call the correct server endpoint for this type of auth. It’s not the same as user-agent/authorization\_code flow (UPDATE: tested with [https://login.salesforce.com/services/oauth2/token](https://login.salesforce.com/services/oauth2/token) and it’s also work fine)

And best is to use client\_credentials if possible. This is also done in custom auth if I remember

---

_[View the full topic](https://forum.bubble.io/t/using-salesforce-s-api/201792)._
