---
title: "Send a message"
method: POST
path: "/v1/actions/send_message"
tags: ["Messages"]
---

# Send a message

`POST /v1/actions/send_message`

## Request

- Base URL: `https://api.heyreagent.com`
- URL: `https://api.heyreagent.com/v1/actions/send_message`
- Auth: HTTP bearer

Send one message to a 1st-degree connection, or into an existing conversation, now.

Pass profileUrl or conversationId, one of them.

LinkedIn delivers an ordinary message only to a 1st-degree connection. For anyone else: send_invitation first, or start_conversation with inmail.

Docs: https://heyreagent.com/docs/actions/send_message

## Request body

- object
  - `text` string, required: The message text.
  - `profileUrl` string: LinkedIn profile URL of the 1st-degree connection to message.
  - `conversationId` string: Id of an existing conversation to send into, instead of a profile URL.
  - `connectionId` string: Which of your LinkedIn accounts to act from (its id from list_linkedin_accounts). Omit to use your first live one.

## Response `200`

It worked. Inside result: sent, conversationId, messageId, text, from, usedToday, dailyLimit.

- Worked
  - `ok` true, required
  - `result` object, required: What was asked for. A field that does not apply is left out, or is null.

## Other responses

- `default`: It did not work. The message says why, in plain English.

---

[API](https://skmtc.dev/heyreagent/apis/heyreagent-api.md) · [All operations](https://skmtc.dev/heyreagent/apis/heyreagent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/heyreagent/apis/heyreagent-api/revisions/917360c5f841?raw)
