Fetch Integration Url

This node lets you make an authenticated call to any integrated API.

Notion image

This node lets you make an authenticated call to any API provider that you connected with via a Kitchn Integration. This is useful when you want to use a provider’s for some task where Kitchn does not yet offer a native node.

 

Example

Let’s say you want to get the campaign stats for a specific Snapchat campaign. Currently (Feb 2023) Kitchn does not yet provide a native node to pull these stats, but it is very easy to achieve with the Fetch Integration Url node.

All we need, is to select Snapchat as the provider and set the url to whatever API call we need to make. In this example, that would be https://adsapi.snapchat.com/v1/campaigns/{{campaign_id}}/stats. Any authentication headers will be set and handled automatically by the node based on the selected provider. If you need to set any other headers, you can do so.

 

For some common API calls, the node handles pagination automatically. Should you run into a situation, where the node does not return all pages of results, you can configure pagination by turning on all_pages and providing the name of the array with results that should be paginated to the field socket.

 

Input Fields

field
schema
explanation
provider
string
Select the API provider, must be an integration that you set up in link
url
string
The url of the API endpoint to send a GET request to.
all_pages
boolean
If pagination is not handled automatically, activate it here.
field
string
The name of the results array field that should be paginated.
headers
any
Any headers that should be sent along with the API call.

Output Fields

field
schema
explanation
body
any
The response body.
 
Did this answer your question?
😞
😐
🤩

Last updated on February 6, 2023