# iManage Work

> File, find and manage legal documents in iManage Work: search and upload documents, add versions, check them out, read their history, organise matter workspaces and folders, and start workflows when a document is filed, changed or checked out.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/imanage

## Actions

### Add document version

Add a new version of a document with a new file. Give a file, or text to store as a text file.

**Inputs**

- Document ID (`document_id`, text, required): The document's ID, such as ACTIVE_US!453.1 (library!number.version), from a search, a trigger or an earlier step.
- Library (`library`, text): The library the item is in. Only needed when the ID is a bare number: IDs from iManage, such as ACTIVE_US!453.1, already name it.
- File (`file`, text): The file: upload one or pick one from an earlier step.
- Text (`content`, text): Text to store as the file, when no file is given.
- File name (`file_name`, text): The file's name with its extension, such as letter.docx. Its extension is the document's file type.
- Comments (`comment`, text): Comments on the new version.

**Outputs**

- `document` (object): An iManage document's profile
- `document_id` (text): The new version's ID
- `file_name` (text): The name the file was sent as

**Example output**

```json
{
  "document": {
    "author": "JSMITH",
    "class": "DOC",
    "comment": "Signed copy to follow",
    "create_date": "2026-10-28T15:04:11Z",
    "custom1": "1077",
    "custom2": "0004",
    "database": "ACTIVE_US",
    "document_number": 453,
    "edit_date": "2026-10-29T09:12:40Z",
    "extension": "docx",
    "id": "ACTIVE_US!453.2",
    "is_checked_out": false,
    "last_user": "JSMITH",
    "name": "Engagement letter",
    "size": 48213,
    "type": "WORDX",
    "version": 2
  },
  "document_id": "ACTIVE_US!453.2",
  "file_name": "Engagement letter.docx"
}
```

### Check out document

Check a document out to the user, so nobody else changes it until it is released.

**Inputs**

- Document ID (`document_id`, text, required): The document's ID, such as ACTIVE_US!453.1 (library!number.version), from a search, a trigger or an earlier step.
- Library (`library`, text): The library the item is in. Only needed when the ID is a bare number: IDs from iManage, such as ACTIVE_US!453.1, already name it.
- Comments (`comments`, text): Why it is checked out.
- Due back (`due_date`, date and time): When it should be checked back in.

**Outputs**

- `checked_out` (true/false): True once it is checked out
- `document` (object): An iManage document's profile
- `document_id` (text): The document

**Example output**

```json
{
  "checked_out": true,
  "document": {
    "author": "JSMITH",
    "class": "DOC",
    "comment": "Signed copy to follow",
    "create_date": "2026-10-28T15:04:11Z",
    "custom1": "1077",
    "custom2": "0004",
    "database": "ACTIVE_US",
    "document_number": 453,
    "edit_date": "2026-10-29T09:12:40Z",
    "extension": "docx",
    "id": "ACTIVE_US!453.1",
    "is_checked_out": true,
    "last_user": "JSMITH",
    "name": "Engagement letter",
    "size": 48213,
    "type": "WORDX",
    "version": 1
  },
  "document_id": "ACTIVE_US!453.1"
}
```

### Create subfolder

Add a folder inside a folder.

**Inputs**

- Folder ID (`folder_id`, text, required): The folder's ID, such as ACTIVE_US!108, from 'List workspace folders', a trigger or an earlier step.
- Library (`library`, text): The library the item is in. Only needed when the ID is a bare number: IDs from iManage, such as ACTIVE_US!453.1, already name it.
- Name (`name`, text, required): The new folder's name.
- Description (`description`, text): A description.
- Default security (`default_security`, text): Who can see it by default. Leave empty to inherit the parent's. One of: `inherit` (Inherit from where it is), `private`, `view` (View only), `public`.

**Outputs**

- `folder` (object): An iManage folder
- `folder_id` (text): The new folder's ID

**Example output**

```json
{
  "folder": {
    "database": "ACTIVE_US",
    "default_security": "inherit",
    "description": "Letters to and from the client",
    "id": "ACTIVE_US!109",
    "name": "Drafts",
    "wstype": "folder"
  },
  "folder_id": "ACTIVE_US!109"
}
```

### Create workspace

Create a workspace in a library, such as one for a new matter.

**Inputs**

