The Integry API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded and form-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.
The Integry API requires an App-Key
, User-ID
and a hash of App-Secret
and User-ID
in the request headers to authenticate requests.
You can view and copy your App-Key
and App-Secret
from the Integry app.
User-ID
is a unique string identifier for a user in your app. Function Calls and Integrations are associated to a user ID.
If your app has workspaces/accounts and you want integrations to be shared across all users in a workspace/account, use the workspace/account ID as the user ID.
Calculate the hash server-side using HMAC SHA256.
Pass the App-Key
, computed hash and User-ID
in the headers of the API call.
GET
/apps
List all apps available in Integry. If you need more, please reach out!
Response
GET
/apps/<app_name>
Get the details of an individual app by passing <app_name>
as a path variable.
Response
GET
/functions
List all functions available in Integry. If you need more, make a passthrough request or reach out!
GET
/functions/<function_name>
Get the JSON schema of an individual function by passing function name as a path variable.
All supported function parameters
are returned as keys, along with their type
and description
as key, value pairs. Required parameters are listed in the required
array.
Sample response for pipedrive-add-a-person
get function call:
POST
/functions/<function_name>/
Call a function by passing <function_name>
as a path variable and the function parameters in the request body. Integry will automatically add the user's authentication credentials (eg. access token, API key) to the call.
Integry will execute the function if the user has already connected their account for the function app, and all required parameters (if any) are provided in the body. These function calls will show in the Function Calls log in the Integry app.
Integry will not execute the function if the user has not connected an account, or the parameters passed are invalid. These function calls will not show in the Function Calls log.
Pass the function parameters in the request body.
Sample body for pipedrive-add-a-person
function call:
Sample body for pipedrive-get-all-persons
function call with next_page
:
If Integry executes the function, it will respond with a 200 OK
with following keys in the response body:
network_code
: HTTP response status code of the onwards API call made by Integry.
output
: HTTP response body of the onwards API call made by Integry.
next_page
: The cursor for the next page. It will only be present in responses of functions that support paginated calls. If there are no more pages, it will be empty.
If Integry does not execute the function, it will respond with a 400 Bad Request
with following keys in the response body:
error
: Summary of the error.
error_details[]
: Detailed errors for individual fields (if applicable).
Sample responses for pipedrive-add-a-person
and pipedrive-get-all-persons
:
In rare cases where Integry is unable to determine if there are more pages, it will respond with a next_page
cursor. Your subsequent call will return an empty output[]
and next_page
cursor since there are no more pages.
Name | Value |
---|---|
Name | Type | Description | Example | Required |
---|---|---|---|---|
Name | Type | Description | Example | Required |
---|---|---|---|---|
Name | Type | Description | Example | Required |
---|---|---|---|---|
Name | Type | Description | Example | Required |
---|---|---|---|---|
Content-Type
application/json
App-Key
<App key>
Hash
<App secret + User-ID hash>
User-ID
<User ID>
connected_only
boolean
Only return apps that the user has connected
true
false
cursor
string
Use the cursor to get the next page.
false
app
string
Only return functions of an app
slack
false
type
string
Allowed values: query
, mutation
, passthrough
query
false
connected_only
boolean
Only return functions of apps that the user has connected
true
false
predict_function
boolean
Uses the prompt
to predict one function. See Predict Function with Integry AI.
true
false
predict_arguments
boolean
Only allowed if predict_function=true
. Uses the prompt
to predict the arguments of the predicted function. See Predict Arguments with Integry AI.
true
false
prompt
string
Prompt to use to predict function (and arguments).
Send a message saying hello on slack
true if predict_function=true
cursor
string
Page size is 50. Use the cursor to get the next page.
false
include
string
Include info for rendering the function UI. Allowed values: meta
meta
false
predict_arguments
boolean
Uses the prompt
to predict the arguments of the function. See Predict Arguments with Integry AI.
true
false
prompt
string
Prompt to use to predict function (and arguments).
Send a message saying hello on slack
true if predict_arguments=true
include
string
Include info for rendering the function UI. Allowed values: meta
meta
false
connected_account_id
Number
The ID of the connected account to use for calling the function. Only use if the user has connected multiple accounts.
32543
false