26 lines
584 B
YAML
26 lines
584 B
YAML
id: api-slack
|
|
|
|
info:
|
|
name: Slack API Test
|
|
author: zzeitlin
|
|
reference: https://api.slack.com/methods/auth.test
|
|
severity: info
|
|
tags: api,slack
|
|
|
|
requests:
|
|
- method: POST
|
|
payloads:
|
|
token: token.txt
|
|
path:
|
|
- "https://slack.com/api/auth.test"
|
|
redirects: false
|
|
headers:
|
|
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
|
|
Authorization: Bearer {{token}}
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- 'error'
|
|
negative: true
|