• EN
  • App platform API

    Apps authenticate to /api/v1/bots/... with their installation token in Authorization: Bearer YOUR_APP_TOKEN. Start with Installable apps for registration and grants.

    Credentials and management

    An administrator issues a token for an active installation and a subset of its granted scopes. The create response contains token and app_token metadata. The secret is shown once. Token rotation returns a replacement and revokes the old credential. Uninstalling disables the installation and revokes credentials.

    The app registry, installation tokens, scopes, slash command registration and signing secrets are session-authenticated management operations under /api/v1/admin/app-platform. Workspace catalog installation and removal are management operations under /api/v1/workspaces/{workspaceId}/app-platform. Access depends on support administration and workspace integration management permissions. Personal access tokens and app tokens do not authenticate these management APIs.

    The available grants are chat:write, chat:write:thread, chat:update, chat:delete, channels:read, kv:read, kv:write and commands:receive. users:read, files:write and events:receive remain planned in the scope registry. First-party event subscriptions use separate provisioning.

    App callbacks

    User commands and app-owned message components are dispatched by Pulse's signed-in client. Pulse sends JSON to the registered callback URL with X-Pulse-Timestamp and X-Pulse-Signature. The signature uses the webhook HMAC format. The callback request timeout is 10 seconds and a 2xx response acknowledges receipt.

    Slash command callback fields are workspace_id, user_id, channel_id, command, text and trigger_id. Button and select callbacks carry workspace_id, user_id, channel_id, message_id, type, action_id and value. Supported component types are button and select_menu.

    The session dispatch paths /api/v1/app-platform/slash-commands/dispatch and /api/v1/app-platform/interactions/dispatch are client interaction APIs. A service receives their callbacks and uses the bot API to post a result. The composer flow does not include a response URL. Repeating the client action with the same idempotency key can retry a failed callback. Reusing the key with a changed payload can return 409.

    Signed command ingress

    POST /api/v1/app-platform/slash-commands/{commandId} is a separate signed ingress into Pulse. Sign the exact form body using the registered command signing secret. Send X-Pulse-Timestamp and X-Pulse-Signature with a timestamp within five minutes.

    Use Content-Type: application/x-www-form-urlencoded and fields workspace_id, user_id, channel_id, command, text and trigger_id. UUIDs must identify an authorized actor and channel in the installation workspace. The installation must be active with commands:receive. Encrypted channels are rejected.

    {
      "ok": true,
      "response_type": "ephemeral",
      "response_url": "https://pulse.example.com/api/v1/app-platform/interactions/INTERACTION_ID/respond?token=RESPONSE_TOKEN",
      "text": ""
    }

    This response acknowledges the ingress. A delayed response posts a message as the app bot to the original channel. The response_type value does not make that follow-up private.

    Delayed response

    Post JSON to the complete response_url returned by signed command ingress.

    curl --fail-with-body --silent --show-error \
      -H 'Content-Type: application/json' \
      --data '{"text":"Deployment started"}' \
      "$PULSE_RESPONSE_URL"

    Success returns {"ok":true,"message_id":"MESSAGE_UUID"}. The query token authorizes one response for 30 minutes. An expired or consumed token returns 410. Missing or invalid tokens return 401. Current channel and installation authorization still apply. Keep the URL secret.

    Signed component ingress

    POST /api/v1/app-platform/interactions/callbacks/{installationId} accepts signed JSON with workspace_id, channel_id, message_id, type, action_id, optional value and optional external_id. Sign using the installation interaction secret. Only button and select_menu are accepted. The message must belong to the app bot in the installation workspace.

    A successful response contains ok, interaction_id, idempotency_replayed and interactive_callback_id. Repeating an identical external_id and payload returns the recorded interaction with Idempotency-Replayed: true. Reusing an identifier with changed data returns 409. Omitting external_id derives an identifier from the body hash.

    This signed ingress records a callback in Pulse. It does not register a new component, menu item or custom panel. The current public app contract has no general custom panel manifest API.