---
title: "Send a contact a direct message on their own account (approval as configured)"
method: POST
path: "/api/v1/contacts/{id}/messages"
---

# Send a contact a direct message on their own account (approval as configured)

`POST /api/v1/contacts/{id}/messages`

## Request

- Base URL: `https://hivepublish.com`
- URL: `https://hivepublish.com/api/v1/contacts/{id}/messages`
- Auth: HTTP bearer

Runs send_direct_message with the same scope, permission and approval rules.

## Path parameters

- `id` string, uuid, required

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `text` string, required
  - `approvalToken` string

## Response `200`

Tool result

- ToolResult
  - `data` unknown, required
  - `meta` object, required
    - `tool` string
    - `workspaceId` string, uuid

## Other responses

- `400`: Invalid input
- `401`: Missing or invalid credential
- `403`: Missing workspace scope, role permission, or plan entitlement

---

[API](https://skmtc.dev/hivepublish/apis/hive-developer-api.md) · [All operations](https://skmtc.dev/hivepublish/apis/hive-developer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hivepublish/apis/hive-developer-api/revisions/b440c763583e?raw)
