GETTING STARTED
Introduction

Enable pass-through API

4min

Once you have setup your OAuth Connect button, you will need to make every API call through Pathfix so we can stamp every required token to the API before passing it on to the provider (i.e. pass-through).

You will need to complete the End-user Authorization with the provider to be able to consume any provider endpoint. Once completed, you can setup the API call between the 2 apps using the API Call code.

Need documentation for End-user Authorization setup?  Check it here End-user authorization

API Call Template

Each providers API call is different and would be explained in detail on their own developer documentation. Here is template of how an API call would be created to go through Pathfix.

  • Select the app you would like to make the API call for, click on Setup and select API Call



Image: API Code
Image: API Code




You can write either client-side or server-side code to send messages to your end user’s application. Copy the code and paste it to your desired code base.



HTTP
C#
JS
Text
Python
TypeScript


Replacements

- MarketSaaS_end_user_id  – Change the MarketSaaS_end_user_id with the user ID associated with your app. This is generally the email address or username or any unique ID associated with your user in your app.  - url_to_provider_API – This is different for each application and refers to the Endpoint to the Provider’s Web API. Please note: Each method call for the provider will have its own URL. - method_to_use_with_this_call – Enter a supported HTTP method which is defined by the Provider. These usually are GET, POST, DELETE, PUT - payload_as_requested_by_provider – Most API integrations accept the information as application/json when pushing information. While using an API to pull information from them this section is usually empty. If there is no payload make sure you pass an empty {} When parameters are sent using the GET you can add them to the Endpoint URL as defined by the provider



Sample API Call setup

There are a few sample API calls available for each provider that you can access. Click on Test Connection and select a Sample Method from the dropdown.

Here is a sample call setup for Slack:

Image: Sample API call setup to Slack
Image: Sample API call setup to Slack






That’s it, you can make calls to any providers API using Pathfix's API passthrough for all of your connected users.





Having trouble? Reach out to us at [email protected] and we would be happy to help you.