WittyForm

App · 21 actions

Create forms and quizzes in WittyForm, collect and manage their responses, and act on new ones.

Actions

ActionWhat it does
Create formCreate a new draft form.
Create form responseSubmit a response to a published form.
Create quizCreate a new draft quiz.
Create webhookHave WittyForm send events about a form to a web address.
Delete formDelete a form and all its responses for good.
Delete form responseDelete a response to a form for good.
Delete quizDelete a quiz and all its responses for good.
Delete quiz responseDelete a response to a quiz for good.
Delete webhookStop and remove one of a form's webhooks.
Get API usageSee how many requests your WittyForm API key has made, day by day.
Get formGet a form with its fields and settings.
Get form responseGet one response to a form.
Get quizGet a quiz with its questions and results.
Get quiz responseGet one response to a quiz, with its score.
List form responsesList one page of a form's responses.
List formsList one page of the forms in your workspace.
List quiz responsesList one page of a quiz's responses.
List quizzesList one page of the quizzes in your workspace.
List webhooksList a form's webhooks.
Update formChange a form's title, description, fields, settings or status.
Update quizChange a quiz's details, questions or status.

Create form

Create a new draft form.

Inputs

Repeat-safe keyidempotency_keytext
Any text new to this request, such as a UUID. Sending the same key again within 24 hours returns the first result instead of creating a second one.
TitletitletextRequired
The form's title.
Descriptiondescriptiontext
The form's description.
Fieldsfieldslist
The form's fields, in order. Give each its own id, a type (such as text, email or textarea), a label, and whether it is required, for example [{"id": "full_name", "type": "text", "label": "Full name", "required": true}].
Settingssettingsobject
The form's settings, such as {"thankYouMessage": "Thanks!", "notifyOnSubmission": true}.

Outputs

dataobject
The response from WittyForm.
Example output
{
  "data": {
    "data": {
      "form": {
        "created_at": "2026-03-18T14:00:00.000Z",
        "description": "Example",
        "fields": [
          {
            "id": "id_123",
            "label": "Example",
            "placeholder": "Example",
            "required": true,
            "type": "Example"
          }
        ],
        "id": "id_123",
        "published_at": "2026-03-18T14:00:00.000Z",
        "settings": {
          "key": "value"
        },
        "short_id": "id_123",
        "status": "Example",
        "title": "Example",
        "updated_at": "2026-03-18T14:00:00.000Z"
      }
    },
    "success": true
  }
}

Create form response

Submit a response to a published form.

Inputs

Formform_idtextRequired
The form to answer. It must be published.
Repeat-safe keyidempotency_keytext
Any text new to this request, such as a UUID. Sending the same key again within 24 hours returns the first result instead of creating a second one.
AnswersanswersobjectRequired
The answers, keyed by field ID, such as {"full_name": "Jane Smith"}. Get Form shows each field's ID. WittyForm does not check them against the form.
Metadatametadataobject
Extra details to store with the response.

Outputs

dataobject
The response from WittyForm.
Example output
{
  "data": {
    "data": {
      "response": {
        "answers": {
          "key": "value"
        },
        "browser": "Example",
        "completion_time_seconds": 1,
        "device_type": "Example",
        "form_id": "id_123",
        "id": "id_123",
        "metadata": {
          "key": "value"
        },
        "os": "Example",
        "started_at": "2026-03-18T14:00:00.000Z",
        "submitted_at": "2026-03-18T14:00:00.000Z"
      }
    },
    "success": true
  }
}

Create quiz

Create a new draft quiz.

Inputs

