Skip to main content

POST /api/v1/user/webhook/test/

Test your incoming messages webhook configuration by sending a test notification. Auth: Session-based authentication

Use Case

Use this endpoint to verify that your Slack webhook is configured correctly before receiving real notifications. This is especially useful after setting up a new webhook URL.

Response

Success (200):
{
  "success": true,
  "message": "Test webhook sent successfully! Check your Slack channel for the test message.",
  "webhook_type": "slack",
  "status_code": 200
}
Error - No webhook configured (400):
{
  "success": false,
  "error": "No webhook URL configured. Please configure a webhook first."
}
Error - Webhook delivery failed (400):
{
  "success": false,
  "error": "Webhook delivery failed with HTTP 404",
  "details": "channel_not_found"
}
Error - Timeout (400):
{
  "success": false,
  "error": "Webhook request timed out. Please check your webhook URL."
}

Example

curl -X POST "https://app.seleqt.ai/api/v1/user/webhook/test/" \
  -H "Cookie: sessionid=your_session_id"

What Happens

  1. The endpoint checks if you have a webhook URL configured
  2. Sends a test message to your webhook:
    • For Slack: Sends a formatted message with emoji
    • For generic webhooks: Sends a simple test event
  3. Returns the result with HTTP status code

Expected Result

If configured correctly, you should see a test message in your Slack channel:
🧪 Test notification from Seleqt Your Slack webhook is configured correctly! You will receive notifications here when prospects reply to your campaigns.

Troubleshooting

  • 404 Error: The Slack webhook URL is invalid or the channel was deleted
  • Timeout: The webhook URL is not responding (check for typos)
  • 403 Error: The Slack app doesn’t have permission to post to the channel