Skip to content

Get Form Template

GET
/snippet/form

Generate a ready-to-embed lead-capture HTML form.

Returns a self-contained HTML snippet with:

  • Name + work email + company fields
  • Client-side validation
  • Tracking hook that calls window.graph8.track('form_submitted', ...) so the submission is captured alongside page views and other events

Drop the returned html into any page that already loads the tracking snippet (see GET /snippet). The form POSTs to your tracking host by default, but you can override action to route submissions to your own backend.

Authorizations

Parameters

Header Parameters

X-Target-Org-Id
Any of:
string

Responses

200

Successful Response

object
data
required
object
key
additional properties
any
pagination
Any of:
object
has_next
required

Whether there are more pages

boolean
limit
required

Items per page

integer
next_cursor
Any of:
string
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string