Actions32
- Messages Actions
- Channels Actions
- Guilds Actions
- Users Actions
- Webhooks Actions
Webhooks → Get Webhook With Token
AI-generatedOverview
This node operation "Get Webhook With Token" under the "Webhooks" resource allows you to retrieve detailed information about a specific Discord webhook by providing both its unique ID and an associated token. This is useful when you need to access webhook details securely without requiring broader permissions or credentials.
Common scenarios include:
- Fetching webhook metadata for auditing or logging purposes.
- Verifying webhook existence and configuration before sending messages.
- Integrating with external systems that manage webhooks via tokens.
For example, if you have a webhook ID and token from a third-party system, you can use this operation to confirm the webhook's current settings or status within your Discord environment.
Properties
| Name | Meaning |
|---|---|
| Webhook ID | The unique identifier of the webhook you want to retrieve. |
| Webhook Token | The secret token associated with the webhook, used for authentication in this request. |
Output
The output JSON contains the full details of the requested webhook as returned by the Discord API. This typically includes properties such as the webhook's ID, type, name, avatar, channel ID, guild ID, and other metadata describing the webhook's configuration.
No binary data is output by this operation.
Example output structure (simplified):
{
"id": "webhook-id",
"type": 1,
"guild_id": "guild-id",
"channel_id": "channel-id",
"name": "Webhook Name",
"avatar": "avatar-hash",
"token": "webhook-token",
"application_id": "application-id"
}
Dependencies
- Requires an active subscription and valid API key credential for the external N8N Tools API service.
- The node uses this API key to validate requests before calling Discord APIs.
- Proper Discord permissions are required to access webhook information.
- No additional environment variables are explicitly needed beyond the configured credentials.
Troubleshooting
- Invalid Subscription or API Key: If you receive errors indicating invalid subscription or API key, verify that your API key credential is correct and active.
- Permission Denied: Ensure the webhook ID and token are valid and that the webhook has not been deleted or revoked.
- Unknown Operation Error: This error may occur if the operation parameter is incorrect; ensure "getWebhookWithToken" is selected.
- Network Issues: Check connectivity to the external API endpoint and Discord services.
- Malformed Input: Confirm that the webhook ID and token are correctly provided as strings and not empty.