Repeat-safe keyidempotency_keytext
Any text new to this request, such as a UUID. Sending the same key again within 24 hours returns the first result instead of creating a second one.
TitletitletextRequired
The quiz's title, up to 255 characters.
Descriptiondescriptiontext
The quiz's description, up to 2,000 characters.
Quiz typequiz_typetext
What kind of quiz it is. WittyForm uses Scored if you leave it empty.One of: scored, personality, survey, trivia, assessment.
Scoringscoring_methodtext
How answers are scored. WittyForm uses Points if you leave it empty.One of: points, percentage, weighted, custom.
Pass markpassing_scorenumber
The score from 0 to 100 needed to pass.From 0 to 100.
Blocksblockslist
The quiz's questions and content blocks. Give every block, question and answer its own id.
Settingssettingsobject
The quiz's settings, such as {"showCorrectAnswers": true}.
Outcomesoutcomeslist
The results a person can get, for personality and scored quizzes.

Outputs

dataobject
The response from WittyForm.
Example output
{
  "data": {
    "data": {
      "quiz": {
        "blocks": [
          {
            "key": "value"
          }
        ],
        "created_at": "2026-03-18T14:00:00.000Z",
        "description": "Example",
        "id": "id_123",
        "outcomes": [
          {
            "key": "value"
          }
        ],
        "passing_score": 1,
        "quiz_type": "Example",
        "scoring_method": "Example",
        "settings": {
          "key": "value"
        },
        "short_id": "id_123",
        "status": "Example",
        "title": "Example",
        "updated_at": "2026-03-18T14:00:00.000Z"
      }
    },
    "success": true
  }
}

Create webhook

Have WittyForm send events about a form to a web address.

Inputs

Formform_idtextRequired
The form to send events about.
NamenametextRequired
A name for the webhook, up to 100 characters.
URLurltextRequired
The public HTTPS address to send events to.
EventseventslistRequired
The events to send.One or more of: form.submitted (Form submitted), response.received (Response received), form.updated (Form changed), form.published (Form published), form.deleted (Form deleted), order.created (Order created), order.paid (Order paid), quiz.completed (Quiz completed).

Outputs

dataobject
The response from WittyForm.
Example output
{
  "data": {
    "data": {
      "webhook": {
        "created_at": "2026-03-18T14:00:00.000Z",
        "delivery_token": "Example",
        "events": [
          "Example"
        ],
        "form_id": "id_123",
        "id": "id_123",
        "is_active": true,
        "max_retries": 1,
        "name": "Example",
        "secret": "Example",
        "updated_at": "2026-03-18T14:00:00.000Z",
        "url": "https://example.com/page"
      }
    },
    "success": true
  }
}

Delete form

Delete a form and all its responses for good.

Inputs

Formform_idtextRequired
The form to delete.

Outputs

dataobject
The response from WittyForm.
Example output
{
  "data": {}
}

Delete form response

Delete a response to a form for good.

Inputs

Formform_idtextRequired
The form the response answers.
Responseresponse_idtextRequired
The ID of the response to delete.

Outputs

dataobject
The response from WittyForm.
Example output
{
  "data": {}
}

Delete quiz

Delete a quiz and all its responses for good.

Inputs

Quizquiz_idtextRequired
The quiz to delete.

Outputs

dataobject
The response from WittyForm.
Example output
{
  "data": {}
}

Delete quiz response

Delete a response to a quiz for good.

Inputs

Quizquiz_idtextRequired
The quiz the response answers.
Responseresponse_idtextRequired
The ID of the response to delete.

Outputs

dataobject
The response from WittyForm.
Example output
{
  "data": {}
}

Delete webhook

Stop and remove one of a form's webhooks.

Inputs

Formform_idtextRequired
The form the webhook belongs to.
Webhookwebhook_idtextRequired
The ID of the webhook to delete.

Outputs

dataobject
The response from WittyForm.
Example output
{
  "data": {}
}

Get API usage

See how many requests your WittyForm API key has made, day by day.

Inputs

Daysdaysnumber
How many days of history to show, from 1 to 90. WittyForm shows 1 if you leave it empty.From 1 to 90.

Outputs

dataobject
The response from WittyForm.
Example output
{
  "data": {
    "data": {
      "daily": [
        {
          "day": "Example",
          "error_count": 1,
          "request_count": 1
        }
      ],
      "key_id": "id_123",
      "period_days": 1,
      "rate_limit_per_minute": 1,
      "total_errors": 1,
      "total_requests": 1
    },
    "success": true
  }
}

