Skip to main content

Calling External Webhooks

Calling an external web api endpoint from a Prompt Exchange, Automation, or Library action requires use of JavaScript. This uses the typical "builder" style interface:

platform.buildCallExternalWebAPI("POST", url)

Builder Functions

.dataKey

An app acccessible data value that stores the return value of the API call (infrequently used)

.eventName

A named callback to be called on return

.value

Values, typically based in a JSON object.

.contentType

Typically "application/json"

.testResponseCode

In test mode, the response code back from the server (200, 400, etc).

.testResponse

In test mode, the test response JSON object

.headers

JSON headers

.basicAuth

username and password

.xHubSignatureAuth

secret