Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
Example URL: https://app.phixflow.com/phixflow/api/1/action/MyApp/My%20API/trigger
title | Url Structure |
---|
The structure of the URL is as follows:
https://<<Server Name>>/phixflow/api/1/action/<<Application Name>>/<<Actionflow Name>>/trigger
phixflow
%20.
For example "My API" becomes, "My%20API". - Wait for result (Synchronous) (Default): The API waits for the results or the timeout to occur
- Note: If the timeout occurs the command is aborted
- Poll for result (Asynchronous): The API is called and a response is returned immediately including the process ID
- Subsequent API calls can be made using the process ID to fetch the status of the action
- The asynchronous mode can be thought of as “fire and forget”
Specify a maximum time in milliseconds that the API will wait for before the command is aborted
When a Timeout value is set, it overrides the default timeout, which is 60 seconds where API Mode is Synchronous and 500 milliseconds where API Mode is Asynchronous
However, if a timeout parameter has been provided in the URL calling this API, that will override both this Timeout value and the default value
- See Worked Example below for an example setup
Input Parameters
On the Input Connection Point, additional Input Parameters can be created to facilitate query string parameters being passed into the API via the URL.
Click on theExcerpt | ||
---|---|---|
| ||
This allows anyone with the URL for the API to call it. The audit trail records the system as running performing the API call. |
Adding authorisation is covered on API Authentication and Secret Keys.
Copy the URL and save it locally, to be used later when calling the API will open on the right and in the Input Parameters section, click theIf a parameter is missing then it will be marked as unavailable, unless a Default Value has been configured.