Skip to content
discord-webhook logo

Discord Webhook

discord-webhook

Discord Webhook API via curl. Use this skill to send messages, embeds, and files to Discord channels without a bot.

SKILL.md

Full skill instructions

Discord Webhook

Use Discord Webhooks via direct curl calls to send messages to Discord channels without setting up a bot.

Official docs: https://discord.com/​developers/​docs/​resources/​webhook


When to Use

Use this skill when you need to:

  • Send notifications to Discord channels
  • Post alerts from CI/​CD pipelines
  • Share updates with rich embeds
  • Upload files to channels
  • Simple integrations without bot complexity

Prerequisites

  1. In Discord, go to Server Settings → Integrations → Webhooks
  2. Click "New Webhook"
  3. Choose a name and target channel
  4. Click "Copy Webhook URL"
export DISCORD_WEBHOOK_URL="https://discord.com/​api/​webhooks/​1234567890/​abcdefg..."

Security: Never expose webhook URLs publicly - they require no authentication.


Important: When using $VAR in a command that pipes to another command, wrap the command containing $VAR in bash -c '...'. Due to a Claude Code bug, environment variables are silently cleared when pipes are used directly.

bash -c 'curl -s "https://api.example.com" -H "Authorization: Bearer $API_KEY"'

How to Use

All examples below assume you have DISCORD_WEBHOOK_URL set.


1. Send Simple Message

Write to /​tmp/​discord_webhook_request.json:

{
  "content": "Hello from webhook!"
}

Then run:

curl -s -X POST "${DISCORD_WEBHOOK_URL}" -H "Content-Type: application/​json" -d @/​tmp/​discord_webhook_request.json

2. Send with Custom Username and Avatar

Write to /​tmp/​discord_webhook_request.json:

{
  "content": "Alert!",
  "username": "Alert Bot",
  "avatar_url": "https://i.imgur.com/​4M34hi2.png"
}

Then run:

curl -s -X POST "${DISCORD_WEBHOOK_URL}" -H "Content-Type: application/​json" -d @/​tmp/​discord_webhook_request.json

3. Send Rich Embed

Write to /​tmp/​discord_webhook_request.json:

{
  "embeds": [
    {
      "title": "Deployment Complete",
      "description": "Version 1.2.3 deployed to production",
      "color": 5763719,
      "fields": [
        {
          "name": "Environment",
          "value": "Production",
          "inline": true
        },
        {
          "name": "Status",
          "value": "Success",
          "inline": true
        }
      ],
      "timestamp": "2025-01-01T12:00:00.000Z"
    }
  ]
}

Then run:

curl -s -X POST "${DISCORD_WEBHOOK_URL}" -H "Content-Type: application/​json" -d @/​tmp/​discord_webhook_request.json

Common colors (decimal):

  • Green: 5763719
  • Red: 15548997
  • Blue: 5793266
  • Yellow: 16776960
  • Orange: 16744192

4. Send Error Alert

Write to /​tmp/​discord_webhook_request.json:

{
  "embeds": [
    {
      "title": "Error Alert",
      "description": "Database connection failed",
      "color": 15548997,
      "fields": [
        {
          "name": "Service",
          "value": "api-server"
        },
        {
          "name": "Error",
          "value": "Connection timeout"
        }
      ],
      "footer": {
        "text": "Monitor"
      }
    }
  ]
}

Then run:

curl -s -X POST "${DISCORD_WEBHOOK_URL}" -H "Content-Type: application/​json" -d @/​tmp/​discord_webhook_request.json

5. Send File Attachment

Write to /​tmp/​discord_webhook_payload.json:

{
  "content": "Screenshot attached"
}

Then run:

curl -s -X POST "${DISCORD_WEBHOOK_URL}" -F "[email protected]" -F 'payload_json=@/​tmp/​discord_webhook_payload.json'

6. Send Multiple Files

Write to /​tmp/​discord_webhook_payload.json:

{
  "content": "Log files attached"
}

Then run:

curl -s -X POST "${DISCORD_WEBHOOK_URL}" -F "[email protected]" -F "[email protected]" -F 'payload_json=@/​tmp/​discord_webhook_payload.json'

7. Send Multiple Embeds