Get form

Get a form with its fields and settings.

Inputs

Formform_idtextRequired
The form to read.

Outputs

dataobject
The response from WittyForm.
Example output
{
  "data": {
    "data": {
      "form": {
        "created_at": "2026-03-18T14:00:00.000Z",
        "description": "Example",
        "fields": [
          {
            "id": "id_123",
            "label": "Example",
            "placeholder": "Example",
            "required": true,
            "type": "Example"
          }
        ],
        "id": "id_123",
        "published_at": "2026-03-18T14:00:00.000Z",
        "settings": {
          "key": "value"
        },
        "short_id": "id_123",
        "status": "Example",
        "title": "Example",
        "updated_at": "2026-03-18T14:00:00.000Z"
      }
    },
    "success": true
  }
}

Get form response

Get one response to a form.

Inputs

Formform_idtextRequired
The form the response answers.
Responseresponse_idtextRequired
The ID of the response to read.

Outputs

dataobject
The response from WittyForm.
Example output
{
  "data": {
    "data": {
      "response": {
        "answers": {
          "key": "value"
        },
        "browser": "Example",
        "completion_time_seconds": 1,
        "device_type": "Example",
        "form_id": "id_123",
        "id": "id_123",
        "metadata": {
          "key": "value"
        },
        "os": "Example",
        "started_at": "2026-03-18T14:00:00.000Z",
        "submitted_at": "2026-03-18T14:00:00.000Z"
      }
    },
    "success": true
  }
}

Get quiz

Get a quiz with its questions and results.

Inputs

Quizquiz_idtextRequired
The quiz to read.

Outputs

dataobject
The response from WittyForm.
Example output
{
  "data": {
    "data": {
      "quiz": {
        "blocks": [
          {
            "key": "value"
          }
        ],
        "created_at": "2026-03-18T14:00:00.000Z",
        "description": "Example",
        "id": "id_123",
        "outcomes": [
          {
            "key": "value"
          }
        ],
        "passing_score": 1,
        "quiz_type": "Example",
        "scoring_method": "Example",
        "settings": {
          "key": "value"
        },
        "short_id": "id_123",
        "status": "Example",
        "title": "Example",
        "updated_at": "2026-03-18T14:00:00.000Z"
      }
    },
    "success": true
  }
}

Get quiz response

Get one response to a quiz, with its score.

Inputs

Quizquiz_idtextRequired
The quiz the response answers.
Responseresponse_idtextRequired
The ID of the response to read.

Outputs

dataobject
The response from WittyForm.
Example output
{
  "data": {
    "data": {
      "response": {
        "answers": {
          "key": "value"
        },
        "completed_at": "2026-03-18T14:00:00.000Z",
        "id": "id_123",
        "max_score": 1,
        "metadata": {
          "key": "value"
        },
        "passed": true,
        "percentage": 1,
        "personality_outcome": {
          "key": "value"
        },
        "quiz_id": "id_123",
        "score": 1,
        "started_at": "2026-03-18T14:00:00.000Z",
        "submitted_at": "2026-03-18T14:00:00.000Z",
        "time_spent": 1,
        "trait_scores": {
          "key": "value"
        },
        "user_email": "alex@example.com",
        "user_name": "Example"
      }
    },
    "success": true
  }
}

List form responses

List one page of a form's responses.

Inputs

Formform_idtextRequired
The form whose responses to list.
Pagepagenumber
Which page of responses to read, starting at 1.At least 1.
Page sizeper_pagenumber
How many responses a page holds, up to 100. WittyForm sends 25 if you leave it empty.From 1 to 100.
Ordersorttext
Newest or oldest first, by when they were submitted.One of: desc (Newest first), asc (Oldest first).
Submitted fromsincedate and time
Only responses submitted at or after this time.
Submitted untiluntildate and time
Only responses submitted at or before this time.

