Executes a canvas
.createFile() method), you must wrap them in an object with a file_url property. The .createFile() method handles this formatting automatically./v3/files endpoint, you can use the vault URL in your completions. When not using the SDK’s .createFile() method, you need to wrap the URL in an object with a file_url property:
stream option, which allows you to consume the stream of the completion. Below is an example of consuming a stream of the completion.
webhookUrl option, which allows you to receive a webhook when the completion is finished. Below is an example of receiving a webhook when the completion is finished.
The canvas to execute
The ID of the canvas to execute
The variables to pass to the canvas
The URL to send webhooks to
Whether to stream the response
Whether to make the execution async
Override default settings specified in the canvas. This allows for fine-tuning the completion behavior for this specific request.
Successful completions