- Library (`library`, text, required): The iManage library (database) to work in, such as ACTIVE_US.
- Name (`name`, text, required): The workspace's name.
- Description (`description`, text): A description.
- Client (custom1) (`custom1`, text): The client number, kept in iManage's custom1 field, such as 1077.
- Matter (custom2) (`custom2`, text): The matter number, kept in iManage's custom2 field, such as 0004.
- Owner (`owner`, text): The owner's user ID, such as JSMITH. Defaults to the connected user.
- Default security (`default_security`, text): Who can see it by default. Leave empty for the library's default. One of: `private`, `view` (View only), `public`.

**Outputs**

- `workspace` (object): An iManage workspace (usually one per matter)
- `workspace_id` (text): The new workspace's ID

**Example output**

```json
{
  "workspace": {
    "custom1": "1077",
    "custom2": "0004",
    "database": "ACTIVE_US",
    "default_security": "private",
    "description": "2026 lease renewal for the Main Street office",
    "id": "ACTIVE_US!427",
    "name": "Acme Corp - Lease renewal",
    "owner": "JSMITH"
  },
  "workspace_id": "ACTIVE_US!427"
}
```

### Create workspace folder

Add a folder at the top of a workspace.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or give its ID, such as ACTIVE_US!427.
- Library (`library`, text): The library the item is in. Only needed when the ID is a bare number: IDs from iManage, such as ACTIVE_US!453.1, already name it.
- Name (`name`, text, required): The new folder's name.
- Description (`description`, text): A description.
- Default security (`default_security`, text): Who can see it by default. Leave empty to inherit the workspace's. One of: `inherit` (Inherit from where it is), `private`, `view` (View only), `public`.

**Outputs**

- `folder` (object): An iManage folder
- `folder_id` (text): The new folder's ID

**Example output**

```json
{
  "folder": {
    "database": "ACTIVE_US",
    "default_security": "inherit",
    "description": "Letters to and from the client",
    "id": "ACTIVE_US!108",
    "name": "Correspondence",
    "wstype": "folder"
  },
  "folder_id": "ACTIVE_US!108"
}
```

### Delete document

Delete a document version from iManage. The user needs rights to delete it.

**Inputs**

- Document ID (`document_id`, text, required): The document's ID, such as ACTIVE_US!453.1 (library!number.version), from a search, a trigger or an earlier step.
- Library (`library`, text): The library the item is in. Only needed when the ID is a bare number: IDs from iManage, such as ACTIVE_US!453.1, already name it.

**Outputs**

- `deleted` (true/false): True once it is deleted
- `document_id` (text): The deleted document

**Example output**

```json
{
  "deleted": true,
  "document_id": "ACTIVE_US!453.1"
}
```

### Delete workspace

Delete a workspace and its folders. The user needs rights to delete it.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or give its ID, such as ACTIVE_US!427.
- Library (`library`, text): The library the item is in. Only needed when the ID is a bare number: IDs from iManage, such as ACTIVE_US!453.1, already name it.

**Outputs**

- `deleted` (true/false): True once it is deleted
- `workspace_id` (text): The deleted workspace

**Example output**

```json
{
  "deleted": true,
  "workspace_id": "ACTIVE_US!427"
}
```

### Download document

Get a document's file, for later steps to attach, read or send.

**Inputs**

- Document ID (`document_id`, text, required): The document's ID, such as ACTIVE_US!453.1 (library!number.version), from a search, a trigger or an earlier step.
- Library (`library`, text): The library the item is in. Only needed when the ID is a bare number: IDs from iManage, such as ACTIVE_US!453.1, already name it.

**Outputs**

- `content_type` (text): The file's type, such as application/pdf
- `document_id` (text): The document
- `document_ref` (text): The file, for later steps to use
- `file_name` (text): The file's name
- `size` (number): The file's size in bytes

**Example output**

```json
{
  "content_type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
  "document_id": "ACTIVE_US!453.1",
  "document_ref": "doc_0123456789abcdef0123456789abcdef",
  "file_name": "Engagement letter.docx",
  "size": 48213
}
```

### Get document

Get a document's profile: name, number, version, class, author, client, matter and dates.

**Inputs**

- Document ID (`document_id`, text, required): The document's ID, such as ACTIVE_US!453.1 (library!number.version), from a search, a trigger or an earlier step.
- Library (`library`, text): The library the item is in. Only needed when the ID is a bare number: IDs from iManage, such as ACTIVE_US!453.1, already name it.

**Outputs**

- `document` (object): An iManage document's profile

**Example output**

