🚀
Alerta
  • Welcome!
  • Quick Start
  • Tutorial Video
  • Reference
    • API Reference
      • Send message
      • Reply a message
Powered by GitBook
On this page
  1. Reference
  2. API Reference

Send message

Sending a message to a channel

POST https://api.usealerta.com/v1/send

Send a new message. Ensure to set your header to secretKey: secret xxx

Request Body

Name
Type
Description

channel*

string

The name of the channel

message*

string

The message you want to send to the channel

replyTo

boolean

set to true if you want to reply to the message in future, it will return necessary params

{
    "statusCode": 200,
    "message": "Message sent successfully",
    "data": {
        "channelRef": "C_ALT_K37P78TMA3T5XW"
    }
}
{
    "statusCode": 403,
    "message": "Invalid API key",
    "error": "Forbidden"
}
PreviousAPI ReferenceNextReply a message

Last updated 10 months ago