# Release: Java SDK v1.52.0

By Steven Van · 2026-10-01

We've added support for the TaskCardBlock layout block (task\_card type) and related fields, as well as UrlSourceElement for the sources field.

The Slack Java SDK v1.52.0 adds Block Kit support for two new layout blocks and wraps a set of Slack Code API methods for [Slack](<https://creatorstoolbox.com/tools/slack>), as listed in the [release note](<https://docs.slack.dev/reference/methods/agents.conversations.setView/>).

## New layout blocks

- TaskCardBlock (task\_card type) and its related fields, plus UrlSourceElement for the sources field.

- ContainerBlock (container type) and its related fields.

## Code API methods

The SDK now supports these methods:

- agents.conversations.archive

- agents.conversations.create

- agents.conversations.getCanvas

- agents.conversations.listViews

- agents.conversations.removeView

- agents.conversations.setCanvasContent

- agents.conversations.setCommands

- agents.conversations.setProperties

- agents.conversations.setView

## How setView works

The linked reference page documents agents.conversations.setView, which creates or updates a view in a code channel. In Java it is called as app.client().agentsConversationsSetView. It needs a granular bot token with the code\_channels:manage scope, and special rate limits apply.

The type argument sets the kind of view and defaults to html:

- html and diff require content, capped at 1,000,000 bytes.

- block\_kit requires blocks.

- canvas requires canvas\_id.

- pull\_request requires pr\_url.

Views are keyed by an agent-assigned view\_key. The first call for a key creates the view and a channel tab, and later calls with the same key update it in place and bump content\_version. A channel can hold up to 5 views, and at most one of them can be a diff.

![Slack](<https://www.google.com/s2/favicons?domain=slack.com&sz=128>)

Slack

The AI work platform — channels, messaging, huddles, and workflow automation that connect your team and tools in one place.

[View Slack →](<https://creatorstoolbox.com/tools/slack>)

Sources

[Original source](<https://docs.slack.dev/changelog/2026/10/01/java-sdk>)

[Read Release: Java SDK v1.52.0 on Creators Toolbox](<https://creatorstoolbox.com/blog/slack-release-java-sdk-v1-52-0>)

---
Canonical source: https://creatorstoolbox.com/blog/slack-release-java-sdk-v1-52-0