```json
{
  "document": {
    "author": "JSMITH",
    "class": "DOC",
    "comment": "Signed copy to follow",
    "create_date": "2026-10-28T15:04:11Z",
    "custom1": "1077",
    "custom2": "0004",
    "database": "ACTIVE_US",
    "document_number": 453,
    "edit_date": "2026-10-29T09:12:40Z",
    "extension": "docx",
    "id": "ACTIVE_US!453.1",
    "is_checked_out": false,
    "last_user": "JSMITH",
    "name": "Engagement letter",
    "size": 48213,
    "type": "WORDX",
    "version": 1
  }
}
```

### Get document history

Get a document's history: who opened, changed, printed or moved it, and when.

**Inputs**

- Document ID (`document_id`, text, required): The document's ID, such as ACTIVE_US!453.1 (library!number.version), from a search, a trigger or an earlier step.
- Library (`library`, text): The library the item is in. Only needed when the ID is a bare number: IDs from iManage, such as ACTIVE_US!453.1, already name it.

**Outputs**

- `count` (number): How many there are
- `document_id` (text): The document
- `entries` (list): The history entries

**Example output**

```json
{
  "count": 1,
  "document_id": "ACTIVE_US!453.1",
  "entries": [
    {
      "activity": "Edit",
      "activity_date": "2026-10-29T09:12:40Z",
      "user": "JSMITH"
    }
  ]
}
```

### Get workspace

Get a workspace's profile: name, description, client, matter and owner.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or give its ID, such as ACTIVE_US!427.
- Library (`library`, text): The library the item is in. Only needed when the ID is a bare number: IDs from iManage, such as ACTIVE_US!453.1, already name it.

**Outputs**

- `workspace` (object): An iManage workspace (usually one per matter)

**Example output**

```json
{
  "workspace": {
    "custom1": "1077",
    "custom2": "0004",
    "database": "ACTIVE_US",
    "default_security": "private",
    "description": "2026 lease renewal for the Main Street office",
    "id": "ACTIVE_US!427",
    "name": "Acme Corp - Lease renewal",
    "owner": "JSMITH"
  }
}
```

### List checked-out documents

List the documents checked out in a library.

**Inputs**

- Library (`library`, text, required): The iManage library (database) to work in, such as ACTIVE_US.
- Page size (`limit`, number): How many to return at most, 1 to 500. Defaults to 100. From 1 to 500.
- Skip (`offset`, number): How many to skip, to get the next page. Defaults to 0. At least 0.

**Outputs**

- `count` (number): How many there are
- `documents` (list): The documents
- `library` (text): The library

**Example output**

```json
{
  "count": 1,
  "documents": [
    {
      "author": "JSMITH",
      "class": "DOC",
      "comment": "Signed copy to follow",
      "create_date": "2026-10-28T15:04:11Z",
      "custom1": "1077",
      "custom2": "0004",
      "database": "ACTIVE_US",
      "document_number": 453,
      "edit_date": "2026-10-29T09:12:40Z",
      "extension": "docx",
      "id": "ACTIVE_US!453.1",
      "is_checked_out": true,
      "last_user": "JSMITH",
      "name": "Engagement letter",
      "size": 48213,
      "type": "WORDX",
      "version": 1
    }
  ],
  "library": "ACTIVE_US"
}
```

### List document versions

List the versions of a document the user can see, with each one's profile.

**Inputs**

- Document ID (`document_id`, text, required): The document's ID, such as ACTIVE_US!453.1 (library!number.version), from a search, a trigger or an earlier step.
- Library (`library`, text): The library the item is in. Only needed when the ID is a bare number: IDs from iManage, such as ACTIVE_US!453.1, already name it.

**Outputs**

- `count` (number): How many there are
- `document_id` (text): The document
- `versions` (list): The versions

**Example output**

```json
{
  "count": 1,
  "document_id": "ACTIVE_US!453.1",
  "versions": [
    {
      "author": "JSMITH",
      "class": "DOC",
      "comment": "Signed copy to follow",
      "create_date": "2026-10-28T15:04:11Z",
      "custom1": "1077",
      "custom2": "0004",
      "database": "ACTIVE_US",
      "document_number": 453,
      "edit_date": "2026-10-29T09:12:40Z",
      "extension": "docx",
      "id": "ACTIVE_US!453.1",
      "is_checked_out": false,
      "last_user": "JSMITH",
      "name": "Engagement letter",
      "size": 48213,
      "type": "WORDX",
      "version": 1
    }
  ]
}
```

### List folder documents

List the documents in a folder.

**Inputs**

