Sample - Slack Web API
GET/views.open

Open a view for a user

Opens a view for a user by exchanging a trigger for the supplied view payload. Pass view as a JSON-encoded view string together with the trigger_id that authorizes the interaction.

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

3 parameters
trigger_idstringrequired
Trigger identifier to exchange for permission to post the view to the user.
viewstringrequired
JSON-encoded view payload describing the view to open.
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 opened view payload when available.
okbooleanrequired
Allowed:true
defaultTypical error response, before getting to any possible validation errors.
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.