# Papermark

> Organize documents and read share link and data room activity.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/papermark

## Actions

### Create a folder

Create a folder.

**Inputs**

- Name (`name`, text, required): Name.
- Parent (`parent_id`, text): Optional parent folder id. Omit or pass null to create at the team-library root.
- Icon (`icon`, text): Allowed folder icon name. One of: `folder`, `folder-open`, `briefcase`, `archive`, `box`, `file`, `book`, `bookmark`, `star`, `heart`, and 25 more.
- Color (`color`, text): Allowed folder color token. One of: `gray`, `red`, `orange`, `yellow`, `green`, `blue`, `black`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "child_folder_count": 1,
    "color": "example",
    "created": "example",
    "document_count": 1,
    "icon": "example",
    "id": "example",
    "name": "example",
    "object": "folder",
    "parent_id": "example",
    "path": "example",
    "updated_at": "example"
  }
}
```

### Delete a folder

Delete a folder.

**Inputs**

- Folder (`folder_id`, text, required): Folder id.
- Cascade (`cascade`, text): When `true`, deletes the folder and every nested folder + document inside it. Without `cascade=true` a non-empty folder returns 409. One of: `true`, `false`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "deleted": true,
    "id": "example",
    "object": "document"
  }
}
```

### Get a data room

Get a data room.

**Inputs**

- Dataroom (`dataroom_id`, text, required): The record ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "agents_enabled": true,
    "allow_bulk_download": true,
    "conversations_enabled": true,
    "created": "example",
    "description": "example",
    "document_count": 1,
    "folder_count": 1,
    "id": "example",
    "internal_name": "example",
    "is_frozen": true,
    "name": "example",
    "object": "dataroom",
    "pid": "example",
    "updated_at": "example"
  }
}
```

### Get a document

Get a document.

**Inputs**

- Document (`document_id`, text, required): Document id.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "content_type": "example",
    "created": "example",
    "folder_id": "example",
    "id": "example",
    "name": "example",
    "num_pages": 1,
    "object": "document",
    "type": "example",
    "updated_at": "example",
    "url": "example"
  }
}
```

### Get a folder

Get a folder.

**Inputs**

- Folder (`folder_id`, text, required): Folder id.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "child_folder_count": 1,
    "color": "example",
    "created": "example",
    "document_count": 1,
    "icon": "example",
    "id": "example",
    "name": "example",
    "object": "folder",
    "parent_id": "example",
    "path": "example",
    "updated_at": "example"
  }
}
```

### Get a share link

Get a share link.

**Inputs**

- Link (`link_id`, text, required): Link id.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "agreement_id": "example",
    "allow_download": true,
    "allow_list": [
      "example"
    ],
    "audience_type": "general",
    "created": "example",
    "custom_fields": [
      {
        "disabled": true,
        "identifier": "example",
        "label": "example",
        "order_index": 1,
        "placeholder": "example",
        "required": true,
        "type": "example"
      }
    ],
    "dataroom_id": "example",
    "deny_list": [
      "example"
    ],
    "document_id": "example",
    "domain": "example",
    "email_authenticated": true,
    "email_protected": true,
    "enable_agreement": true,
    "enable_confidential_view": true,
    "enable_feedback": true,
    "enable_notification": true,
    "enable_screenshot_protection": true,
    "enable_watermark": true,
    "expires_at": "example",
    "group_id": "example",
    "id": "example",
    "is_password_protected": true,
    "name": "example",
    "object": "link",
    "show_banner": true,
    "slug": "example",
    "target_type": "document",
    "updated_at": "example",
    "url": "example",
    "watermark_config": {
      "color": "example",
      "font_size": 1,
      "is_tiled": true,
      "opacity": 1,
      "position": "top-left",
      "rotation": {},
      "text": "example"
    },
    "welcome_message": "example"
  }
}
```

### Get data room analytics

Get data room analytics.

**Inputs**

