Skip to main content

API reference

Choose the current native reference​

These links open the current implementation reference directly, regardless of the language currently selected in the navigation. For an older installed release, choose its matching documentation version first. Avoid copying constructor names from another language or from a frozen versioned page.

LanguageCurrent native API
PythonPython classes and functions
TypeScriptTypeScript builders and types
GoGo builders and SDK interfaces
JavaJava values and builders
C#C# constructors and properties
RubyRuby keyword constructors and readers
RustRust consuming builders and role enums
PHPPHP named constructors and readonly properties
ElixirElixir structs, functions and typespecs
HaskellHaskell checked values, records and functions

Use the recipe index to find forms, response URLs, helpers and SDK handoff before reading implementation source. For example, PHP RichTextUserGroup names its constructor argument userGroupId; the Slack wire key is usergroup_id. The generated native reference gives the callable spelling and parameter types.

References in a source checkout​

Most current reference pages are generated during the documentation build and intentionally ignored by Git. Their absence from a fresh checkout does not mean the public type is undocumented. Install the documented development toolchains, then run pnpm --filter @slackblocks/docs generate to create the references or pnpm --filter @slackblocks/docs build to generate and verify the complete site. The build reads the native public APIs; do not copy an older versioned reference into the current tree or hand-edit generated signatures. See the maintenance guide for generation and release checks.

Looking for the exact class or constructor argument to use? The Python API reference covers every public class, function, signature, and docstring in the package. Start with the category that matches the payload you are building, then follow the linked types as you go.

Choose a payload and receiving surface​

TaskNative payloadAdditional receiving requirements
Post or update a messageMessage / MessagePayloadChannel ID, fallback text, suitable token/scopes; inspect the API result.
Incoming webhookWebhookMessageConfigured webhook URL and endpoint-specific response handling.
Interaction responseMessageResponse / WebhookMessageGenuine response_url or immediate command response; visibility/replacement rules differ from webhooks.
Open/update a modalModal / ModalViewView request envelope plus fresh trigger ID or existing view ID/hash.
Publish App HomeHomeTabViewRequest envelope with the target user ID.
Display a registered remote fileFileBlock representationRegister/share through remote-file APIs, then retrieve; FileBlock is not directly postable.

The sending guide supplies native examples. Check parsing capabilities before accepting incoming JSON and validation boundaries before relying on local acceptance. Field roles, allowed parents and surface restrictions are separate: for example, a value accepted as an input element is not automatically a section accessory. Use the native parameter type and that block’s official reference.

For each language, start with installation/runtime compatibility, construct and serialize a value, inspect an error, then follow the relevant sending and safe-edit recipe. General decoder support, automatic IDs and string coercion differ deliberately; the recipe and reference name those differences.