Sendbird · Arazzo Workflow

Sendbird Moderate the Author of the Latest Channel Message

Version 1.0.0

Read a channel's latest message, identify its author, and mute that user.

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

Provider

sendbird

Workflows

moderate-channel-message-author
Mute the author of the most recent message in a channel.
Lists the latest message, branches on whether one exists, and mutes the message author in the channel.
2 steps inputs: apiToken, channelUrl, description, seconds outputs: moderatedUserId
1
latestMessage
Fetch the single most recent message in the channel.
2
muteAuthor
Mute the author of the latest message in the channel.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Sendbird Moderate the Author of the Latest Channel Message
  summary: Read a channel's latest message, identify its author, and mute that user.
  description: >-
    A reactive moderation flow that pulls the most recent message in a channel,
    extracts the author's user ID, and mutes that user in the same channel. It
    branches on whether the channel has any messages so an empty channel ends
    cleanly. Useful for automated abuse response triggered off the latest post.
    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: messagesApi
  url: ../openapi/sendbird-messages-api-openapi.yml
  type: openapi
- name: moderationApi
  url: ../openapi/sendbird-moderation-api-openapi.yml
  type: openapi
workflows:
- workflowId: moderate-channel-message-author
  summary: Mute the author of the most recent message in a channel.
  description: >-
    Lists the latest message, branches on whether one exists, and mutes the
    message author in the channel.
  inputs:
    type: object
    required:
    - apiToken
    - channelUrl
    properties:
      apiToken:
        type: string
        description: Sendbird Api-Token from the dashboard.
      channelUrl:
        type: string
        description: URL of the channel to inspect and moderate.
      seconds:
        type: integer
        description: Mute duration in seconds. -1 for indefinite.
        default: 600
      description:
        type: string
        description: Reason recorded for the mute.
        default: Automated moderation of latest message author.
  steps:
  - stepId: latestMessage
    description: Fetch the single most recent message in the channel.
    operationId: listMessages
    parameters:
    - name: Api-Token
      in: header
      value: $inputs.apiToken
    - name: channel_url
      in: path
      value: $inputs.channelUrl
    - name: prev_limit
      in: query
      value: 1
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      authorId: $response.body#/messages/0/user/user_id
    onSuccess:
    - name: hasMessage
      type: goto
      stepId: muteAuthor
      criteria:
      - context: $response.body
        condition: $.messages.length > 0
        type: jsonpath
    - name: empty
      type: end
      criteria:
      - context: $response.body
        condition: $.messages.length == 0
        type: jsonpath
  - stepId: muteAuthor
    description: Mute the author of the latest message in the channel.
    operationId: muteUser
    parameters:
    - name: Api-Token
      in: header
      value: $inputs.apiToken
    - name: user_id
      in: path
      value: $steps.latestMessage.outputs.authorId
    requestBody:
      contentType: application/json
      payload:
        channel_url: $inputs.channelUrl
        seconds: $inputs.seconds
        description: $inputs.description
    successCriteria:
    - condition: $statusCode == 200
  outputs:
    moderatedUserId: $steps.latestMessage.outputs.authorId

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-moderate-channel-message-author-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.