- Introduction
- Getting Started
- Permissions
- Core Resources
- Channels
- Messages
- Teams
- Roles
- Users
- Todos
- Direct Messages
- Applications
- Reactions
- Attachments
- Voice
- Webhooks
- Blog
- Category
- Schemas
- Websockets
- Example Bot
- WebSocket event envelope
- Websocket events
- CHANNEL_CREATED
- CHANNEL_DELETED
- CHANNEL_UPDATED
- MESSAGE_SEND
- MESSAGE_UPDATED
- MESSAGE_DELETED
- MESSAGE_REACTION_ADDED
- MESSAGE_REACTION_REMOVED
- PRESENCE_UPDATE
- TEAM_ROLE_CREATED
- TEAM_ROLE_DELETED
- TEAM_ROLES_UPDATED
- TEAM_UPDATED
- TODO_ITEM_CREATED
- TODO_ITEM_DELETED
- TODO_ITEM_UPDATED
- USER_JOINED_TEAM
- USER_LEFT_TEAM
- USER_JOINED_VOICE_CHANNEL
- USER_LEFT_VOICE_CHANNEL
- USER_PROFILE_UPDATED
- USER_ROLE_ADDED
- USER_ROLE_REMOVED
- USER_UPDATED_VOICE_METADATA
- BLOG_CREATED
- BLOG_DELETED
- CATEGORIES_PRIORITY_UPDATED
- CATEGORY_UPDATED
- CATEGORY_DELETED
- CATEGORY_CREATED
- CHANNELS_PRIORITY_UPDATED
- Connecting via WebSocket
Create Channel Message
POST
https://api.teamly.one/api/v1/channels/{channelId}/messages
Channel
Request
Path Params
channelId
string
required
Header Params
Authorization
string
required
Default:
Bot {token}
Content-Type
string
required
Default:
application/json
Body Params application/json
content
string | null
required
<= 2000 characters
embeds
array[object (Message Embed) {8}]
required
<= 5 items
title
string | null
required
<= 16 characters
description
string | null
required
<= 1024 characters
url
string <uri> | null
optional
color
number | null
required
author
object | null
required
thumbnail
object | null
required
image
object | null
required
footer
object | null
required
attachments
array [object {3}]
required
url
string
required
name
string
required
fileSizeBytes
number
required
replyTo
string
optional
Example
{
"content": "string",
"embeds": [
{
"title": "string",
"description": "string",
"url": "http://example.com",
"color": 0,
"author": {
"name": "string",
"icon_url": "http://example.com"
},
"thumbnail": {
"url": "http://example.com"
},
"image": {
"url": "http://example.com"
},
"footer": {
"text": "string",
"icon_url": "http://example.com"
}
}
],
"attachments": [
{
"url": "string",
"name": "string",
"fileSizeBytes": 0
}
],
"replyTo": "string"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.teamly.one/api/v1/channels//messages' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw ''
Responses
🟢200OK
application/json
Body
success
boolean
required
message
object (Message)
required
id
string
required
channelId
string
required
type
string
required
content
string | null
required
<= 2000 characters
attachments
array [object] | null
optional
<= 5 items
createdBy
object (User)
required
editedAt
string <date-time>
optional
replyTo
string
optional
embeds
array[object (Message Embed) {8}]
required
<= 5 items
emojis
array [object {1}]
optional
reactions
array [object {3}]
optional
nonce
string
optional
createdAt
string