Outputs

dataobject
The response from WittyForm.
Example output
{
  "data": {
    "data": {
      "pagination": {
        "page": 1,
        "per_page": 1,
        "total": 1,
        "total_pages": 1
      },
      "responses": [
        {
          "answers": {
            "key": "value"
          },
          "browser": "Example",
          "completion_time_seconds": 1,
          "device_type": "Example",
          "form_id": "id_123",
          "id": "id_123",
          "metadata": {
            "key": "value"
          },
          "os": "Example",
          "started_at": "2026-03-18T14:00:00.000Z",
          "submitted_at": "2026-03-18T14:00:00.000Z"
        }
      ]
    },
    "success": true
  }
}

List forms

List one page of the forms in your workspace.

Inputs

Pagepagenumber
Which page of forms to read, starting at 1.At least 1.
Page sizeper_pagenumber
How many forms a page holds, up to 100. WittyForm sends 25 if you leave it empty.From 1 to 100.
Statusstatustext
Only forms with this status. Leave empty for all.One of: published, draft, archived.
Searchsearchtext
Only forms whose title contains these words.

Outputs

dataobject
The response from WittyForm.
Example output
{
  "data": {
    "data": {
      "forms": [
        {
          "created_at": "2026-03-18T14:00:00.000Z",
          "description": "Example",
          "fields": [
            {
              "id": "id_123",
              "label": "Example",
              "placeholder": "Example",
              "required": true,
              "type": "Example"
            }
          ],
          "id": "id_123",
          "published_at": "2026-03-18T14:00:00.000Z",
          "settings": {
            "key": "value"
          },
          "short_id": "id_123",
          "status": "Example",
          "title": "Example",
          "updated_at": "2026-03-18T14:00:00.000Z"
        }
      ],
      "pagination": {
        "page": 1,
        "per_page": 1,
        "total": 1,
        "total_pages": 1
      }
    },
    "success": true
  }
}

List quiz responses

List one page of a quiz's responses.

Inputs

Quizquiz_idtextRequired
The quiz whose responses to list.
Pagepagenumber
Which page of responses to read, starting at 1.At least 1.
Page sizeper_pagenumber
How many responses a page holds, up to 100. WittyForm sends 25 if you leave it empty.From 1 to 100.
Ordersorttext
Newest or oldest first, by when they were started.One of: desc (Newest first), asc (Oldest first).
Started fromsincedate and time
Only responses started at or after this time.
Started untiluntildate and time
Only responses started at or before this time.

Outputs

dataobject
The response from WittyForm.
Example output
{
  "data": {
    "data": {
      "pagination": {
        "page": 1,
        "per_page": 1,
        "total": 1,
        "total_pages": 1
      },
      "responses": [
        {
          "answers": {
            "key": "value"
          },
          "completed_at": "2026-03-18T14:00:00.000Z",
          "id": "id_123",
          "max_score": 1,
          "metadata": {
            "key": "value"
          },
          "passed": true,
          "percentage": 1,
          "personality_outcome": {
            "key": "value"
          },
          "quiz_id": "id_123",
          "score": 1,
          "started_at": "2026-03-18T14:00:00.000Z",
          "submitted_at": "2026-03-18T14:00:00.000Z",
          "time_spent": 1,
          "trait_scores": {
            "key": "value"
          },
          "user_email": "alex@example.com",
          "user_name": "Example"
        }
      ]
    },
    "success": true
  }
}

List quizzes

List one page of the quizzes in your workspace.

Inputs

Pagepagenumber
Which page of quizzes to read, starting at 1.At least 1.
Page sizeper_pagenumber
How many quizzes a page holds, up to 100. WittyForm sends 25 if you leave it empty.From 1 to 100.
Statusstatustext
Only quizzes with this status. Leave empty for all.One of: published, draft, archived.
Searchsearchtext
Only quizzes whose title contains these words.

Outputs

