# WittyForm

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

App · 21 actions. Web page: https://docs.lodol.com/docs/integrations/wittyform

## Actions

### Create form

Create a new draft form.

**Inputs**

- Repeat-safe key (`idempotency_key`, text): 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.
- Title (`title`, text, required): The form's title.
- Description (`description`, text): The form's description.
- Fields (`fields`, list): 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}].
- Settings (`settings`, object): The form's settings, such as {"thankYouMessage": "Thanks!", "notifyOnSubmission": true}.

**Outputs**

- `data` (object): The response from WittyForm.

**Example output**

```json
{
  "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**

- Form (`form_id`, text, required): The form to answer. It must be published.
- Repeat-safe key (`idempotency_key`, text): 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.
- Answers (`answers`, object, required): 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.
- Metadata (`metadata`, object): Extra details to store with the response.

**Outputs**

- `data` (object): The response from WittyForm.

**Example output**

```json
{
  "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 key (`idempotency_key`, text): 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.
- Title (`title`, text, required): The quiz's title, up to 255 characters.
- Description (`description`, text): The quiz's description, up to 2,000 characters.
- Quiz type (`quiz_type`, text): What kind of quiz it is. WittyForm uses Scored if you leave it empty. One of: `scored`, `personality`, `survey`, `trivia`, `assessment`.
- Scoring (`scoring_method`, text): How answers are scored. WittyForm uses Points if you leave it empty. One of: `points`, `percentage`, `weighted`, `custom`.
- Pass mark (`passing_score`, number): The score from 0 to 100 needed to pass. From 0 to 100.
- Blocks (`blocks`, list): The quiz's questions and content blocks. Give every block, question and answer its own id.
- Settings (`settings`, object): The quiz's settings, such as {"showCorrectAnswers": true}.
- Outcomes (`outcomes`, list): The results a person can get, for personality and scored quizzes.

**Outputs**

- `data` (object): The response from WittyForm.

**Example output**

```json
{
  "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**

- Form (`form_id`, text, required): The form to send events about.
- Name (`name`, text, required): A name for the webhook, up to 100 characters.
- URL (`url`, text, required): The public HTTPS address to send events to.
- Events (`events`, list, required): 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**

- `data` (object): The response from WittyForm.

**Example output**

```json
{
  "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**

- Form (`form_id`, text, required): The form to delete.

**Outputs**

- `data` (object): The response from WittyForm.

**Example output**

```json
{
  "data": {}
}
```

### Delete form response

Delete a response to a form for good.

**Inputs**

- Form (`form_id`, text, required): The form the response answers.
- Response (`response_id`, text, required): The ID of the response to delete.

**Outputs**

- `data` (object): The response from WittyForm.

**Example output**

```json
{
  "data": {}
}
```

### Delete quiz

Delete a quiz and all its responses for good.

**Inputs**

- Quiz (`quiz_id`, text, required): The quiz to delete.

**Outputs**

- `data` (object): The response from WittyForm.

**Example output**

```json
{
  "data": {}
}
```

### Delete quiz response

Delete a response to a quiz for good.

**Inputs**

- Quiz (`quiz_id`, text, required): The quiz the response answers.
- Response (`response_id`, text, required): The ID of the response to delete.

**Outputs**

- `data` (object): The response from WittyForm.

**Example output**

```json
{
  "data": {}
}
```

### Delete webhook

Stop and remove one of a form's webhooks.

**Inputs**

- Form (`form_id`, text, required): The form the webhook belongs to.
- Webhook (`webhook_id`, text, required): The ID of the webhook to delete.

**Outputs**

- `data` (object): The response from WittyForm.

**Example output**

```json
{
  "data": {}
}
```

### Get API usage

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

**Inputs**

- Days (`days`, number): How many days of history to show, from 1 to 90. WittyForm shows 1 if you leave it empty. From 1 to 90.

**Outputs**

- `data` (object): The response from WittyForm.

**Example output**

```json
{
  "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**

- Form (`form_id`, text, required): The form to read.

**Outputs**

- `data` (object): The response from WittyForm.

**Example output**

```json
{
  "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**

- Form (`form_id`, text, required): The form the response answers.
- Response (`response_id`, text, required): The ID of the response to read.

**Outputs**

- `data` (object): The response from WittyForm.

**Example output**

```json
{
  "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**

- Quiz (`quiz_id`, text, required): The quiz to read.

**Outputs**

- `data` (object): The response from WittyForm.

**Example output**

```json
{
  "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**

- Quiz (`quiz_id`, text, required): The quiz the response answers.
- Response (`response_id`, text, required): The ID of the response to read.

**Outputs**

- `data` (object): The response from WittyForm.

**Example output**

```json
{
  "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**

- Form (`form_id`, text, required): The form whose responses to list.
- Page (`page`, number): Which page of responses to read, starting at 1. At least 1.
- Page size (`per_page`, number): How many responses a page holds, up to 100. WittyForm sends 25 if you leave it empty. From 1 to 100.
- Order (`sort`, text): Newest or oldest first, by when they were submitted. One of: `desc` (Newest first), `asc` (Oldest first).
- Submitted from (`since`, date and time): Only responses submitted at or after this time.
- Submitted until (`until`, date and time): Only responses submitted at or before this time.

**Outputs**

- `data` (object): The response from WittyForm.

**Example output**

```json
{
  "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**

- Page (`page`, number): Which page of forms to read, starting at 1. At least 1.
- Page size (`per_page`, number): How many forms a page holds, up to 100. WittyForm sends 25 if you leave it empty. From 1 to 100.
- Status (`status`, text): Only forms with this status. Leave empty for all. One of: `published`, `draft`, `archived`.
- Search (`search`, text): Only forms whose title contains these words.

**Outputs**

- `data` (object): The response from WittyForm.

**Example output**

```json
{
  "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**

- Quiz (`quiz_id`, text, required): The quiz whose responses to list.
- Page (`page`, number): Which page of responses to read, starting at 1. At least 1.
- Page size (`per_page`, number): How many responses a page holds, up to 100. WittyForm sends 25 if you leave it empty. From 1 to 100.
- Order (`sort`, text): Newest or oldest first, by when they were started. One of: `desc` (Newest first), `asc` (Oldest first).
- Started from (`since`, date and time): Only responses started at or after this time.
- Started until (`until`, date and time): Only responses started at or before this time.

**Outputs**

- `data` (object): The response from WittyForm.

**Example output**

```json
{
  "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**

- Page (`page`, number): Which page of quizzes to read, starting at 1. At least 1.
- Page size (`per_page`, number): How many quizzes a page holds, up to 100. WittyForm sends 25 if you leave it empty. From 1 to 100.
- Status (`status`, text): Only quizzes with this status. Leave empty for all. One of: `published`, `draft`, `archived`.
- Search (`search`, text): Only quizzes whose title contains these words.

**Outputs**

- `data` (object): The response from WittyForm.

**Example output**

```json
{
  "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**

- Form (`form_id`, text, required): The form whose webhooks to list.

**Outputs**

- `data` (object): The response from WittyForm.

**Example output**

```json
{
  "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**

- Form (`form_id`, text, required): The form to change.
- Title (`title`, text): A new title.
- Description (`description`, text): A new description.
- Fields (`fields`, list): The whole new list of fields, replacing the old one. Give each its own id, a type, a label and whether it is required.
- Settings (`settings`, object): The whole new settings, replacing the old ones, such as {"thankYouMessage": "Thanks!"}.
- Status (`status`, text): Publish the form, put it back to draft, or archive it. One of: `published`, `draft`, `archived`.

**Outputs**

- `data` (object): The response from WittyForm.

**Example output**

```json
{
  "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**

- Quiz (`quiz_id`, text, required): The quiz to change.
- Title (`title`, text): A new title.
- Description (`description`, text): The quiz's description, up to 2,000 characters.
- Quiz type (`quiz_type`, text): What kind of quiz it is. WittyForm uses Scored if you leave it empty. One of: `scored`, `personality`, `survey`, `trivia`, `assessment`.
- Scoring (`scoring_method`, text): How answers are scored. WittyForm uses Points if you leave it empty. One of: `points`, `percentage`, `weighted`, `custom`.
- Pass mark (`passing_score`, number): The score from 0 to 100 needed to pass. From 0 to 100.
- Blocks (`blocks`, list): The quiz's questions and content blocks. Give every block, question and answer its own id.
- Settings (`settings`, object): The quiz's settings, such as {"showCorrectAnswers": true}.
- Outcomes (`outcomes`, list): The results a person can get, for personality and scored quizzes.
- Status (`status`, text): Publish the quiz, put it back to draft, or archive it. One of: `published`, `draft`, `archived`.

**Outputs**

- `data` (object): The response from WittyForm.

**Example output**

```json
{
  "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
  }
}
```
