Messaging / REST API
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.
POST /api/unipile/conversations/{conversationId}/send-messageDeterministic operationParameters
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.
curl -X POST "https://app.pipeline.help/api/unipile/conversations/00000000-0000-4000-8000-000000000000/send-message" \
-H "Authorization: Bearer $PIPELINE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"linkedinAccountId":"00000000-0000-4000-8000-000000000000","message":"example","idempotencyKey":"example1"}'Full 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"
]
}