---
title: "Send a Discord Direct Message — estimate"
method: POST
path: "/v1/messaging/discord/dms/estimate"
tags: ["Discord"]
---

# Send a Discord Direct Message — estimate

`POST /v1/messaging/discord/dms/estimate`

## Request

- Base URL: `https://apihub.co.il`
- URL: `https://apihub.co.il/v1/messaging/discord/dms/estimate`
- Auth: HTTP bearer

Price the request without executing it. Same body as `POST /v1/messaging/discord/dms`.

## Request body

- object
  - `tts` boolean: Send as text-to-speech message.
  - `embeds` object[]: Up to 10 Discord embeds. Same shape as channel-post embeds (title, description, color, fields, etc.). See DiscordPlatformData.embeds for the embed object schema.
  - `userId` string, required: Discord snowflake ID of the recipient (15-21 digits).
  - `content` string: Message text, up to 2,000 characters.
  - `accountId` string, required: SocialAccount _id of the connected Discord account the bot speaks as. Caller must own the account (directly or via team membership).
  - `attachments` object[]: Up to 10 media attachments. Each is `{ type: image|video|gif|document, url, filename?, mimeType?, size? }`.
    - `url` string, uri, required
    - `size` integer
    - `type` 'image' | 'video' | 'gif' | 'document', required
    - `filename` string
    - `mimeType` string

## Response `200`

Estimate

- Estimate
  - `operation` string
  - `estimated_credits` number
  - `credits_to_reserve` number
  - `estimated_usage` object
  - `note` string, nullable
  - `balance` object
    - `available` number
  - `sufficient` boolean

---

[API](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai.md) · [All operations](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai/revisions/a8caa42835ce?raw)
