all-about-apikey/scanii/README.md

52 lines
724 B
Markdown
Raw Permalink Normal View History

2021-11-17 23:07:21 +00:00
# [Scanii](https://docs.scanii.com/)
## __Description__
Simple REST API that can scan submitted documents/files for the presence of threats
## __Example Request__
* Curl
```
curl -u APIKEY:SECRETKEY https://api.scanii.com/v2.1/ping
```
* Raw
```
GET /v2.1/ping HTTP/1.1
Authorization: Basic QVBJS0VZOlNFQ1JFVEtFWQ==
Host: api.scanii.com
```
## __Response__
* Success
```
{
"key" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"message" : "pong"
}
```
* Error
```
{
"error" : "Apologies but we could not authenticate this request."
}
```
## __Regex__
* API Key
```
[a-z0-9]{32}
```
* Secret Key
```
[a-z0-9]{9}
```
## __Example key__
* API Key
```
tue3sv9hzsey1me4l7fwq3t46u5k8wag
```
* Secret Key
```
tue3sv9hzs
```