Sentinel Documentation
SDKSubscribeInvite Sentinel
  • GETTING STARTED
    • About Sentinel
    • What's a workspace?
    • Getting Started with Sentinel
      • Linking an Experience
  • 🛡️ Is Sentinel Safe to Use? Addressing Your Security Concerns
  • INFORMATION
    • Features
      • Cross-Platform Tool Suite
      • Account Linking
      • Role Synchronization
      • Advanced Analytics
    • How to get a Discord Role Id
    • Sentinel Roles: Flexible Permission Management
    • Using Sentinel's CRON Jobs to Automatically Unban Players Through Roblox Open Cloud API
    • Anti-Raid Protection & AI Content Moderator by Nebula Labs
    • Role Sync: Automatically Assign Discord Roles Based on Roblox Data
    • AI Content Moderator: Smart Civility
  • Luau SDK
    • BanAPI Documentation
  • RankingAPI Docuemtation
  • EvidenceAPI Documentation
  • DiscordAPI Documentation
  • Open Cloud API
    • Open Cloud API Introduction
    • v1
      • Models
        • BanInfo
      • Routes
        • BansAPI
          • /is-banned
          • /ban-async
          • /pending-bans
          • /pending-unbans
          • /bans
          • /unban-async
          • /export/bans/json
          • /export/bans/csv
        • RankingAPI
          • /group-role
        • EvidenceAPI
          • /evidence/create
          • /evidence/{evidenceGuid}
          • /evidence/{evidenceGuid}/metadata
    • METALink Registry API
  • Webhooks
    • Introduction to Webhooks
    • Security & Authentication for Webhooks
    • Default Payload Schema
    • Payload Dummies
      • DISCORD_BANNED
      • DISCORD_UNBANNED
      • GAME_BAN_UPDATED
      • GAME_BANNED
      • GAME_UNBANNED
  • Blogs
    • 🚀 Introducing Sentinel Tickets: Revolutionizing Discord Support
    • 🚨 Sentinel Evidence System is Now Live for Premium Users! 🚨
    • Sentinel February Update
  • 🚀 Coming Soon: April Platform Update – Sentinel Bot Development
  • March Update
  • AI Content Moderator Beta
  • Legal
    • 6 Month Retention Policy
    • Term's of Service
    • Privacy Policy
Powered by GitBook
On this page
  • Adding an Authentication Key
  • Why Is This Important?
  • Best Practices for Securing Webhooks

Was this helpful?

Export as PDF
  1. Webhooks

Security & Authentication for Webhooks

When setting up webhooks in Sentinel, it’s important to implement your own authentication and security mechanisms, as there is currently no default authentication or custom headers sent in the webhook payloads. To ensure that only legitimate requests are accepted, we recommend adding an authentication key to your webhook URL.

Adding an Authentication Key

A simple and effective way to secure your webhook endpoint is by including an authentication key in the URL itself. For example:

https://api.example.com/api/v1/sentinelwebhook?auth=ABC_1234

In this case, ABC_1234 serves as the authentication token. On your server side, you can verify that the token matches the expected value before processing the webhook data. If the token is incorrect or missing, you can reject the request to prevent unauthorized access.

Why Is This Important?

Since Sentinel does not send any built-in authentication headers with webhook requests, it's critical to implement your own method of validation to prevent malicious actors from spoofing webhook events. By checking the auth parameter or similar custom keys, you can ensure that only authorized requests trigger actions on your systems.

Best Practices for Securing Webhooks

  • Use Strong Authentication Tokens: Ensure that the auth key is complex and not easily guessable.

  • Use HTTPS: Always serve your webhook endpoint over HTTPS to encrypt communication and protect the authentication key from being intercepted.

  • Validate Incoming Requests: Check that the auth key matches the expected value before accepting or processing any webhook event.

By following these practices, you can ensure that your webhook integration remains secure and that only authorized requests are processed.

PreviousIntroduction to WebhooksNextDefault Payload Schema

Last updated 7 months ago

Was this helpful?