---
title: Call Provider API Directly
slug: call-api-directly
description: Call any API directly
docTags: 
createdAt: 2021-04-06T04:43:51.000Z
---

Through your automation account, you can call any API directly without connecting a software account (e.g. Slack, Google etc.) or connecting your Pathfix OAuth account.&#x20;

This is the path you will take if you are trying to call one of your internal APIs or an API for a provider where you are handling the authentication yourself.&#x20;



- Click on **APIs** from the toolbar and click on **New API** and then click on the **Build**
- Build your API by adding the Method (POST, GET etc.), add the endpoint URL and make sure you add any **Headers&#x20;**&#x72;equired (in most direct API calls, you will need to add some form of authentication. Please refer the relevant provider API guide for more info)



::Image[]{src="https://api.archbee.com/api/optimize/4iTydmxMeM2cxR5sP_SIi/tIUbMUrd-S1ISc9UulPYv_image.png" size="88" width="1381" height="1083" caption="Headers " position="center" showCaption="true"}



- Add the endpoint and the Body of the call and click on **Initialize**



::Image[]{src="https://api.archbee.com/api/optimize/4iTydmxMeM2cxR5sP_SIi/go_0LPg5Y1OaQ4tNcnCdC_image.png" size="88" width="1392" height="1083" caption="Initialize call" position="center" showCaption="true"}



- Add all the required Dynamic fields to complete the API call&#x20;
- Any Header info will need to be entered here before proceeding&#x20;
- Click on **Continue Initialize**&#x20;

::Image[]{src="https://api.archbee.com/api/optimize/4iTydmxMeM2cxR5sP_SIi/_FPFQT7Ha_QLtsZHIZkxa_image.png" size="88" width="1389" height="1090" caption="Dynamic Values" position="center" showCaption="true"}



- In the Response screen, you would see the response from the call
- Click on **Use** and make sure you click on **Save**&#x20;



::Image[]{src="https://api.archbee.com/api/optimize/4iTydmxMeM2cxR5sP_SIi/6MrHyf8BqwoVJc-btmk1R_image.png" size="88" width="1407" height="1099" caption="Response" position="center" showCaption="true"}



Your Custom Direct API is ready for use in your Automation.





Need help? Reach out to our support team for any additional assistance at support\@pathfix.com.

