---
title: "Post Dm"
method: POST
path: "/api/linkedin-poc/dm"
tags: ["LinkedInPoC"]
---

# Post Dm

`POST /api/linkedin-poc/dm`

Send a DM to a prospect whose connection request was accepted.

``sent_id`` must be the UUID of an existing ``kind='connection_request'``
row whose ``connection_state`` is 'accepted'.  Returns the DM result; a
transport-level failure is surfaced as ``ok=false`` in the body rather
than an HTTP error so the UI can display the error without extra handling.

## Cookies

- `ex_access` string, nullable
- `ex_org` string, nullable

## Request body

- DmRequest
  - `sent_id` string, required
  - `text` string, required

## Response `200`

Successful Response

- DmResponse
  - `ok` boolean, required
  - `sent_id` string, nullable
  - `provider_message_ref` string, nullable
  - `error` string, nullable
  - `retryable` boolean, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/explee/apis/explee-api.md) · [All operations](https://skmtc.dev/explee/apis/explee-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/explee/explee-api/revisions/f169bc6e9447/schema)
