Skip to content

slack/web-api canvases.create - type error on channel_id #2472

@carter293

Description

@carter293

The method canvases.create is missing the property channel_id from the API Reference.

Packages:

Select all that apply:

  • @slack/web-api
  • @slack/rtm-api
  • @slack/webhooks
  • @slack/oauth
  • @slack/socket-mode
  • @slack/types
  • I don't know

Reproducible in:

The Slack SDK version

"slack/web-api": "^7.13.0",

Node.js runtime version

v20.19.4

OS info

ProductName: macOS
ProductVersion: 26.2
BuildVersion: 25C56
Darwin Kernel Version 25.2.0: Tue Nov 18 21:09:56 PST 2025; root:xnu-12377.61.12~1/RELEASE_ARM64_T6041

Steps to reproduce:

  1. Try to create a channel canvas using client.conversations.canvases.create with a channel_id
const canvasResponse = await slackClient.canvases.create({
      channel_id: channelId,
      title: 'My canvas title',
      document_content: {
        type: 'markdown',
        markdown: canvasMd,
      }
    });
  1. Get a type error
Object literal may only specify known properties, and 'channel_id' does not exist in type 'TokenOverridable & { title?: string | undefined; document_content?: DocumentContent | undefined; }'.ts(2353)

Expected result:

Title should be an accepted param according to the API Reference

Actual result:

Object literal may only specify known properties, and 'channel_id' does not exist in type 'TokenOverridable & { title?: string | undefined; document_content?: DocumentContent | undefined; }'.ts(2353)

Metadata

Metadata

Assignees

No one assigned

    Labels

    pkg:web-apiapplies to `@slack/web-api`questionM-T: User needs support to use the project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions