post/webhooks/{webhook_id}/{token}/slack

Execute Slack webhook

Receives and processes Slack-formatted webhook payloads, converting them to messages in the configured channel. Returns "ok" as plain text with a 200 status code.

execute_slack_webhook

Parameters

NameInTypeDescription
webhook_id*pathSnowflakeTypeThe ID of the webhook
token*pathstringThe webhook token
thread_idquery-

Request body

application/json

json
{
  "type": "object",
  "properties": {
    "text": {
      "description": "Main text content of the message",
      "type": "string"
    },
    "username": {
      "description": "Override the default username of the webhook",
      "type": "string"
    },
    "icon_url": {
      "description": "Override the default icon of the webhook",
      "type": "string"
    },
    "attachments": {
      "description": "Array of attachment objects",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "fallback": {
            "description": "Fallback text for notifications",
            "type": "string"
          },
          "pretext": {
            "description": "Text that appears above the attachment block",
            "type": "string"
          },
          "text": {
            "description": "Main text content of the attachment",
            "type": "string"
          },
          "color": {
            "description": "Colour of the attachment sidebar (hex code or preset)",
            "type": "string"
          },
          "title": {
            "description": "Title of the attachment",
            "type": "string"
          },
          "title_link": {
            "description": "URL to link from the title",
            "type": "string"
          },
          "fields": {
            "description": "Array of field objects",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "description": "Title of the field",
                  "type": "string"
                },
                "value": {
                  "description": "Value of the field",
                  "type": "string"
                },
                "short": {
                  "description": "Whether the field should be displayed as a short column",
                  "type": "boolean"
                }
              }
            }
          },
          "footer": {
            "description": "Footer text displayed at the bottom",
            "type": "string"
          },
          "ts": {
            "description": "Unix timestamp for the attachment footer",
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "author_name": {
            "description": "Name of the author",
            "type": "string"
          },
          "author_link": {
            "description": "URL to link from the author name",
            "type": "string"
          },
          "author_icon": {
            "description": "URL for the author icon image",
            "type": "string"
          },
          "image_url": {
            "description": "URL of the main image to display",
            "type": "string"
          },
          "thumb_url": {
            "description": "URL of a thumbnail image",
            "type": "string"
          }
        }
      }
    }
  }
}

Responses

200

Success

json
{
  "type": "string"
}
400

Bad Request - The request was malformed or contained invalid data

json
{
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "description": "Machine-readable error code"
    },
    "message": {
      "type": "string",
      "description": "Human-readable error message"
    },
    "errors": {
      "description": "Field-specific validation errors",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "description": "Field path that failed validation"
          },
          "code": {
            "description": "Machine-readable validation error code",
            "type": "string"
          },
          "message": {
            "type": "string",
            "description": "Human-readable validation error message"
          }
        },
        "required": [
          "path",
          "message"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "code",
    "message"
  ],
  "additionalProperties": {}
}
429

Too Many Requests - You are being rate limited

json
{
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "description": "Machine-readable error code"
    },
    "message": {
      "type": "string",
      "description": "Human-readable error message"
    },
    "errors": {
      "description": "Field-specific validation errors",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "description": "Field path that failed validation"
          },
          "code": {
            "description": "Machine-readable validation error code",
            "type": "string"
          },
          "message": {
            "type": "string",
            "description": "Human-readable validation error message"
          }
        },
        "required": [
          "path",
          "message"
        ],
        "additionalProperties": false
      }
    },
    "retry_after": {
      "type": "number",
      "description": "Seconds to wait before retrying"
    },
    "global": {
      "type": "boolean",
      "description": "Whether this is a global rate limit"
    }
  },
  "required": [
    "code",
    "message"
  ],
  "additionalProperties": {}
}
500

Internal Server Error - An unexpected error occurred

json
{
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "description": "Machine-readable error code"
    },
    "message": {
      "type": "string",
      "description": "Human-readable error message"
    },
    "errors": {
      "description": "Field-specific validation errors",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "description": "Field path that failed validation"
          },
          "code": {
            "description": "Machine-readable validation error code",
            "type": "string"
          },
          "message": {
            "type": "string",
            "description": "Human-readable validation error message"
          }
        },
        "required": [
          "path",
          "message"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "code",
    "message"
  ],
  "additionalProperties": {}
}