Get widget snippet
GET
Get widget snippet

Authorizations

Authorization
string
header
required

Voiceflow bearer token

Query Parameters

projectID
string
required

The ID of the project to operate on.

environmentAlias
string
required

The alias of the environment to operate on (e.g. main).

version
enum<string>
default:"published"

Pins the embed to one version of the environment: draft, the version used when testing, or published, the version serving live traffic. Omit it to pin the snippet to published.

Available options: draft, published

Response

200 - application/json

Returns the complete <script> tag to paste into the website, built from the environment's widget configuration at the requested version.

snippet
string
required

The complete <script> tag to paste into the website, just before the closing </body> of every page the widget should appear on. Already filled in with the right verification key, runtime endpoints and render block — it is meant to be copied verbatim, not edited.

Use the up and down arrow keys to select a result, Enter to open it, and Escape to close the search.