website logo
⌘K
Introduction
Automation Editor
API Editor
BUILD GUIDE
Environments
API
Design
Webhooks
Connections
Constants
WEBHOOKS SETUP
Google Calendar Webhook
Quickbooks Webhook
Square Webhook
Twitter Webhook
Xero Webhook
CORE APIs
Core API Functions
Core Multi
Core Bulk
Text
Number
List
DateTime
JSON
Web
ACCOUNT MANAGEMENT
Manage Account
Analytics
Monitor Your Tasks
Request APIs
Request Provider
Docs powered by archbee 
21min

Core API Functions

Pathfix has a suite of powerful Core functions available as APIs. This covers common tasks that you might need to perform as part of your automation. They are categorized in the following manner:

  • Text
  • Number
  • Date
  • List
  • JSON
  • Web
  • Core Multi
  • Core Bulk



All the Core API have been documented with the API specification in case you wish to clone them and customize the input/output for your own use.

Naming Convention :

The Core API Functions are used in two ways

  1. Called using an API Call
  2. Called as part of a Bulk or Multi API Call

Every function has a type, function, params to it.

If you were to call it using an API call it would be structured as /functions/type/function and the request body would contain the params

Curl
|

If you were to call it as part of a Bulk or Multi API you would structure it as JSON the structure would be as follows

JSON
|

API Credit Usage:

Each API might have a different credit consumption based on the task, complexity of execution and plan. Here is a reference table of Minimum API Task Credits that will be consumed.



All Plans (up to Premium):

Core API

Minimum Credits Consumed (below 20kB)

text/all

1

number/all

1

datetime/all

1

json/all

1

list/all

1

web/all

1



Premium Plans (and above):

Core API

Minimum Credits Consumed (below 20kB)

text/all

0

number/all

0

datetime/all

0

json/all

0

list/all

0

web/all

0



If the data passed is higher than the minimum 20kB, each multiple of 20kB will be considered as an additional API task. The size is calculated based on the size of the request size + response size. (i.e. If you send a text that is 200kb long, it will consume 10 API task credits)



Accessing Core APIs:

Core APIs can be added to your automation like any other API. Add a New API Call node to your automation by clicking on Add API and search and call any of the Core APIs to perform a set of functions.

Search

  • In your Design page, click on Call API to add a new task
Image: Call API
Image: Call API



  • Add Title to your API and click on the dropdown to Select API
  • You would see a few categories of core APIs available to you
  • Click on the API you wish to use to see a list of available APIs in that category
Image: Core functions APIs
Image: Core functions APIs



  • You can also search for a keyword of the core function (e.g. email)
Image: Keyword search
Image: Keyword search



Using the API

  • Core APIs allow you to pick a specific response and process it based on the output you are looking for
  • After selecting the API, you may see a set of further inputs needed by the selected API, start typing or click on the input field to see options available from previous API calls
  • The search results pulls data from previous calls and categorizes it by the API call and provider, making it easy to select.
  • In this example, we are extracting the email address to send to an internal API



Image: Select option
Image: Select option



Updated 27 Jan 2023
Did this page help you?
Yes
No
UP NEXT
Core Multi
Docs powered by archbee 
TABLE OF CONTENTS
Naming Convention :
API Credit Usage:
Accessing Core APIs:
Search
Using the API