`POST /v1/integrations/slack/commands`.
POST
/v1/integrations/slack/commands
const url = 'https://api.updawg.net/v1/integrations/slack/commands';const options = { method: 'POST', headers: {'Content-Type': 'application/x-www-form-urlencoded'}, body: new URLSearchParams('')};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.updawg.net/v1/integrations/slack/commands \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data ''Request Bodyrequired
Section titled “Request Bodyrequired”A slash command, byte for byte as Slack signed it.
Media typeapplication/x-www-form-urlencoded
string
Responses
Section titled “Responses”The answer (DAWG-315): only for the person who typed it, or in the channel when it ends with share. With blocks as Slack lays them out, text the fallback. One that takes longer than Slack’s three seconds allow says so, and its answer follows through the command’s response_url.
Media typeapplication/json
A reply to a slash command: Slack shows text, to the person who typed
it only when response_type is ephemeral.
object
response_type
required
string
text
required
string
Example generated
{ "response_type": "example", "text": "example"}Not signed by this region’s Slack app, or more than five minutes old.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}This deployment has no Slack app: slack-unavailable.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}