Request a LinkedIn PDF export

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://docs.usehearsay.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "integrations MCP server": {
    "url": "https://docs.usehearsay.com/mcp"
  }
}

Close
POST /linkedin/{caseId}/{linkedInId}/export

Creates a PDF export job for one type of LinkedIn data (conversations, connections, job applications and so on) from a profile in the case, queues it, and returns the job id; poll the export status route for the result. Returns 404 if the profile is not linked to the case. On a case shared with opposing counsel, a profile the caller may not see also returns 404.

Path parameters

  • caseId string Required
  • linkedInId string Required
application/json

Body Required

  • linkedInExportType string Required

    LinkedIn data type to export.

    Values are conversations, connections, job-applications, rich-media, saved-jobs, saved-job-alerts, or saved-items.

  • sortBy string

    Sort order for exported records.

    Values are old-to-new or new-to-old.

  • tags array[string]

    Filter by tag IDs. Only exports records that have all of the provided tags.

  • exportConfig array[string]

    Export configuration flags (e.g. include tags in output).

    Values are phone-numbers, comments, tags, app-icons, device-name, images, hide-attachment-links, extra-texts, line-break, device-logs, custom-entry, recently-deleted, deleted-messages-inline, deleted-messages-page, deleted-messages-inline-page, ignore-conversations, search-history-page, hide-page-numbers, or print-footer-work-timestamp.

  • custodianName string

    Custodian name to display on the cover page.

  • conversationIds array[string]

    Specific conversation IDs to export. Only used when linkedInExportType is "conversations". When omitted, all conversations are exported.

Responses

  • 201 application/json
    Hide response attributes Show response attributes object
    • data object Required
      Hide data attribute Show data attribute object
      • jobId string Required
    • statusCode number Required
    • timestamp string(date-time) Required
POST /linkedin/{caseId}/{linkedInId}/export
curl \
 --request POST 'http://api.example.com/linkedin/{caseId}/{linkedInId}/export' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{
  "linkedInExportType": "conversations",
  "sortBy": "old-to-new",
  "tags": [
    "string"
  ],
  "exportConfig": [
    "phone-numbers"
  ],
  "custodianName": "string",
  "conversationIds": [
    "string"
  ]
}'
Request examples
{
  "linkedInExportType": "conversations",
  "sortBy": "old-to-new",
  "tags": [
    "string"
  ],
  "exportConfig": [
    "phone-numbers"
  ],
  "custodianName": "string",
  "conversationIds": [
    "string"
  ]
}
Response examples (201)
{
  "data": {
    "jobId": "65a1b2c3d4e5f6a7b8c9d0e1"
  },
  "statusCode": 201,
  "timestamp": "2026-01-15T10:15:00.000Z"
}