Skip to main content

Endpoint

POST /api/slowhooks/send-discord-webhook
PATCH /api/slowhooks/send-discord-webhook

Overview

This endpoint allows you to send new Discord webhook messages or edit existing ones by providing the webhook URL, message content or embeds, and (for edits) the message ID.

Authentication

This endpoint requires an API key. You can retrieve an API key from your dashboard. Include it in the X-API-KEY header:
X-API-KEY: YOUR_API_KEY_HERE
For more details, see the Authentication Guide.

Request Body

For sending new messages (POST)

FieldTypeRequiredDescription
webhookUrlstring✅ yesFull Discord webhook URL (must be https on discord.com or discordapp.com).
payloadobject✅ yesDiscord message payload. Must have content or at least one embed.
Example payload:
{
  "webhookUrl": "https://discord.com/api/webhooks/123/abc",
  "payload": {
    "content": "Hello from SlowNet!",
    "embeds": [
      {
        "title": "My Embed",
        "description": "This is an embed description."
      }
    ]
  }
}

For editing messages (PATCH)

FieldTypeRequiredDescription
webhookUrlstring✅ yesDiscord webhook URL.
messageIdstring✅ yesID of the Discord message to edit.
payloadobject✅ yesUpdated Discord message payload. Same rules as above.

Request Examples

cURL (send new)

curl -X POST   'https://theslow.net/api/slowhooks/send-discord-webhook'   -H 'X-API-KEY: YOUR_API_KEY'   -H 'Content-Type: application/json'   -d '{
    "webhookUrl": "https://discord.com/api/webhooks/123/abc",
    "payload": {
      "content": "Hello from SlowNet!"
    }
  }'

cURL (edit existing)

curl -X PATCH   'https://theslow.net/api/slowhooks/send-discord-webhook'   -H 'X-API-KEY: YOUR_API_KEY'   -H 'Content-Type: application/json'   -d '{
    "webhookUrl": "https://discord.com/api/webhooks/123/abc",
    "messageId": "987654321",
    "payload": {
      "content": "Updated message content."
    }
  }'

Python (send new)

import requests

BASE_URL = "https://theslow.net/api"
API_KEY = "YOUR_API_KEY"

payload = {
    "webhookUrl": "https://discord.com/api/webhooks/123/abc",
    "payload": {
        "content": "Hello from SlowNet!"
    }
}

headers = {
    "X-API-KEY": API_KEY,
    "Content-Type": "application/json"
}

response = requests.post(
    f"{BASE_URL}/slowhooks/send-discord-webhook",
    headers=headers,
    json=payload
)

print(response.json())

Responses

200 OK (new message)

{
  "success": true,
  "message": "Message sent to Discord.",
  "messageId": "1234567890"
}

200 OK (edited message)

{
  "success": true,
  "message": "Message edited on Discord.",
  "messageId": "1234567890"
}

400 Bad Request

Missing required fields or invalid webhook URL.
{
  "error": "A valid Discord Webhook URL is required and must be from discord.com."
}
{
  "error": "Payload must contain content or at least one embed."
}

401 Unauthorized

Occurs if authentication fails (e.g., missing or invalid API key).
{
  "error": "Unauthorized: You must be logged in or provide a valid API Key."
}

500 Internal Server Error

An unexpected issue occurred contacting Discord or updating analytics.
{
  "error": "An internal server error occurred while sending the webhook."
}

Need Further Assistance?

If you have any questions or encounter issues, please don’t hesitate to reach out to our support team.