/views.open
GET
/views.openOpen a view for a user.
Request
Query Params
trigger_id
string
required
Exchange a trigger to post to the user.
view
string
required
A view payload. This must be a JSON-encoded string.
Header Params
token
string
required
Authentication token. Requires scope: none
Request samples
Responses
Typical success response includes the opened view payload.(200)
Typical error response, before getting to any possible validation errors.(500)
Typical success response includes the opened view payload.
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
ok
#/definitions/700149required
Additional properties
integer | number | string | boolean
optional
Exampleresponse
{
"ok": true,
"view": {
"app_id": "AA4928AQ",
"blocks": [
{
"block_id": "a_block_id",
"element": {
"action_id": "an_action_id",
"type": "plain_text_input"
},
"label": {
"emoji": true,
"text": "A simple label",
"type": "plain_text"
},
"optional": false,
"type": "input"
}
],
"bot_id": "BA13894H",
"callback_id": "identify_your_modals",
"clear_on_close": false,
"external_id": "",
"hash": "156772938.1827394",
"id": "VMHU10V25",
"notify_on_close": false,
"private_metadata": "Shh it is a secret",
"root_view_id": "VMHU10V25",
"state": {
"values": {}
},
"submit": {
"text": "Create",
"type": "plain_text"
},
"team_id": "T8N4K1JN",
"title": {
"text": "Quite a plain modal",
"type": "plain_text"
},
"type": "modal"
}
}
Last modified: a year ago