# Formspark

> Manage Formspark forms and read new submissions.

App · 11 actions. Web page: https://docs.lodol.com/docs/integrations/formspark

## Actions

### Create form

Create form.

**Inputs**

- Name (`name`, text, required): Name.
- Description (`description`, text): Description.
- Notification emails (`notification_emails`, list): Notification emails.
- Email threading (`email_threading`, true/false): Email threading.
- Automatic spam filter (`automatic_spam_filter`, true/false): Whether submissions to this form are screened by the automatic spam filter. Defaults to true. Setting it to false stores every submission, including the ones the filter would have held back, and each of those counts against the workspace's quota.
- Custom honeypot (`custom_honeypot`, text): Custom honeypot.
- Custom spam words (`custom_spam_words`, text): Custom spam words.
- Allowed domains (`allowed_domains`, list): The sites a submission may be sent from. Each entry also covers its subdomains, and a pasted address is reduced to its host. Once the list is set, a submission must carry an Origin or Referer header naming one of them, so a server-side request is rejected unless it sends one. An empty list or null accepts submissions from anywhere.
- Workspace (`workspace_id`, text, required): Workspace id.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "allowedDomains": [
      "example"
    ],
    "automaticSpamFilter": true,
    "createdAt": "example",
    "customHoneypot": "example",
    "customSpamWords": "example",
    "description": "example",
    "emailThreading": true,
    "id": "example",
    "name": "example",
    "notificationEmails": [
      "example"
    ],
    "slackChannel": "example",
    "spamProtection": "example",
    "technology": "example",
    "updatedAt": "example",
    "webhookUrl": "example",
    "workspaceId": "example"
  }
}
```

### Delete form

Delete form.

**Inputs**

- Form ID (`form_id`, text, required): Form id.

**Outputs**

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

**Example output**

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

### Delete submission

Delete submission.

**Inputs**

- Submission ID (`submission_id`, text, required): Submission id.

**Outputs**

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

**Example output**

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

### Get an email template

Get an email template.

**Inputs**

- Form ID (`form_id`, text, required): Form id.
- Template kind (`template_kind`, text, required): Kind. One of: `notification`, `autoresponder`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "code": "example",
    "kind": "example",
    "mode": "example",
    "paused": true,
    "subject": "example",
    "updatedAt": "example"
  }
}
```

### Get form

Get form.

**Inputs**

- Form ID (`form_id`, text, required): Form id.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "allowedDomains": [
      "example"
    ],
    "automaticSpamFilter": true,
    "createdAt": "example",
    "customHoneypot": "example",
    "customSpamWords": "example",
    "description": "example",
    "emailThreading": true,
    "id": "example",
    "name": "example",
    "notificationEmails": [
      "example"
    ],
    "slackChannel": "example",
    "spamProtection": "example",
    "technology": "example",
    "updatedAt": "example",
    "webhookUrl": "example",
    "workspaceId": "example"
  }
}
```

### Get token details

Get token details.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "createdAt": "example",
    "expiresAt": "example",
    "lastUsedAt": "example",
    "name": "example",
    "scopes": [
      "example"
    ]
  }
}
```

### List form submissions

List form submissions.

**Inputs**

- Form ID (`form_id`, text, required): Form id.
- Limit (`limit`, number): Limit. From 1 to 100.
- Starting after (`starting_after`, text): Starting after.
- Search (`search`, text): Search.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "createdAt": "example",
        "data": {},
        "formId": "example",
        "id": "example"
      }
    ],
    "hasMore": true,
    "nextCursor": "example"
  }
}
```

### List forms

List forms.

**Inputs**

- Limit (`limit`, number): Limit. From 1 to 100.
- Starting after (`starting_after`, text): Starting after.
- Workspace (`workspace_id`, text, required): Workspace id.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "allowedDomains": [
          "example"
        ],
        "automaticSpamFilter": true,
        "createdAt": "example",
        "customHoneypot": "example",
        "customSpamWords": "example",
        "description": "example",
        "emailThreading": true,
        "id": "example",
        "name": "example",
        "notificationEmails": [
          "example"
        ],
        "slackChannel": "example",
        "spamProtection": "example",
        "technology": "example",
        "updatedAt": "example",
        "webhookUrl": "example",
        "workspaceId": "example"
      }
    ],
    "hasMore": true,
    "nextCursor": "example"
  }
}
```

### List workspace submissions

List workspace submissions.

**Inputs**

- Workspace (`workspace_id`, text, required): Workspace id.
- Limit (`limit`, number): Limit. From 1 to 100.
- Starting after (`starting_after`, text): Starting after.
- Search (`search`, text): Search.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "createdAt": "example",
        "data": {},
        "formId": "example",
        "id": "example"
      }
    ],
    "hasMore": true,
    "nextCursor": "example"
  }
}
```

### List workspaces

List workspaces.

**Inputs**

- Limit (`limit`, number): Limit. From 1 to 100.
- Starting after (`starting_after`, text): Starting after.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "createdAt": "example",
        "id": "example",
        "name": "example",
        "plan": "example",
        "submissionsQuota": 1,
        "updatedAt": "example"
      }
    ],
    "hasMore": true,
    "nextCursor": "example"
  }
}
```

### Update form

Update form.

**Inputs**

- Form ID (`form_id`, text, required): Form id.
- Name (`name`, text): Name.
- Description (`description`, text): Description.
- Notification emails (`notification_emails`, list): Notification emails.
- Email threading (`email_threading`, true/false): Email threading.
- Automatic spam filter (`automatic_spam_filter`, true/false): Whether submissions to this form are screened by the automatic spam filter. Defaults to true. Setting it to false stores every submission, including the ones the filter would have held back, and each of those counts against the workspace's quota.
- Custom honeypot (`custom_honeypot`, text): Custom honeypot.
- Custom spam words (`custom_spam_words`, text): Custom spam words.
- Allowed domains (`allowed_domains`, list): The sites a submission may be sent from. Each entry also covers its subdomains, and a pasted address is reduced to its host. Once the list is set, a submission must carry an Origin or Referer header naming one of them, so a server-side request is rejected unless it sends one. An empty list or null accepts submissions from anywhere.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "allowedDomains": [
      "example"
    ],
    "automaticSpamFilter": true,
    "createdAt": "example",
    "customHoneypot": "example",
    "customSpamWords": "example",
    "description": "example",
    "emailThreading": true,
    "id": "example",
    "name": "example",
    "notificationEmails": [
      "example"
    ],
    "slackChannel": "example",
    "spamProtection": "example",
    "technology": "example",
    "updatedAt": "example",
    "webhookUrl": "example",
    "workspaceId": "example"
  }
}
```
