Skip to content

Get the form client embed script

GET
/api/{referralpartner}/{form}.js

Generates a JavaScript file that can be embedded in a webpage to load the form client. Includes configuration for public URL, referrer information, and optional form name and referral code. Implements caching with ETag support and includes necessary CORS headers.

referralpartner
required
string
default: sample-referrer
form
required
string
default: embed
referralCode
string
If-None-Match
string

OK

Not Modified

Internal Server Error

object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties