Skip to main content
POST
Generate Form with AI

Authorizations

X-API-Key
string
header
required

API key obtained from your GeniusForms dashboard

Body

application/json
prompt
string
required
Required string length: 10 - 5000
Example:

"Create a job application form for a software developer position"

title
string

Override AI-generated title

description
string

Override AI-generated description

Response

Form generated

id
integer
Example:

208

title
string
Example:

"Customer Feedback"

description
string
Example:

"Help us improve our service"

isPublished
boolean
Example:

false

shareUrl
string
Example:

"abc123xyz"

url
string
Example:

"https://geniusforms.ai/f/abc123xyz"

displayMode
enum<string>
Available options:
single-page,
multi-step
Example:

"single-page"

createdAt
string<date-time>
publishedAt
string<date-time> | null
webhook
object

Webhook configuration for the form

questions
object[]