PeumeAPI

Social publishing & inbox · Discord

Send a Discord Direct Message

Send a 1:1 Direct Message from the bot to a Discord user (by snowflake ID). Supports the same payload shape as channel posts: content, embeds, media attachments, and TTS.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/send-a-discord-direct-message \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "accountId": "65a1b2c3d4e5f60718293a4b",
    "userId": "1234567890123456789"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: send-a-discord-direct-message.

Parameters

accountIdRequiredstring

SocialAccount _id of the connected Discord account the bot speaks as. Caller must own the account (directly or via team membership).

Example: 65a1b2c3d4e5f60718293a4b

userIdRequiredstring

Discord snowflake ID of the recipient (15-21 digits).

Example: 1234567890123456789

contentstring

Message text, up to 2,000 characters.

embedsarray

Up to 10 Discord embeds. Same shape as channel-post embeds (title, description, color, fields, etc.). See DiscordPlatformData.embeds for the embed object schema.

attachmentsarray

Up to 10 media attachments. Each is `{ type: image|video|gif|document, url, filename?, mimeType?, size? }`.

ttsboolean

Send as text-to-speech message.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.