Skip to content
AtlasDocs
Sign inGet started
Updated Oct 03, 2026

Webhook Namespace

Send an HTTP POST from your app: Discord, Slack or your own server. It has nothing to do with Atlas sign-in. It is here so you do not need a second HTTP library.

All three calls

// Plaintext Discord message.
Atlas::Webhook::SendDiscord(
"https://discord.com/api/webhooks/...",
"User 'marcus.reyes' just signed in from 192.0.2.1");
// Discord embed with a custom colour. Color is 0xRRGGBB, default 0x3498db.
Atlas::Webhook::SendDiscordEmbed(
"https://discord.com/api/webhooks/...",
"Order Placed",
"User 'marcus.reyes' placed order #1234",
0x22c55e); // green
// Arbitrary JSON - Slack, custom endpoints, telemetry.
Atlas::Webhook::Send(
"https://hooks.slack.com/services/...",
R"({"text":"hello from atlas"})");

SendDiscord

SendDiscordbool SendDiscord(const std::string& webhook_url, const std::string& message);
Atlas.h:177
Plaintext Discord webhook message.
Parameters
NameTypeDescription
webhook_urlstringDiscord webhook URL from Server Settings → Integrations → Webhooks.
messagestringThe message body.
Returns
boolWhether the POST was accepted by the URL.

SendDiscordEmbed

SendDiscordEmbedbool SendDiscordEmbed(const std::string& webhook_url, const std::string& title, const std::string& description, int color = 0x3498db);
Atlas.h:178
Discord embed with title, description, and an accent colour.
Parameters
NameTypeDescription
webhook_urlstringDiscord webhook URL.
titlestringEmbed title.
descriptionstringEmbed body.
coloroptionalint= 0x3498db0xRRGGBB. Default is Discord blue.
Returns
boolWhether the POST was accepted.

Send

Sendbool Send(const std::string& url, const std::string& json_payload);
Atlas.h:179
POST an arbitrary JSON payload - Slack incoming webhooks, custom endpoints, telemetry.
Parameters
NameTypeDescription
urlstringTarget URL.
json_payloadstringThe JSON body to send.
Returns
boolWhether the POST was accepted.