Messaging / TypeScript SDK

Send message

Send a LinkedIn message in a conversation. Reuse the same idempotencyKey for retries within 24 hours. Verify delivery after uncertain results before creating a new key.

pipeline.sendMessageDeterministic operation

Parameters

workspaceIdOptional · string
Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client.
conversationIdRequired · string
See the input schema for this field.
linkedinAccountIdRequired · string
See the input schema for this field.
messageRequired · string
See the input schema for this field.
idempotencyKeyRequired · string
See the input schema for this field.
Request example
await pipeline.sendMessage({
  "conversationId": "00000000-0000-4000-8000-000000000000",
  "linkedinAccountId": "00000000-0000-4000-8000-000000000000",
  "message": "example",
  "idempotencyKey": "example1"
})
Full input schema
Input schema
{
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "description": "Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client."
    },
    "conversationId": {
      "type": "string"
    },
    "linkedinAccountId": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "idempotencyKey": {
      "type": "string",
      "minLength": 8,
      "maxLength": 160,
      "pattern": "^[A-Za-z0-9._-]+$"
    }
  },
  "required": [
    "conversationId",
    "linkedinAccountId",
    "message",
    "idempotencyKey"
  ]
}
See this operation inCLI MCP REST API
TypeScript SDK | Pipeline v2 preview