Skip to main content
POST
/
webhooks
/
{webhook_id}
/
{webhook_token}
/
github
cURL
curl --request POST \
  --url https://discord.com/api/v10/webhooks/{webhook_id}/{webhook_token}/github \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sender": {
    "id": 123,
    "login": "<string>",
    "html_url": "<string>",
    "avatar_url": "<string>"
  },
  "action": "<string>",
  "ref": "<string>",
  "ref_type": "<string>",
  "comment": "<unknown>",
  "issue": "<unknown>",
  "pull_request": "<unknown>",
  "repository": "<unknown>",
  "forkee": "<unknown>",
  "member": "<unknown>",
  "release": "<unknown>",
  "head_commit": "<unknown>",
  "commits": [
    {
      "id": "<string>",
      "url": "<string>",
      "message": "<string>",
      "author": {
        "name": "<string>",
        "username": "<string>"
      }
    }
  ],
  "forced": true,
  "compare": "<string>",
  "review": "<unknown>",
  "check_run": "<unknown>",
  "check_suite": "<unknown>",
  "discussion": "<unknown>",
  "answer": "<unknown>"
}
'
{
  "code": 123,
  "message": "<string>",
  "retry_after": 123,
  "global": true
}

Authorizations

Authorization
string
header
required

Discord bot token

Path Parameters

webhook_id
string<snowflake>
required
webhook_token
string
required
Maximum string length: 152133

Query Parameters

wait
boolean
thread_id
string<snowflake>

Body

application/json
sender
object
required
action
string | null
Maximum string length: 152133
ref
string | null
Maximum string length: 152133
ref_type
string | null
Maximum string length: 152133
comment
object
issue
object
pull_request
object
repository
object
forkee
object
member
object
release
object
head_commit
object
commits
object[] | null
Maximum array length: 1521
forced
boolean | null
compare
string<uri> | null
Maximum string length: 2048
review
object
check_run
object
check_suite
object
discussion
object
answer
object

Response

204 response for execute_github_compatible_webhook