Skip to content
Vessios Docs
English
Esc
navigateopen⌘Jpreview

Slack Reply

/internal/slack/inbound から fire-and-forget で呼ばれる非同期返信タスク。

gateway 非経由(_GATEWAY_EXEMPT_PATHS)のため X-Internal-Secret を自前で検証する。 _do_query_sync と同じ防御ロジック(レートリミット等)を通し、結果を Block Kit へ 整形して response_url へ POST する。SSRF: response_url は hooks.slack.com 必須。

POST/tasks/slack-reply
Header parameters
x-internal-secretstring | any
Request body
requiredapplication/json
claimsSlackReplyClaimsrequired
Show properties
user_idstringrequired
tenant_idstringrequired
rolestringrequired
expintegerrequired
residency_regionstring | any
Show properties
Any of:
string
string
any
any
questionstringrequired
response_urlstringrequired
Responses
200Successful Response
any
422Validation Error
detailValidationError[]
Show properties
Array of ValidationError
locstring | integer[]required
Show properties
Array of string | integer
Any of:
string
string
integer
integer
msgstringrequired
typestringrequired
Request
curl -X POST "/tasks/slack-reply" \
  -H "Content-Type: application/json" \
  -d '{
  "claims": {
    "user_id": "string",
    "tenant_id": "string",
    "role": "string",
    "exp": 0,
    "residency_region": "string"
  },
  "question": "string",
  "response_url": "string"
}'
Response
"string"