Discord

Send a Discord Direct Message — estimate

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

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

Request body

ttsboolean

Send as text-to-speech message.

embedsobject[]

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

userIdstring required

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

contentstring

Message text, up to 2,000 characters.

accountIdstring required

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

Response

Estimate

operationstring
estimated_creditsnumber
credits_to_reservenumber
estimated_usageobject
notestring nullable
sufficientboolean

Changes

No recorded changes to this operation across all 2 revisions of this API.