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


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


A named callback to be called on return


Values, typically based in a JSON object.


Typically "application/json"


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


In test mode, the test response JSON object


JSON headers


username and password