Send a message
const url = 'https://api.gampeon.com/v1/communities/1/channels/1/messages';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"body":"example","replyTo":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Community ID
Channel ID
Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Sent
object
Handles mentioned with @
Unix time in milliseconds
Unix time in milliseconds
object
Deleted by the author, removed by community moderators or by GAMPEON
Unix time in milliseconds
Unix time in milliseconds
Example
{ "replyTo": { "removed": true }}Error codes: invalid_field, too_many_links
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}Error codes: unauthorized
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}Error codes: token_not_allowed, missing_permission, timed_out
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}Error codes: not_found
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}Limit: 10 per 10 seconds and 600 per hour per account. Error codes: rate_limited, slowmode
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}