I'm trying to make a bot in slack. I created a slash command with /showmodal, when the command triggered my api return this json
{
"type": "modal",
"title": {
"type": "plain_text",
"text": "My App",
"emoji": true
},
"submit": {
"type": "plain_text",
"text": "Submit",
"emoji": true
},
"close": {
"type": "plain_text",
"text": "Cancel",
"emoji": true
},
"blocks": [
{
"type": "input",
"element": {
"type": "plain_text_input",
"multiline": true
},
"label": {
"type": "plain_text",
"text": "Label",
"emoji": true
}
}
]}
I'm expecting this result
But I'm getting this response instead of the modal
/showmodal failed with the error "invalid_blocks"