Skip to main content
Mitratech Success Center

External API

The External API tutorial will give you a brief insight into how one might set up an external API to hook into TAP. Learn the parameters that you will need to set up in order for information to be pushed or pulled to a 3rd party app.

 

What is the External API Property?

The External API property is a relationship level property that enables a workflow to send information to a particular location and in a particular way. By using the External API property, TAP can communicate with other applications and "do" certain things to them. To learn more about what an API is, click here.  

 

 

How do I set up an External API with TAP?

TAP has out-of-box Salesforce, Team Connect, and e-Signature integrations, which means that the API has already been set up and is within the infrastructure of TAP. If you want to integrate with another software that is not out of box, you can do that with an external API by following the instructions below.

  1. First, navigate to the workflow builder in the designer tool, and select the relationship at which you would like to communicate with another application.
  2.  After selecting the relevant relationship or stage, click on the clipboard_ebd65b17b8d54315f52d3c7dba25660a8.pngExternal API icon. A dialog box will appear.
     
  3. To create a call, click the 'Add' button in the bottom right hand corner.

clipboard_e77fa2a2853d6335467838046794ff394.png

Each stage/relationship can have multiple API calls configured. At the stage level, calls will be triggered according to the parameters set within the configuration. At the relationship level, all calls will proceed in series once the stage has been submitted.

You can set up multiple calls at relationship level. For instance, one call to collect the API token and other to GET files or upload documents using POST method. All these calls will be displayed in the External API main screen as labels.

At the stage level there is a limit to add API calls which is dependent on the setting 'TriggerCountThreshold'.

Follow the steps listed in each section to correctly set up an external API.

Main Info
  1. In the Configuration Name box, type the API configuration name which will appear as label on the External API screen. 
  2. In the API URL box, type in the API end point. 
  3. In the Method drop down, select the type of API call you wish to make, whether a GET request, POST request, etc. 
  4. Select the checkbox for Prevent workflow submission if response is invalid if this fits in with your business needs. This setting ensures that a bad call prohibits further movement in the workflow. 
  5. Click the Add button to add headers, which provide metadata within the request. This is not required but it is encouraged.

 clipboard_e0c90f8464a3feedf4151a66a36289f0d.png 

Request

For POST, PUT, DELETE, HEAD, OPTIONS, PATCH, and MERGE methods the request section becomes available.

 clipboard_e32cbcc3da1f509ccc59294af79491827.png

Response

The response is used when you need to return information to a TAP field. For example, if you have an authorization call and receive a token, you can return that token into a TAP field. Then, you can set up a second API call to push that information forward. 

  1. Select the text field into which you would like to parse your data. Use the ID of the response in the Use Formula Calculation.

 clipboard_e2b16a8714cd8ad405b43a09648ad423e.png

 

Aliases

When you get a response from an API it has it's own formatting. With the Aliases function, you can rename that response whatever is most helpful for you. 

Note: You only need to do aliases if you're going to refer to it in your responses. 

  1. The Alias key is the value you want to return.
  2. Body identifies where in the response you will display this value.
  3. Object navigation is the untouched response from the API call. 

 clipboard_e9322e4575f651fd0c1aedfc315fbedd5.png

 

Validation

Validation allows you to set up custom error messages. 

  1. Add a custom message in the Custom error message box.
  2. Click the Add new condition rule to attach conditions to the error message or validation.

 clipboard_eb53649fba266c2f98817af47107e89f3.png

 

Authorization

Authorization allows you to set up authorizations. You may choose no auth, basic, Oath 2.0, or use existing from another relationship. Form field results may used to pull in values when using basic auth. 

 clipboard_ec45b55d6aae17ce6bdd82b56f63c2ad2.png

 

Files

If part of your API response sends a file, setting up files allows you to return those files into your TAP form. 

 clipboard_e8cbfd71cbbddd7ef81a57e7fa23664b4.png

 

Click Save when finished. 

clipboard_eae74496642926d0dacdfb132aff059c4.png