Messages

create message

post/channels/{channel_id}/messages

Request

  • Base URL
    http://{{baseurl}}
  • URL
    http://{{baseurl}}/channels/{channel_id}/messages
  • Auth
    HTTP apikey

Path parameters

channel_idstring required

(Required)

Headers

Content-Typestring

Request body application/x-www-form-urlencoded

contentstring
embedsstring
allowed_mentionsstring
sticker_idsstring
componentsstring
flagsstring
attachmentsstring
message_referencestring
noncestring
ttsstring

Example request

{
  "content": "<string,null>",
  "embeds": "{\"type\":\"<string,null>\",\"url\":\"<string,null>\",\"title\":\"<string,null>\",\"color\":\"<integer,null>\",\"timestamp\":\"<string,null-date-time>\",\"description\":\"<string,null>\",\"author\":\"<null>\",\"image\":\"<null>\",\"thumbnail\":\"<null>\",\"footer\":\"<null>\",\"fields\":[{\"name\":\"<string>\",\"value\":\"<string>\",\"inline\":\"<boolean,null>\"},{\"name\":\"<string>\",\"value\":\"<string>\",\"inline\":\"<boolean,null>\"}],\"provider\":\"<null>\",\"video\":\"<null>\"}",
  "allowed_mentions": "<null>",
  "sticker_ids": "<string,null-snowflake>",
  "components": "{\"type\":\"<integer>\",\"custom_id\":\"<string>\",\"placeholder\":\"<string,null>\",\"min_values\":\"<integer,null>\",\"max_values\":\"<integer,null>\",\"disabled\":\"<boolean,null>\"}",
  "flags": "<integer,null>",
  "attachments": "{\"id\":\"<snowflake>\",\"filename\":\"<string,null>\",\"description\":\"<string,null>\"}",
  "message_reference": "<null>",
  "nonce": "<string,null>",
  "tts": "<boolean,null>"
}

Response

OK

Changes

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