forked from mirrors/kingfisher
30 lines
763 B
YAML
30 lines
763 B
YAML
rules:
|
|
- name: Telnyx API V2 Key
|
|
id: kingfisher.telnyx.1
|
|
pattern: |
|
|
(?x)
|
|
\b
|
|
(
|
|
KEY[0-9A-Za-z_-]{55}
|
|
)
|
|
\b
|
|
pattern_requirements:
|
|
min_digits: 2
|
|
min_entropy: 3.5
|
|
confidence: medium
|
|
examples:
|
|
- 'TELNYX_API_KEY=KEY017D98C041711C2B8B6F5A2E50702659_hwntpZaC4XD1OEQEaKWydG'
|
|
validation:
|
|
type: Http
|
|
content:
|
|
request:
|
|
method: GET
|
|
url: https://api.telnyx.com/v2/balance
|
|
headers:
|
|
Authorization: Bearer {{ TOKEN }}
|
|
response_matcher:
|
|
- report_response: true
|
|
- type: StatusMatch
|
|
status: [200]
|
|
references:
|
|
- https://developers.telnyx.com/development/api-fundamentals/authentication
|