- Folder ID (`folder_id`, text, required): The folder's ID, such as ACTIVE_US!108, from 'List workspace folders', a trigger or an earlier step.
- Library (`library`, text): The library the item is in. Only needed when the ID is a bare number: IDs from iManage, such as ACTIVE_US!453.1, already name it.
- Page size (`limit`, number): How many to return at most, 1 to 500. Defaults to 100. From 1 to 500.
- Skip (`offset`, number): How many to skip, to get the next page. Defaults to 0. At least 0.

**Outputs**

- `count` (number): How many there are
- `documents` (list): The documents
- `folder_id` (text): The folder

**Example output**

```json
{
  "count": 1,
  "documents": [
    {
      "author": "JSMITH",
      "class": "DOC",
      "comment": "Signed copy to follow",
      "create_date": "2026-10-28T15:04:11Z",
      "custom1": "1077",
      "custom2": "0004",
      "database": "ACTIVE_US",
      "document_number": 453,
      "edit_date": "2026-10-29T09:12:40Z",
      "extension": "docx",
      "id": "ACTIVE_US!453.1",
      "is_checked_out": false,
      "last_user": "JSMITH",
      "name": "Engagement letter",
      "size": 48213,
      "type": "WORDX",
      "version": 1
    }
  ],
  "folder_id": "ACTIVE_US!108"
}
```

### List libraries

List the iManage libraries (databases) the user can open.

**Inputs**: None.

**Outputs**

- `count` (number): How many there are
- `libraries` (list): The libraries

**Example output**

```json
{
  "count": 1,
  "libraries": [
    {
      "id": "ACTIVE_US",
      "type": "worksite"
    }
  ]
}
```

### List subfolders

List the folders inside a folder.

**Inputs**

- Folder ID (`folder_id`, text, required): The folder's ID, such as ACTIVE_US!108, from 'List workspace folders', a trigger or an earlier step.
- Library (`library`, text): The library the item is in. Only needed when the ID is a bare number: IDs from iManage, such as ACTIVE_US!453.1, already name it.
- Page size (`limit`, number): How many to return at most, 1 to 500. Defaults to 100. From 1 to 500.
- Skip (`offset`, number): How many to skip, to get the next page. Defaults to 0. At least 0.

**Outputs**

- `count` (number): How many there are
- `folder_id` (text): The parent folder
- `folders` (list): The folders

**Example output**

```json
{
  "count": 1,
  "folder_id": "ACTIVE_US!108",
  "folders": [
    {
      "database": "ACTIVE_US",
      "default_security": "inherit",
      "description": "Letters to and from the client",
      "id": "ACTIVE_US!109",
      "name": "Drafts",
      "wstype": "folder"
    }
  ]
}
```

### List users

List the users of a library, with their user IDs and email addresses.

**Inputs**

- Library (`library`, text, required): The iManage library (database) to work in, such as ACTIVE_US.
- Page size (`limit`, number): How many to return at most, 1 to 500. Defaults to 100. From 1 to 500.
- Skip (`offset`, number): How many to skip, to get the next page. Defaults to 0. At least 0.

**Outputs**

- `count` (number): How many there are
- `library` (text): The library
- `users` (list): The users

**Example output**

```json
{
  "count": 1,
  "library": "ACTIVE_US",
  "users": [
    {
      "email": "jsmith@example.com",
      "full_name": "Jane Smith",
      "id": "JSMITH",
      "preferred_library": "ACTIVE_US"
    }
  ]
}
```

### List workspace folders

List the folders at the top of a workspace.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or give its ID, such as ACTIVE_US!427.
- Library (`library`, text): The library the item is in. Only needed when the ID is a bare number: IDs from iManage, such as ACTIVE_US!453.1, already name it.
- Page size (`limit`, number): How many to return at most, 1 to 500. Defaults to 100. From 1 to 500.
- Skip (`offset`, number): How many to skip, to get the next page. Defaults to 0. At least 0.

**Outputs**

- `count` (number): How many there are
- `folders` (list): The folders
- `workspace_id` (text): The workspace

**Example output**

```json
{
  "count": 1,
  "folders": [
    {
      "database": "ACTIVE_US",
      "default_security": "inherit",
      "description": "Letters to and from the client",
      "id": "ACTIVE_US!108",
      "name": "Correspondence",
      "wstype": "folder"
    }
  ],
  "workspace_id": "ACTIVE_US!427"
}
```

### Release document check-out

Take the check-out lock off a document, keeping the file it has, so others can change it again.

**Inputs**

