• EN
  • Messages and channels

    Use the base URL https://app.pulsechat.ru/api/v1, or your installation's origin followed by /api/v1. Every endpoint on this page requires bot or app installation authentication.

    Create a message

    POST /bots/messages returns 201 Created with the created message object.

    JSON fieldTypeBehavior
    channelstring, requiredChannel name in the credential's workspace. Whitespace, an initial #, and letter case are normalized
    textstring, requiredTrimmed, non-empty message text
    parent_idUUID string, optionalRoot message in the same channel for a thread reply
    idempotency_keystring, optionalRetry key. The Idempotency-Key header takes precedence
    blocksarray, optionalApp-token message blocks. Non-empty blocks require an app installation token

    chat:write permits new messages and replies. chat:write:thread alone requires parent_id. Replies to a reply are rejected. The bot must have posting access. Archived channels, read-only channels, direct-message resolution, and encrypted channel plaintext access are unavailable through this send contract.

    curl --fail-with-body 'https://app.pulsechat.ru/api/v1/bots/messages' \
      -H 'Authorization: Bearer <your-bot-token>' \
      -H 'Content-Type: application/json' \
      -H 'Idempotency-Key: release-1042' \
      --data '{"channel":"general","text":"Release 1042 is ready"}'

    The response is a message object. The following excerpt shows commonly used fields. Pulse may return additional message and sender fields.

    {
      "id": "11b2c3d4-e5f6-4789-abcd-012345678901",
      "channel_id": "22b2c3d4-e5f6-4789-abcd-012345678901",
      "user_id": "33b2c3d4-e5f6-4789-abcd-012345678901",
      "content": "Release 1042 is ready",
      "content_format": "pulse_rich_text_v1",
      "type": "text",
      "parent_id": null,
      "created_at": "2026-12-06T09:00:00Z",
      "updated_at": "2026-12-06T09:00:00Z"
    }

    The request field is text and the response field is content. Save id for updates, deletion, or replies. See apps for interactive messages.

    Update a message

    PATCH /bots/messages/{id} accepts {"text":"Updated release details"} and returns 200 OK with the updated message object.

    A bot token needs chat:write. An installation token needs chat:update. Only messages authored by the credential's bot in its workspace can be changed. Updates are limited to 24 hours after message creation and require current posting access to the channel. Deleted messages cannot be updated. This endpoint accepts text changes.

    Delete a message

    DELETE /bots/messages/{id} returns 200 OK with the deleted message object. The message becomes a deletion marker with type set to deleted.

    A bot token needs chat:write. An installation token needs chat:delete. Ownership, workspace, encryption, and the 24-hour window apply. Current posting access is checked when deleting an existing message. A message already marked deleted is returned again when the other applicable checks pass.

    List channels

    GET /bots/channels requires channels:read and returns 200 OK.

    Query fieldBehavior
    limitDefault 50, maximum 200. 0 uses the default. Negative or malformed values return 400
    cursorOpaque next_cursor from the preceding response
    {
      "items": [
        {"id":"22b2c3d4-e5f6-4789-abcd-012345678901","name":"general","type":"public"}
      ],
      "next_cursor": null
    }

    The list includes active public channels and channels the bot has joined, ordered newest first. Continue with cursor until next_cursor is null. A listed channel can still reject posting. Send requests use name.

    Errors

    StatusCommon causes
    400Empty text, missing channel, invalid UUID, invalid thread parent, unsupported blocks, or invalid pagination
    401Missing or invalid credential
    403Missing scope, missing membership, restricted channel, another access rule, or expired edit window
    404Channel unavailable or message outside the bot's ownership and workspace
    409Ambiguous channel name or idempotency conflict
    429Token or workspace rate limit
    500Server failed to complete the operation

    See request handling for retry behavior and idempotency.