Write to /​tmp/​discord_webhook_request.json:

{
  "embeds": [
    {
      "title": "Build Started",
      "color": 16776960
    },
    {
      "title": "Tests Passed",
      "color": 5763719
    },
    {
      "title": "Deployed",
      "color": 5793266
    }
  ]
}

Then run:

curl -s -X POST "${DISCORD_WEBHOOK_URL}" -H "Content-Type: application/​json" -d @/​tmp/​discord_webhook_request.json

8. Send with Mention

Write to /​tmp/​discord_webhook_request.json:

{
  "content": "<@<your-user-id>> Check this out!",
  "allowed_mentions": {
    "users": ["<your-user-id>"]
  }
}

Then run:

curl -s -X POST "${DISCORD_WEBHOOK_URL}" -H "Content-Type: application/​json" -d @/​tmp/​discord_webhook_request.json

Replace <your-user-id> with the actual Discord user ID.


9. Send Silent Message (No Notification)

Write to /​tmp/​discord_webhook_request.json:

{
  "content": "Silent update",
  "flags": 4096
}

Then run:

curl -s -X POST "${DISCORD_WEBHOOK_URL}" -H "Content-Type: application/​json" -d @/​tmp/​discord_webhook_request.json

10. CI/​CD Pipeline Notification

Write to /​tmp/​discord_webhook_request.json:

{
  "username": "GitHub Actions",
  "embeds": [
    {
      "title": "Pipeline Status",
      "color": 5763719,
      "fields": [
        {
          "name": "Repository",
          "value": "myorg/​myrepo",
          "inline": true
        },
        {
          "name": "Branch",
          "value": "main",
          "inline": true
        },
        {
          "name": "Commit",
          "value": "abc1234",
          "inline": true
        },
        {
          "name": "Status",
          "value": "Success"
        }
      ],
      "timestamp": "2025-01-01T12:00:00.000Z"
    }
  ]
}

Then run:

curl -s -X POST "${DISCORD_WEBHOOK_URL}" -H "Content-Type: application/​json" -d @/​tmp/​discord_webhook_request.json

Embed Structure

{
  "title": "Title text",
  "description": "Description text",
  "url": "https://example.com",
  "color": 5763719,
  "fields": [
  {"name": "Field 1", "value": "Value 1", "inline": true}
  ],
  "author": {"name": "Author", "icon_url": "https://..."},
  "footer": {"text": "Footer text"},
  "thumbnail": {"url": "https://..."},
  "image": {"url": "https://..."},
  "timestamp": "2025-01-01T12:00:00.000Z"
}

Guidelines

  1. Rate limits: 30 requests per 60 seconds per webhook
  2. Message limit: 2000 characters for content
  3. Embed limits: Max 10 embeds, 6000 total characters
  4. File limits: Max 8MB per file (50MB with Nitro boost)
  5. Security: Treat webhook URLs like passwords

More DevOps & CI/CD skills

Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.

6K 472.6K
View

Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.

6K 472.6K
View

Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.

1.5K 454.3K
View
azure-kubernetes logo
DevOps & CI/CD

azure-kubernetes

Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.

1.5K 447.1K
View

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

92.7K 354.9K
View
just-scrape logo
DevOps & CI/CD

just-scrape

Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.

69 245K
View

Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.

462 159.7K
View

Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.

462 159.1K
View
deploy-to-vercel logo
DevOps & CI/CD

deploy-to-vercel

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

31.9K 146.6K
View
programmatic-seo logo
DevOps & CI/CD

programmatic-seo

Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.

53.3K 140.1K
View

Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.

63 123.5K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View

Coding & apps AI tools

Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View
Imagica logo
Coding & apps

Imagica

Build a no-code AI app in minutes.

Freemium
View
E
Coding & apps

Emergent.sh

An IDE for code migration from legacy to modern frameworks through coding agents.

Freemium
View
Wonder Dynamics logo
Coding & apps

Wonder Dynamics

Automate CGI animation in live-action scenes

Paid
View
M
Coding & apps

Mixo

Launch a website in seconds with AI.

Paid
View
AI Code Convert logo
Coding & apps

AI Code Convert

Streamline Your Coding Experience with AI Code Helper

Free
View