Skip to content
GAMPEONCreate
New project

Send a message

POST
/v1/communities/{id}/channels/{channelId}/messages
curl --request POST \
--url https://api.gampeon.com/v1/communities/1/channels/1/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "body": "example", "replyTo": 1 }'

Needs sendMessages in the channel and no timeout. Up to 2000 characters and 5 links. @handle mentions members who can see the channel. Slow mode applies unless you have manageMessages.

Not available with access tokens.

Rate limit: 10 per 10 seconds and 600 per hour per account.

id
required
integer
>= 1

Community ID

channelId
required
integer
>= 1

Channel ID

Media typeapplication/json
object
body
required
string
>= 1 characters <= 2000 characters
replyTo
One of:

Message ID in the same channel

integer

Example generated

{
"body": "example",
"replyTo": 1
}

Sent

Media typeapplication/json
One of:
object
id
required
integer
channelId
required
integer
author
required
One of:
object
handle
required
string
/^[a-z0-9_]{3,24}$/
displayName
required
string
avatar
required
One of:

Image path under /v1/media/ (studio logo or project key art)

string
body
required
string
replyTo
required
One of:
One of:
object
id
required
integer
author
required
One of:
object
handle
required
string
displayName
required
string
excerpt
required
string
mentions
required

Handles mentioned with @

Array<string>
createdAt
required

Unix time in milliseconds

integer format: int64
updatedAt
required

Unix time in milliseconds

integer format: int64
editedAt
required
One of:

Unix time in milliseconds

integer format: int64

Example

{
"replyTo": {
"removed": true
}
}

Error codes: invalid_field, too_many_links

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Error codes: unauthorized

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Error codes: token_not_allowed, missing_permission, timed_out

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Error codes: not_found

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Limit: 10 per 10 seconds and 600 per hour per account. Error codes: rate_limited, slowmode

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Report a problem with this pageOther ways to give feedback