RapidNotifyBot provides a simple and flexible API for sending notifications. Users can send a POST request to the bot's API endpoint with their unique API key and custom data.
- Endpoint: /RapidNotify
- Method: POST
- Content-Type: application/json
The request payload should be a JSON object with the following structure:
- api_key (string, required): Your unique API key.
- data (object, required): Custom key-value data to be included in the notification.
Using cURL:
curl -X POST -H "Content-Type: application/json" -d '{"api_key": "your_unique_api_key", "data": {"name": "Amit Das", "github_profile": "github.com/mramitdas"}}' https://rapidnotifybot.com/send-notificationUpon successful submission, the API will respond with a success message:
{
"status": "success",
"message": "Notification sent successfully."
}In case of an error, an error message will be returned:
{
"status": "error",
"message": "Invalid API key. Please provide a valid API key."
}Please refer to the Contributing Guidelines for more information on error handling and reporting issues.
Note: Ensure that you replace placeholders such as your_unique_api_key with your actual API key and customize the data payload according to your requirements.
Feel free to add more details or expand on specific aspects based on your bot's functionalities and user needs.