Sendbird · Arazzo Workflow

Sendbird Ban a User from a Channel

Version 1.0.0

Confirm a user and channel exist, then ban the user from the channel.

1 workflow 3 source APIs 1 provider
View Spec View on GitHub ArazzoWorkflows

Provider

sendbird

Workflows

ban-user-from-channel
Validate the target then ban a user from a channel.
Confirms the user and channel exist and then issues a ban with a duration and reason.
3 steps inputs: apiToken, channelUrl, description, seconds, userId outputs: bannedUserId, channelUrl
1
confirmUser
Confirm the target user exists before moderating.
2
confirmChannel
Confirm the channel exists before issuing the ban.
3
banUser
Ban the confirmed user from the confirmed channel.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Sendbird Ban a User from a Channel
  summary: Confirm a user and channel exist, then ban the user from the channel.
  description: >-
    A moderation flow that verifies the target user and channel are real before
    issuing a ban. It looks up the user, confirms the channel, and then bans the
    user from that channel for a supplied duration with a documented reason.
    Validating first avoids issuing bans against typo'd IDs. Every step spells
    out its request inline so the flow can be read and executed without opening
    the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: channelsApi
  url: ../openapi/sendbird-channels-api-openapi.yml
  type: openapi
- name: moderationApi
  url: ../openapi/sendbird-moderation-api-openapi.yml
  type: openapi
- name: usersApi
  url: ../openapi/sendbird-users-api-openapi.yml
  type: openapi
workflows:
- workflowId: ban-user-from-channel
  summary: Validate the target then ban a user from a channel.
  description: >-
    Confirms the user and channel exist and then issues a ban with a duration
    and reason.
  inputs:
    type: object
    required:
    - apiToken
    - userId
    - channelUrl
    properties:
      apiToken:
        type: string
        description: Sendbird Api-Token from the dashboard.
      userId:
        type: string
        description: User ID to ban.
      channelUrl:
        type: string
        description: URL of the channel to ban the user from.
      seconds:
        type: integer
        description: Ban duration in seconds. -1 for a permanent ban.
        default: -1
      description:
        type: string
        description: Reason recorded for the ban.
        default: Violation of community guidelines.
  steps:
  - stepId: confirmUser
    description: Confirm the target user exists before moderating.
    operationId: getUser
    parameters:
    - name: Api-Token
      in: header
      value: $inputs.apiToken
    - name: user_id
      in: path
      value: $inputs.userId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      confirmedUserId: $response.body#/user_id
  - stepId: confirmChannel
    description: Confirm the channel exists before issuing the ban.
    operationId: getGroupChannel
    parameters:
    - name: Api-Token
      in: header
      value: $inputs.apiToken
    - name: channel_url
      in: path
      value: $inputs.channelUrl
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      confirmedChannelUrl: $response.body#/channel_url
  - stepId: banUser
    description: Ban the confirmed user from the confirmed channel.
    operationId: banUser
    parameters:
    - name: Api-Token
      in: header
      value: $inputs.apiToken
    - name: user_id
      in: path
      value: $steps.confirmUser.outputs.confirmedUserId
    requestBody:
      contentType: application/json
      payload:
        channel_url: $steps.confirmChannel.outputs.confirmedChannelUrl
        seconds: $inputs.seconds
        description: $inputs.description
    successCriteria:
    - condition: $statusCode == 200
  outputs:
    bannedUserId: $steps.confirmUser.outputs.confirmedUserId
    channelUrl: $steps.confirmChannel.outputs.confirmedChannelUrl

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/sendbird-ban-user-from-channel-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.