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
string
default: sample-referrer
form
required
String
string
default: embed
referralCode
String
string
If-None-Match
String
string

OK

Not Modified

Internal Server Error

ProblemDetails
object
type
String
string
nullable
title
String
string
nullable
status
Nullable`1
integer format: int32
nullable
detail
String
string
nullable
instance
String
string
nullable
key
additional properties
Object