# Instapage

> Manage Instapage landing pages, groups, leads, lead notifications and page statistics.

App · 19 actions. Web page: https://docs.lodol.com/docs/integrations/instapage

## Actions

### Add lead notification recipients

Email more people about a page's new leads. Everyone already on the list stays on it.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace the pages belong to.
- Page (`page_id`, text, required): The landing page.
- Email addresses (`recipients`, list, required): Email addresses to notify about new leads, up to 15.

**Outputs**

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

**Example output**

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

### Copy page

Make an unpublished copy of a landing page, in the same workspace or another one. Trial accounts and viewers can't copy pages, and AMP pages can't be copied.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace the pages belong to.
- Page (`page_id`, text, required): The landing page.
- Title (`title`, text, required): The new page's title, up to 255 characters.
- Copy to workspace (`target_workspace_id`, text): The workspace to put the copy in. Leave blank to use the same workspace.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "pageId": 1,
      "title": "example",
      "workspaceId": 1
    }
  }
}
```

### Create group

Create a page group (folder) in a workspace.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace the pages belong to.
- Name (`name`, text, required): The group's name.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "id": 1,
      "name": "example",
      "pages": [
        1
      ]
    },
    "meta": {
      "workspaceId": 1
    }
  }
}
```

### Delete form submissions

Permanently delete up to 100 form submissions. This can't be undone.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace the pages belong to.
- Submission IDs (`submission_ids`, list, required): The submissions to delete, from List form submissions.

**Outputs**

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

**Example output**

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

### Delete group

Delete an empty page group (folder). Move its pages out first.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace the pages belong to.
- Group (`group_id`, text, required): The page group (folder).

**Outputs**

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

**Example output**

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

### Delete page

Delete a landing page with its personalized versions. Stop any running A/B test on the page first.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace the pages belong to.
- Page (`page_id`, text, required): The landing page.

**Outputs**

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

**Example output**

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

### Get lead notification settings

Get who is emailed about a page's new leads, and how the email looks.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace the pages belong to.
- Page (`page_id`, text, required): The landing page.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "recipients": [
        {
          "email": "example",
          "status": "example"
        }
      ],
      "setup": {
        "customHtml": "example",
        "fromName": "example",
        "isBranded": true,
        "logo": "example",
        "replyTo": "example",
        "subject": "example"
      }
    }
  }
}
```

### Get page

Get a landing page's title, address, publishing status and group.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace the pages belong to.
- Page (`page_id`, text, required): The landing page.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "createdAt": 1,
      "groupId": 1,
      "id": 1,
      "isDeleted": true,
      "isScheduled": true,
      "pageType": "example",
      "publishMethod": "example",
      "publishStatus": "example",
      "publishedAt": 1,
      "title": "example",
      "totalPersonalizedExperienceCount": 1,
      "updatedAt": 1,
      "url": "example"
    }
  }
}
```

### Get page statistics

Get visits, conversions and leads for up to 100 pages over a period. Times are in UTC.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace the pages belong to.
- Pages (`page_ids`, list, required): The landing pages to include, up to 100.
- From (`start`, date and time): Start of the period. Leave blank to count from the beginning.
- To (`end`, date and time): End of the period. Leave blank to count up to now.
- Totals per (`interval`, text): Add up the numbers by hour, day, month or year. Monthly unless you choose. One of: `hourly`, `daily`, `monthly`, `yearly`.
- Break down by (`breakdown`, text): Give separate numbers for each page, each A/B test variation, or both. One of: `page`, `variation`, `page_and_variation` (Page and variation).
- Device (`device`, text): Count visits from any device, or only desktop or only mobile. One of: `any`, `desktop`, `mobile`.
- Traffic (`traffic`, text): Count all traffic, or only organic or only paid visits. One of: `blended`, `organic`, `paid`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "conversion": 1,
        "key": {
          "date": 1,
          "pageId": 1,
          "variationId": 1
        },
        "leads": 1,
        "visit": 1
      }
    ]
  }
}
```

### List A/B tests

List the A/B tests (experiments) in a workspace with their pages and status.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace the pages belong to.
- Status (`statuses`, list): Only return A/B tests with these statuses. One or more of: `draft`, `running`, `ended`, `archived`.
- Results page (`page`, number): Which page of results to return, 100 at a time. Leave blank for the first. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "createdAt": 1,
        "createdBy": 1,
        "endedAt": 1,
        "experimentId": 1,
        "experimentName": "example",
        "experimentStatus": "example",
        "experimentType": "example",
        "pageId": 1,
        "publishedPageUrl": "example",
        "startedAt": 1
      }
    ],
    "meta": {
      "pagination": {
        "currentPage": 1,
        "nextPage": 1,
        "perPage": 1,
        "previousPage": 1,
        "totalItemsCount": 1,
        "totalPagesCount": 1
      }
    }
  }
}
```

### List form submissions

