Python example code to generate the most basic and simple typeform Form using a POST API?

118 Views Asked by At

I'm looking for a python code that uses the [POST] https://api.typeform.com/forms API to create a new form on Typeform

s = requests.post("https://api.typeform.com/forms", headers={"Authorization": "Bearer {}".format(token)}, data=json.dumps(js2))

The problem I am encountering is in creating the json for the post request that contains the form details. I'm looking for a very basic example without any welcome or thankyou screens, logics, jumps etc.

1

There are 1 best solutions below

1
picsoung On

The minimum you need to create a typeform via API is just the title of a form.

Like this:

{
    "title": "My awesome form"
}