> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Salesforge: Get Workspaces Workspaceid Mailboxes Mailboxid Threads Threadid

> Get an email thread from a Salesforge mailbox by its ID. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Get an email thread from a Salesforge mailbox by its ID.

> [!NOTE]
>
> Tool ID: `salesforge_get_workspaces_workspaceid_mailboxes_mailboxid_threads_threadid`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'salesforge_get_workspaces_workspaceid_mailboxes_mailboxid_threads_threadid',
  {
    "workspaceID": "workspace_123",
    "mailboxID": "mailbox_123",
    "threadID": "thread_123"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute salesforge_get_workspaces_workspaceid_mailboxes_mailboxid_threads_threadid --input '{
  "workspaceID": "workspace_123",
  "mailboxID": "mailbox_123",
  "threadID": "thread_123"
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "contact": {
      "company": "Example Corp",
      "email": "jane.doe@example.com",
      "firstName": "Jane"
    },
    "emails": [
      {
        "attachments": [
          {}
        ],
        "bccs": [
          {}
        ],
        "ccs": [
          {}
        ]
      }
    ],
    "linkedinMessages": [
      {
        "accountId": 123,
        "attachments": [
          {}
        ],
        "date": "2026-01-15T12:00:00Z"
      }
    ]
  }
}
```

Use `deepline describe salesforge_get_workspaces_workspaceid_mailboxes_mailboxid_threads_threadid --json` for the latest machine-readable contract.

## Input reference

Get thread information.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.workspaceID` | `string` | Yes | — | Workspace ID |
| `payload.mailboxID` | `string` | Yes | — | Mailbox ID |
| `payload.threadID` | `string` | Yes | — | Thread ID |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Get thread information.",
    "properties": {
      "workspaceID": {
        "type": "string",
        "description": "Workspace ID"
      },
      "mailboxID": {
        "type": "string",
        "description": "Mailbox ID"
      },
      "threadID": {
        "type": "string",
        "description": "Thread ID"
      }
    },
    "required": [
      "workspaceID",
      "mailboxID",
      "threadID"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.contact` | `object` | No | — | — |
| `result.data.contact.company` | `string` | No | — | — |
| `result.data.contact.email` | `string` | No | — | — |
| `result.data.contact.firstName` | `string` | No | — | — |
| `result.data.contact.id` | `string` | No | — | — |
| `result.data.contact.lastName` | `string` | No | — | — |
| `result.data.contact.linkedinUrl` | `string` | No | — | — |
| `result.data.emails` | `array` | No | — | — |
| `result.data.emails[].attachments` | `array` | No | — | — |
| `result.data.emails[].attachments[].contentId` | `string` | No | — | — |
| `result.data.emails[].attachments[].contentType` | `string` | No | — | — |
| `result.data.emails[].attachments[].embedded` | `boolean` | No | — | — |
| `result.data.emails[].attachments[].filename` | `string` | No | — | — |
| `result.data.emails[].attachments[].id` | `string` | No | — | — |
| `result.data.emails[].attachments[].inline` | `boolean` | No | — | — |
| `result.data.emails[].attachments[].size` | `integer` | No | — | — |
| `result.data.emails[].bccs` | `array` | No | — | — |
| `result.data.emails[].bccs[].email` | `string` | No | — | — |
| `result.data.emails[].bccs[].name` | `string` | No | — | — |
| `result.data.emails[].ccs` | `array` | No | — | — |
| `result.data.emails[].ccs[].email` | `string` | No | — | — |
| `result.data.emails[].ccs[].name` | `string` | No | — | — |
| `result.data.emails[].content` | `string` | No | — | — |
| `result.data.emails[].date` | `string` | No | — | — |
| `result.data.emails[].emailId` | `string` | No | — | — |
| `result.data.emails[].fromAddress` | `string` | No | — | — |
| `result.data.emails[].id` | `string` | No | — | — |
| `result.data.emails[].subject` | `string` | No | — | — |
| `result.data.emails[].toAddress` | `string` | No | — | — |
| `result.data.emails[].tos` | `array` | No | — | — |
| `result.data.emails[].tos[].email` | `string` | No | — | — |
| `result.data.emails[].tos[].name` | `string` | No | — | — |
| `result.data.emails[].type` | `string` | No | — | — |
| `result.data.linkedinMessages` | `array` | No | — | — |
| `result.data.linkedinMessages[].accountId` | `integer` | No | — | — |
| `result.data.linkedinMessages[].attachments` | `array` | No | — | — |
| `result.data.linkedinMessages[].attachments[].contentType` | `string` | No | — | — |
| `result.data.linkedinMessages[].attachments[].filename` | `string` | No | — | — |
| `result.data.linkedinMessages[].attachments[].id` | `string` | No | — | — |
| `result.data.linkedinMessages[].attachments[].size` | `integer` | No | — | — |
| `result.data.linkedinMessages[].attachments[].type` | `string` | No | — | — |
| `result.data.linkedinMessages[].attachments[].url` | `string` | No | — | — |
| `result.data.linkedinMessages[].date` | `string` | No | — | — |
| `result.data.linkedinMessages[].direction` | `"inbound" \| "outbound"` | No | — | Allowed: `inbound`, `outbound`. |
| `result.data.linkedinMessages[].firstName` | `string` | No | — | — |
| `result.data.linkedinMessages[].id` | `string` | No | — | — |
| `result.data.linkedinMessages[].lastName` | `string` | No | — | — |
| `result.data.linkedinMessages[].linkedinUrl` | `string` | No | — | — |
| `result.data.linkedinMessages[].message` | `string` | No | — | — |

The table shows the first 50 fields. Expand the raw schema below for every field.

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "contact": {
            "type": "object",
            "properties": {
              "company": {
                "type": "string"
              },
              "email": {
                "type": "string"
              },
              "firstName": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "lastName": {
                "type": "string"
              },
              "linkedinUrl": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "emails": {
            "type": "array",
            "uniqueItems": false,
            "items": {
              "type": "object",
              "properties": {
                "attachments": {
                  "type": "array",
                  "uniqueItems": false,
                  "items": {
                    "type": "object",
                    "properties": {
                      "contentId": {
                        "type": "string"
                      },
                      "contentType": {
                        "type": "string"
                      },
                      "embedded": {
                        "type": "boolean"
                      },
                      "filename": {
                        "type": "string"
                      },
                      "id": {
                        "type": "string"
                      },
                      "inline": {
                        "type": "boolean"
                      },
                      "size": {
                        "type": "integer"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "bccs": {
                  "type": "array",
                  "uniqueItems": false,
                  "items": {
                    "type": "object",
                    "properties": {
                      "email": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "ccs": {
                  "type": "array",
                  "uniqueItems": false,
                  "items": {
                    "type": "object",
                    "properties": {
                      "email": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "content": {
                  "type": "string"
                },
                "date": {
                  "type": "string"
                },
                "emailId": {
                  "type": "string"
                },
                "fromAddress": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "subject": {
                  "type": "string"
                },
                "toAddress": {
                  "type": "string"
                },
                "tos": {
                  "type": "array",
                  "uniqueItems": false,
                  "items": {
                    "type": "object",
                    "properties": {
                      "email": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "type": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "linkedinMessages": {
            "type": "array",
            "uniqueItems": false,
            "items": {
              "type": "object",
              "properties": {
                "accountId": {
                  "type": "integer"
                },
                "attachments": {
                  "type": "array",
                  "uniqueItems": false,
                  "items": {
                    "type": "object",
                    "properties": {
                      "contentType": {
                        "type": "string"
                      },
                      "filename": {
                        "type": "string"
                      },
                      "id": {
                        "type": "string"
                      },
                      "size": {
                        "type": "integer"
                      },
                      "type": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "date": {
                  "type": "string"
                },
                "direction": {
                  "type": "string",
                  "enum": [
                    "inbound",
                    "outbound"
                  ]
                },
                "firstName": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "lastName": {
                  "type": "string"
                },
                "linkedinUrl": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                },
                "profilePictureUrl": {
                  "type": "string"
                },
                "subject": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "sequence": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "product": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "internalName": {
                    "type": "string"
                  },
                  "translations": {
                    "type": "array",
                    "uniqueItems": false,
                    "items": {
                      "type": "object",
                      "properties": {
                        "costOfInaction": {
                          "type": "string"
                        },
                        "idealCustomerProfile": {
                          "type": "string"
                        },
                        "industry": {
                          "type": "string"
                        },
                        "language": {
                          "type": "string",
                          "enum": [
                            "russian",
                            "ukrainian",
                            "finnish",
                            "american_english",
                            "british_english",
                            "french",
                            "spanish",
                            "polish",
                            "romanian",
                            "german",
                            "lithuanian",
                            "dutch",
                            "latvian",
                            "italian",
                            "czech",
                            "hungarian",
                            "japanese",
                            "brazilian_portugese",
                            "swedish",
                            "danish",
                            "norwegian",
                            "estonian"
                          ]
                        },
                        "name": {
                          "type": "string"
                        },
                        "pain": {
                          "type": "string"
                        },
                        "proofPoints": {
                          "type": "string"
                        },
                        "solution": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "type": "string",
                "enum": [
                  "active",
                  "draft",
                  "paused",
                  "deleted",
                  "completed",
                  "video_pending"
                ]
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Salesforge provider guide](https://deepline.com/docs/providers/salesforge/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.