- Since (`since`, date and time): Start of the analytics window.
- Until (`until`, date and time): End of the analytics window.
- Dataroom (`dataroom_id`, text, required): The record ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "dataroom_id": "example",
    "since": "example",
    "total_duration_seconds": 1,
    "total_views": 1,
    "unique_viewers": 1,
    "until": "example"
  }
}
```

### Get document analytics

Get document analytics.

**Inputs**

- Since (`since`, date and time): Start of the analytics window.
- Until (`until`, date and time): End of the analytics window.
- Document (`document_id`, text, required): The record ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "avg_page_duration_seconds": [
      {
        "avg_duration_seconds": 1,
        "page_number": 1
      }
    ],
    "document_id": "example",
    "since": "example",
    "total_duration_seconds": 1,
    "total_views": 1,
    "unique_viewers": 1,
    "until": "example"
  }
}
```

### Get share link analytics

Get share link analytics.

**Inputs**

- Since (`since`, date and time): Start of the analytics window.
- Until (`until`, date and time): End of the analytics window.
- Link (`link_id`, text, required): The record ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "link_id": "example",
    "since": "example",
    "total_duration_seconds": 1,
    "total_views": 1,
    "unique_viewers": 1,
    "until": "example"
  }
}
```

### List data rooms

List data rooms.

**Inputs**

- Limit (`limit`, number): Limit. From 1 to 100.
- Cursor (`cursor`, text): Cursor.
- Query (`query`, text): Query.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "agents_enabled": true,
        "allow_bulk_download": true,
        "conversations_enabled": true,
        "created": "example",
        "description": "example",
        "document_count": 1,
        "folder_count": 1,
        "id": "example",
        "internal_name": "example",
        "is_frozen": true,
        "name": "example",
        "object": "dataroom",
        "pid": "example",
        "updated_at": "example"
      }
    ],
    "next_cursor": "example"
  }
}
```

### List document versions

List document versions.

**Inputs**

- Document (`document_id`, text, required): Document id.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "content_type": "example",
        "created": "example",
        "file_size": 1,
        "id": "example",
        "is_primary": true,
        "num_pages": 1,
        "object": "document_version",
        "type": "example",
        "updated_at": "example",
        "version_number": 1
      }
    ]
  }
}
```

### List documents

List documents.

**Inputs**

- Limit (`limit`, number): Limit. From 1 to 100.
- Cursor (`cursor`, text): Cursor.
- Folder ID (`folder_id`, text): Folder id.
- Query (`query`, text): Query.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "content_type": "example",
        "created": "example",
        "folder_id": "example",
        "id": "example",
        "name": "example",
        "num_pages": 1,
        "object": "document",
        "type": "example",
        "updated_at": "example",
        "url": "example"
      }
    ],
    "next_cursor": "example"
  }
}
```

### List documents in a data room

List documents in a data room.

**Inputs**

- Limit (`limit`, number): Limit. From 1 to 100.
- Cursor (`cursor`, text): Cursor.
- Folder ID (`folder_id`, text): Filter to documents inside a specific folder.
- Dataroom (`dataroom_id`, text, required): The record ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "content_type": "example",
        "created": "example",
        "document_id": "example",
        "document_name": "example",
        "folder_id": "example",
        "folder_path": "example",
        "id": "example",
        "num_pages": 1,
        "object": "dataroom_document",
        "order_index": 1,
        "type": "example",
        "url": "example"
      }
    ],
    "next_cursor": "example"
  }
}
```

### List folders

List folders.

**Inputs**

- Limit (`limit`, number): Limit. From 1 to 100.
- Cursor (`cursor`, text): Cursor.
- Parent (`parent_id`, text): When provided, returns only direct children of this folder. Use the literal string `root` to list top-level folders.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "child_folder_count": 1,
        "color": "example",
        "created": "example",
        "document_count": 1,
        "icon": "example",
        "id": "example",
        "name": "example",
        "object": "folder",
        "parent_id": "example",
        "path": "example",
        "updated_at": "example"
      }
    ],
    "next_cursor": "example"
  }
}
```

### List folders in a data room

List folders in a data room.

**Inputs**

