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

Was this helpful?

Export as PDF
  1. Open Cloud API
  2. v1
  3. Routes
  4. BansAPI

/ban-async

Previous/is-bannedNext/pending-bans

Last updated 2 months ago

Was this helpful?

Bans published through this endpoint will not execute the following actions unless initiated via the Discord slash command:

  • Notify the banned user (if notifications are enabled).

  • Forcefully disconnect the client using MessagingService via the Roblox Open Cloud API.

This limitation exists because the Sentinel API does not directly handle these enforcement actions. Instead, these tasks are managed by the Sentinel Discord bot when a ban is issued through the /ban command.

Future Considerations

We may explore expanding the API to include these functionalities in the future, allowing for more automated enforcement directly from API calls.

Roblox BanAsync Integration

If BanAsync is enabled in your game, it will automatically force-disconnect the banned client upon execution, ensuring immediate removal without requiring additional enforcement from Sentinel.

post

Create a new ban

Authorizations
Query parameters
experienceBanCompletedbooleanOptional
isAppealbooleanOptional
Body
overwritebooleanRequired

If true it will forcefully overwritten any pre-existing ban with this updated data.

userIdnumberRequired
experienceIdnumberRequired
banModeratornumberRequired
banTypeundefined · enumRequiredPossible values:
banLengthTypeundefined · enumRequiredPossible values:
banLengthstringRequired
banPrivateReasonstringRequired
banPublicReasonstringRequired
Responses
200
OK
application/json
409
Conflict - Player is already banned
application/json
post
POST /api/v1/ban-async HTTP/1.1
Host: sentinel.metatable.dev
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 184

{
  "overwrite": true,
  "userId": 1,
  "experienceId": 1,
  "banModerator": 1,
  "banType": "Experience",
  "banLengthType": "Temporary",
  "banLength": "text",
  "banPrivateReason": "text",
  "banPublicReason": "text"
}
{
  "status": "ok"
}