Create function
Create function
Adds a function to the environment, custom JavaScript that runs in Voiceflow’s sandbox and returns through a named path. The response carries the ID that later calls address it by.
POST
Create function
Authorizations
Voiceflow bearer token
Query Parameters
The ID of the project to operate on.
The alias of the environment to operate on (e.g. main).
Body
application/json
Response
201 - application/json
Creates the function and returns it in full, including its new ID and the JavaScript source stored for it.