- Dataroom (`dataroom_id`, text, required): Dataroom id.
- Limit (`limit`, number): Limit. From 1 to 100.
- Cursor (`cursor`, text): Cursor.
- Parent ID (`parent_id`, text): When provided, returns only direct children of this folder. Use the literal `root` to list top-level folders. Without `parent_id`, returns every folder in the dataroom.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "child_folder_count": 1,
        "color": "example",
        "created": "example",
        "document_count": 1,
        "icon": "example",
        "id": "example",
        "name": "example",
        "object": "dataroom_folder",
        "order_index": 1,
        "parent_id": "example",
        "path": "example",
        "updated_at": "example"
      }
    ],
    "next_cursor": "example"
  }
}
```

### List share link permissions

List share link permissions.

**Inputs**

- Link (`link_id`, text, required): Link id.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "can_download": true,
        "can_download_original": true,
        "can_view": true,
        "item_id": "example",
        "item_type": "dataroom_document",
        "object": "link_permission",
        "updated_at": "example"
      }
    ]
  }
}
```

### List share link views

List share link views.

**Inputs**

- Link (`link_id`, text, required): Link id.
- Limit (`limit`, number): Limit. From 1 to 100.
- Cursor (`cursor`, text): Cursor.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "dataroom_id": "example",
        "document_id": "example",
        "download_type": "example",
        "downloaded_at": "example",
        "id": "example",
        "link_id": "example",
        "object": "view",
        "view_type": "example",
        "viewed_at": "example",
        "viewer_email": "example"
      }
    ],
    "next_cursor": "example"
  }
}
```

### List share links

List share links.

**Inputs**

- Limit (`limit`, number): Limit. From 1 to 100.
- Cursor (`cursor`, text): Cursor.
- Document (`document_id`, text): Document id.
- Dataroom ID (`dataroom_id`, text): Dataroom id.
- Group ID (`group_id`, text): Group id.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "agreement_id": "example",
        "allow_download": true,
        "allow_list": [
          "example"
        ],
        "audience_type": "general",
        "created": "example",
        "custom_fields": [
          {}
        ],
        "dataroom_id": "example",
        "deny_list": [
          "example"
        ],
        "document_id": "example",
        "domain": "example",
        "email_authenticated": true,
        "email_protected": true,
        "enable_agreement": true,
        "enable_confidential_view": true,
        "enable_feedback": true,
        "enable_notification": true,
        "enable_screenshot_protection": true,
        "enable_watermark": true,
        "expires_at": "example",
        "group_id": "example",
        "id": "example",
        "is_password_protected": true,
        "name": "example",
        "object": "link",
        "show_banner": true,
        "slug": "example",
        "target_type": "document",
        "updated_at": "example",
        "url": "example",
        "watermark_config": {},
        "welcome_message": "example"
      }
    ],
    "next_cursor": "example"
  }
}
```

### Rename a folder

Rename a folder.

**Inputs**

- Folder (`folder_id`, text, required): Folder id.
- Name (`name`, text): Name.
- Icon (`icon`, text): Allowed folder icon name. One of: `folder`, `folder-open`, `briefcase`, `archive`, `box`, `file`, `book`, `bookmark`, `star`, `heart`, and 25 more.
- Color (`color`, text): Allowed folder color token. One of: `gray`, `red`, `orange`, `yellow`, `green`, `blue`, `black`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "child_folder_count": 1,
    "color": "example",
    "created": "example",
    "document_count": 1,
    "icon": "example",
    "id": "example",
    "name": "example",
    "object": "folder",
    "parent_id": "example",
    "path": "example",
    "updated_at": "example"
  }
}
```

### Search documents

Search documents.

**Inputs**

- Q (`q`, text, required): Q.
- Limit (`limit`, number): Limit. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "content_type": "example",
        "created": "example",
        "folder_id": "example",
        "id": "example",
        "name": "example",
        "num_pages": 1,
        "object": "document",
        "type": "example",
        "updated_at": "example",
        "url": "example"
      }
    ],
    "next_cursor": "example"
  }
}
```