- Document ID (`document_id`, text, required): The document's ID, such as ACTIVE_US!453.1 (library!number.version), from a search, a trigger or an earlier step.
- Library (`library`, text): The library the item is in. Only needed when the ID is a bare number: IDs from iManage, such as ACTIVE_US!453.1, already name it.

**Outputs**

- `document_id` (text): The document
- `released` (true/false): True once the lock is off

**Example output**

```json
{
  "document_id": "ACTIVE_US!453.1",
  "released": true
}
```

### Search documents

Find documents in a library by name, document number, client or matter. Give at least one.

**Inputs**

- Library (`library`, text, required): The iManage library (database) to work in, such as ACTIVE_US.
- Name (`name`, text): Text in the document's name (its description in iManage).
- Document number (`document_number`, text): The document number, such as 453.
- Client (custom1) (`custom1`, text): The client number, kept in iManage's custom1 field, such as 1077.
- Matter (custom2) (`custom2`, text): The matter number, kept in iManage's custom2 field, such as 0004.
- Leave out emails (`exclude_emails`, true/false): Only documents, not filed emails.
- Page size (`limit`, number): How many to return at most, 1 to 500. Defaults to 100. From 1 to 500.

**Outputs**

- `count` (number): How many there are
- `documents` (list): The documents
- `library` (text): The library

**Example output**

```json
{
  "count": 1,
  "documents": [
    {
      "author": "JSMITH",
      "class": "DOC",
      "comment": "Signed copy to follow",
      "create_date": "2026-10-28T15:04:11Z",
      "custom1": "1077",
      "custom2": "0004",
      "database": "ACTIVE_US",
      "document_number": 453,
      "edit_date": "2026-10-29T09:12:40Z",
      "extension": "docx",
      "id": "ACTIVE_US!453.1",
      "is_checked_out": false,
      "last_user": "JSMITH",
      "name": "Engagement letter",
      "size": 48213,
      "type": "WORDX",
      "version": 1
    }
  ],
  "library": "ACTIVE_US"
}
```

### Search workspaces

Find workspaces in a library by name, client or matter, or list them all.

**Inputs**

- Library (`library`, text, required): The iManage library (database) to work in, such as ACTIVE_US.
- Name (`name`, text): Text in the workspace's name.
- Client (custom1) (`custom1`, text): The client number, kept in iManage's custom1 field, such as 1077.
- Matter (custom2) (`custom2`, text): The matter number, kept in iManage's custom2 field, such as 0004.
- Page size (`limit`, number): How many to return at most, 1 to 500. Defaults to 100. From 1 to 500.
- Skip (`offset`, number): How many to skip, to get the next page. Defaults to 0. At least 0.

**Outputs**

- `count` (number): How many there are
- `library` (text): The library
- `workspaces` (list): The workspaces

**Example output**

```json
{
  "count": 1,
  "library": "ACTIVE_US",
  "workspaces": [
    {
      "custom1": "1077",
      "custom2": "0004",
      "database": "ACTIVE_US",
      "default_security": "private",
      "description": "2026 lease renewal for the Main Street office",
      "id": "ACTIVE_US!427",
      "name": "Acme Corp - Lease renewal",
      "owner": "JSMITH"
    }
  ]
}
```

### Update document profile

Change a document's name, comments, class, author, client or matter. Fields left empty keep their values.

**Inputs**

- Document ID (`document_id`, text, required): The document's ID, such as ACTIVE_US!453.1 (library!number.version), from a search, a trigger or an earlier step.
- Library (`library`, text): The library the item is in. Only needed when the ID is a bare number: IDs from iManage, such as ACTIVE_US!453.1, already name it.
- Name (`name`, text): The document's new name.
- Comments (`comment`, text): New comments.
- Class (`document_class`, text): The new document class, such as DOC.
- Author (`author`, text): The user ID of the new author, such as JSMITH.
- Client (custom1) (`custom1`, text): The client number, kept in iManage's custom1 field, such as 1077.
- Matter (custom2) (`custom2`, text): The matter number, kept in iManage's custom2 field, such as 0004.

**Outputs**

- `document` (object): An iManage document's profile
- `updated_fields` (list): The fields that were sent

**Example output**