dataobject
The response from WittyForm.
Example output
{
  "data": {
    "data": {
      "pagination": {
        "page": 1,
        "per_page": 1,
        "total": 1,
        "total_pages": 1
      },
      "quizzes": [
        {
          "blocks": [
            {
              "key": "value"
            }
          ],
          "created_at": "2026-03-18T14:00:00.000Z",
          "description": "Example",
          "id": "id_123",
          "outcomes": [
            {
              "key": "value"
            }
          ],
          "passing_score": 1,
          "quiz_type": "Example",
          "scoring_method": "Example",
          "settings": {
            "key": "value"
          },
          "short_id": "id_123",
          "status": "Example",
          "title": "Example",
          "updated_at": "2026-03-18T14:00:00.000Z"
        }
      ]
    },
    "success": true
  }
}

List webhooks

List a form's webhooks.

Inputs

Formform_idtextRequired
The form whose webhooks to list.

Outputs

dataobject
The response from WittyForm.
Example output
{
  "data": {
    "data": {
      "webhooks": [
        {
          "created_at": "2026-03-18T14:00:00.000Z",
          "delivery_token": "Example",
          "events": [
            "Example"
          ],
          "form_id": "id_123",
          "id": "id_123",
          "is_active": true,
          "max_retries": 1,
          "name": "Example",
          "updated_at": "2026-03-18T14:00:00.000Z",
          "url": "https://example.com/page"
        }
      ]
    },
    "success": true
  }
}

Update form

Change a form's title, description, fields, settings or status.

Inputs

Formform_idtextRequired
The form to change.
Titletitletext
A new title.
Descriptiondescriptiontext
A new description.
Fieldsfieldslist
The whole new list of fields, replacing the old one. Give each its own id, a type, a label and whether it is required.
Settingssettingsobject
The whole new settings, replacing the old ones, such as {"thankYouMessage": "Thanks!"}.
Statusstatustext
Publish the form, put it back to draft, or archive it.One of: published, draft, archived.

Outputs

dataobject
The response from WittyForm.
Example output
{
  "data": {
    "data": {
      "form": {
        "id": "id_123",
        "settings": {
          "key": "value"
        },
        "status": "Example",
        "title": "Example",
        "updated_at": "2026-03-18T14:00:00.000Z"
      }
    },
    "success": true
  }
}

Update quiz

Change a quiz's details, questions or status.

Inputs

Quizquiz_idtextRequired
The quiz to change.
Titletitletext
A new title.
Descriptiondescriptiontext
The quiz's description, up to 2,000 characters.
Quiz typequiz_typetext
What kind of quiz it is. WittyForm uses Scored if you leave it empty.One of: scored, personality, survey, trivia, assessment.
Scoringscoring_methodtext
How answers are scored. WittyForm uses Points if you leave it empty.One of: points, percentage, weighted, custom.
Pass markpassing_scorenumber
The score from 0 to 100 needed to pass.From 0 to 100.
Blocksblockslist
The quiz's questions and content blocks. Give every block, question and answer its own id.
Settingssettingsobject
The quiz's settings, such as {"showCorrectAnswers": true}.
Outcomesoutcomeslist
The results a person can get, for personality and scored quizzes.
Statusstatustext
Publish the quiz, put it back to draft, or archive it.One of: published, draft, archived.

Outputs

dataobject
The response from WittyForm.
Example output
{
  "data": {
    "data": {
      "quiz": {
        "blocks": [
          {
            "key": "value"
          }
        ],
        "created_at": "2026-03-18T14:00:00.000Z",
        "description": "Example",
        "id": "id_123",
        "outcomes": [
          {
            "key": "value"
          }
        ],
        "passing_score": 1,
        "quiz_type": "Example",
        "scoring_method": "Example",
        "settings": {
          "key": "value"
        },
        "short_id": "id_123",
        "status": "Example",
        "title": "Example",
        "updated_at": "2026-03-18T14:00:00.000Z"
      }
    },
    "success": true
  }
}

On this page