Sample - Slack Web API
GET/views.push

Push a view onto the stack

Pushes a view onto the stack of a root view for a user. Exchange trigger_id and provide the new view as a JSON-encoded payload to add it to the view stack.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

3 parameters
trigger_idstringrequired
Trigger identifier to exchange for permission to push the view.
viewstringrequired
JSON-encoded view payload to push onto the root view's stack.
tokenstringrequired
Authentication token for the request; this method requires the `none` scope.

2 status codes
200Returns an object containing `ok` set to true and the pushed view payload when available.
okbooleanrequired
Allowed:true
defaultTypical error response.
okbooleanrequired
Allowed:false

Error handling

token must be supplied with the none scope, and both trigger_id and view are required. view must contain a JSON-encoded view payload suitable for the view stack.