Sendbird · Arazzo Workflow

Sendbird Open a Direct Message Between Two Users

Version 1.0.0

Create a distinct 1:1 channel for two users and send the first message.

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

Provider

sendbird

Workflows

direct-message-between-users
Start or reuse a 1:1 channel and post the first message.
Creates a distinct group channel for the sender and recipient, then sends a text message from the sender.
2 steps inputs: apiToken, message, recipientId, senderId outputs: channelUrl, messageId
1
createDistinctChannel
Create a distinct group channel for the two users so the same pair always maps to one conversation.
2
sendFirstMessage
Send the first text message from the sender into the channel.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Sendbird Open a Direct Message Between Two Users
  summary: Create a distinct 1:1 channel for two users and send the first message.
  description: >-
    Implements a one-to-one direct message by creating a distinct group channel
    that contains exactly two user IDs and then sending the first message into
    it. Because the channel is created as distinct, repeated runs with the same
    pair reuse the same conversation rather than creating duplicates. 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: messagesApi
  url: ../openapi/sendbird-messages-api-openapi.yml
  type: openapi
workflows:
- workflowId: direct-message-between-users
  summary: Start or reuse a 1:1 channel and post the first message.
  description: >-
    Creates a distinct group channel for the sender and recipient, then sends a
    text message from the sender.
  inputs:
    type: object
    required:
    - apiToken
    - senderId
    - recipientId
    - message
    properties:
      apiToken:
        type: string
        description: Sendbird Api-Token from the dashboard.
      senderId:
        type: string
        description: User ID of the message sender.
      recipientId:
        type: string
        description: User ID of the message recipient.
      message:
        type: string
        description: Text content of the first message.
  steps:
  - stepId: createDistinctChannel
    description: >-
      Create a distinct group channel for the two users so the same pair always
      maps to one conversation.
    operationId: createGroupChannel
    parameters:
    - name: Api-Token
      in: header
      value: $inputs.apiToken
    requestBody:
      contentType: application/json
      payload:
        user_ids:
        - $inputs.senderId
        - $inputs.recipientId
        is_distinct: true
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      channelUrl: $response.body#/channel_url
      isDistinct: $response.body#/is_distinct
  - stepId: sendFirstMessage
    description: Send the first text message from the sender into the channel.
    operationId: sendMessage
    parameters:
    - name: Api-Token
      in: header
      value: $inputs.apiToken
    - name: channel_url
      in: path
      value: $steps.createDistinctChannel.outputs.channelUrl
    requestBody:
      contentType: application/json
      payload:
        message_type: MESG
        user_id: $inputs.senderId
        message: $inputs.message
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      messageId: $response.body#/message_id
  outputs:
    channelUrl: $steps.createDistinctChannel.outputs.channelUrl
    messageId: $steps.sendFirstMessage.outputs.messageId

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-direct-message-between-users-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.