List the leads submitted through the forms on chosen pages, 100 at a time.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace the pages belong to.
- Pages (`page_ids`, list, required): The landing pages to include, up to 100.
- From (`start`, date and time): Only return submissions made at or after this time.
- To (`end`, date and time): Only return submissions made before this time.
- Next page token (`next_page_token`, text): To get the next 100, use the next page token from the previous result.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "submissions": [
        {
          "createdAt": 1,
          "fields": {},
          "id": "example",
          "pageId": 1,
          "variationCustomName": "example",
          "variationName": "example"
        }
      ]
    },
    "meta": {
      "limit": 1,
      "nextPageToken": "example"
    }
  }
}
```

### List groups

List the page groups (folders) in a workspace, with the pages in each.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace the pages belong to.
- Results page (`page`, number): Which page of results to return, 100 at a time. Leave blank for the first. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "id": 1,
        "name": "example",
        "pages": [
          1
        ]
      }
    ],
    "meta": {
      "pagination": {
        "currentPage": 1,
        "nextPage": 1,
        "perPage": 1,
        "previousPage": 1,
        "totalItemsCount": 1,
        "totalPagesCount": 1
      },
      "workspaceId": 1
    }
  }
}
```

### List pages

List the landing pages in a workspace, 100 at a time.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace the pages belong to.
- Status (`publish_status`, text): Only return pages with this publishing status. One of: `published`, `unpublished`, `published_with_unpublished_changes` (Published with unpublished changes).
- Group (`group_id`, number): Only return pages in this group (folder).
- Created after (`created_after`, date and time): Only return pages created after this time.
- Changed after (`updated_after`, date and time): Only return pages changed after this time.
- Published after (`published_after`, date and time): Only return pages published after this time.
- Deleted pages (`deleted`, true/false): Return only deleted pages instead of current ones.
- Results page (`page`, number): Which page of results to return, 100 at a time. Leave blank for the first. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "createdAt": 1,
        "groupId": 1,
        "id": 1,
        "isDeleted": true,
        "isScheduled": true,
        "pageType": "example",
        "publishMethod": "example",
        "publishStatus": "example",
        "publishedAt": 1,
        "title": "example",
        "totalPersonalizedExperienceCount": 1,
        "updatedAt": 1,
        "url": "example"
      }
    ],
    "meta": {
      "pagination": {
        "currentPage": 1,
        "nextPage": 1,
        "perPage": 1,
        "previousPage": 1,
        "totalItemsCount": 1,
        "totalPagesCount": 1
      }
    }
  }
}
```

### List team members

List the people in a workspace with their role and invitation status.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace the pages belong to.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "accessLevel": "example",
        "email": "example",
        "fullName": "example",
        "inheritOwnerContextInPublicApi": true,
        "invitationStatus": "example",
        "invitedAt": 1,
        "lastActivityInWorkspaceAt": 1,
        "lastLoginAt": 1,
        "userId": 1
      }
    ]
  }
}
```

### List workspaces

List the Instapage workspaces this connection can reach.

**Inputs**

- Workspace name (`name`, text): Only return the workspace with this name. Upper and lower case don't matter.
- Results page (`page`, number): Which page of results to return, 100 at a time. Leave blank for the first. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "accessLevel": "example",
        "createdAt": 1,
        "ownerId": 1,
        "workspaceId": 1,
        "workspaceName": "example"
      }
    ],
    "meta": {
      "pagination": {
        "currentPage": 1,
        "nextPage": 1,
        "perPage": 1,
        "previousPage": 1,
        "totalItemsCount": 1,
        "totalPagesCount": 1
      }
    }
  }
}
```

### Move page to group

Put a landing page in a group (folder), or take it out of its group.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace the pages belong to.
- Page (`page_id`, text, required): The landing page.
- Group (`group_id`, number): The group to move the page into. Leave blank to take the page out of its group.

**Outputs**

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

**Example output**

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

### Publish page

Put a landing page live at an address. Publishing this way clears any publishing schedule set for the page.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace the pages belong to.
- Page (`page_id`, text, required): The landing page.
- Publish to (`publication_method`, text, required): Where the page goes live: your own domain, a free Instapage address ending in .pagedemo.co, or a connected WordPress or Drupal site. One of: `custom_domain` (Custom domain), `free_address` (Free address), `wordpress`, `drupal`.
- Address (`target_url`, text): The page's address, such as offer.example.com/spring or spring-offer.pagedemo.co. Leave blank for WordPress or Drupal.

**Outputs**

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

**Example output**

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

### Remove lead notification recipients

Stop emailing these people about a page's new leads.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace the pages belong to.
- Page (`page_id`, text, required): The landing page.
- Email addresses (`recipients`, list, required): Email addresses to notify about new leads, up to 15.

**Outputs**

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

**Example output**

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

### Unpublish page

Take a published landing page offline. This also clears any publishing schedule set for the page.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace the pages belong to.
- Page (`page_id`, text, required): The landing page.

**Outputs**

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

**Example output**

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