```json
{
  "document": {
    "author": "JSMITH",
    "class": "DOC",
    "comment": "Signed copy to follow",
    "create_date": "2026-10-28T15:04:11Z",
    "custom1": "1077",
    "custom2": "0004",
    "database": "ACTIVE_US",
    "document_number": 453,
    "edit_date": "2026-10-29T09:12:40Z",
    "extension": "docx",
    "id": "ACTIVE_US!453.1",
    "is_checked_out": false,
    "last_user": "JSMITH",
    "name": "Engagement letter",
    "size": 48213,
    "type": "WORDX",
    "version": 1
  },
  "updated_fields": [
    "name"
  ]
}
```

### Update folder

Rename a folder or change its description.

**Inputs**

- Folder ID (`folder_id`, text, required): The folder's ID, such as ACTIVE_US!108, from 'List workspace folders', a trigger or an earlier step.
- Library (`library`, text): The library the item is in. Only needed when the ID is a bare number: IDs from iManage, such as ACTIVE_US!453.1, already name it.
- Name (`name`, text): The folder's new name.
- Description (`description`, text): A description.

**Outputs**

- `folder` (object): An iManage folder
- `folder_id` (text): The folder
- `updated_fields` (list): The fields that were sent

**Example output**

```json
{
  "folder": {
    "database": "ACTIVE_US",
    "default_security": "inherit",
    "description": "Letters to and from the client",
    "id": "ACTIVE_US!108",
    "name": "Correspondence",
    "wstype": "folder"
  },
  "folder_id": "ACTIVE_US!108",
  "updated_fields": [
    "name"
  ]
}
```

### Update workspace

Change a workspace's name, description, client, matter or owner. Fields left empty keep their values.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or give its ID, such as ACTIVE_US!427.
- Library (`library`, text): The library the item is in. Only needed when the ID is a bare number: IDs from iManage, such as ACTIVE_US!453.1, already name it.
- Name (`name`, text): The workspace's new name.
- Description (`description`, text): A description.
- Client (custom1) (`custom1`, text): The client number, kept in iManage's custom1 field, such as 1077.
- Matter (custom2) (`custom2`, text): The matter number, kept in iManage's custom2 field, such as 0004.
- Owner (`owner`, text): The new owner's user ID, such as JSMITH.

**Outputs**

- `updated_fields` (list): The fields that were sent
- `workspace` (object): An iManage workspace (usually one per matter)

**Example output**

```json
{
  "updated_fields": [
    "name"
  ],
  "workspace": {
    "custom1": "1077",
    "custom2": "0004",
    "database": "ACTIVE_US",
    "default_security": "private",
    "description": "2026 lease renewal for the Main Street office",
    "id": "ACTIVE_US!427",
    "name": "Acme Corp - Lease renewal",
    "owner": "JSMITH"
  }
}
```

### Upload document

File a new document into a folder, with its profile. Give a file, or text to store as a text file.

**Inputs**

- Folder ID (`folder_id`, text, required): The folder's ID, such as ACTIVE_US!108, from 'List workspace folders', a trigger or an earlier step.
- Library (`library`, text): The library the item is in. Only needed when the ID is a bare number: IDs from iManage, such as ACTIVE_US!453.1, already name it.
- File (`file`, text): The file: upload one or pick one from an earlier step.
- Text (`content`, text): Text to store as the file, when no file is given.
- File name (`file_name`, text): The file's name with its extension, such as letter.docx. Its extension is the document's file type.
- Name (`name`, text): The document's name in iManage. Defaults to the file name without its extension.
- Class (`document_class`, text): The document class, such as DOC (used when left empty) or MEMO. Your library's classes are in iManage's profile form.
- Comments (`comment`, text): Comments on the document.
- Client (custom1) (`custom1`, text): The client number, kept in iManage's custom1 field, such as 1077.
- Matter (custom2) (`custom2`, text): The matter number, kept in iManage's custom2 field, such as 0004.

**Outputs**

- `document` (object): An iManage document's profile
- `document_id` (text): The new document's ID
- `file_name` (text): The name the file was sent as

**Example output**

```json
{
  "document": {
    "author": "JSMITH",
    "class": "DOC",
    "comment": "Signed copy to follow",
    "create_date": "2026-10-28T15:04:11Z",
    "custom1": "1077",
    "custom2": "0004",
    "database": "ACTIVE_US",
    "document_number": 453,
    "edit_date": "2026-10-29T09:12:40Z",
    "extension": "docx",
    "id": "ACTIVE_US!453.1",
    "is_checked_out": false,
    "last_user": "JSMITH",
    "name": "Engagement letter",
    "size": 48213,
    "type": "WORDX",
    "version": 1
  },
  "document_id": "ACTIVE_US!453.1",
  "file_name": "Engagement letter.docx"
}
```
