inputFile (File Filter)
- Print
- PDF
inputFile (File Filter)
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Overview
- The inputFile API is a feature provided by "File Filter" in "File Safer" and is an API sending files for analysis.
- You can use this API through IAM authentication and API Gateway used in NAVER Cloud Platform.
Requests
Method | Request URI |
---|---|
POST | https://filesafer.apigw.ntruss.com/filefilter/v1/inputFile |
Format | Multipart-form |
Request headers
Header name | Description |
---|---|
x-ncp-apigw-timestamp | Time elapsed in milliseconds since January 1, 1970, 00:00:00 UTC If the time difference compared to the API Gateway server is more than 5 minutes, then the request is considered invalid |
x-ncp-apigw-api-key | Key issued from API Gateway |
x-ncp-iam-access-key | API Key issued from NAVER Cloud Platform or AccessKey issued from IAM |
x-ncp-apigw-signature-v2 | A signature that encrypts the request path and header with a SecretKey mapped to an AccessKey HMAC encryption algorithm uses HmacSHA256 See Call API that requires IAM authentication |
accept | Indicate jsonapplication/json |
Content-Type | Indicates that it is multipartmultipart/form-data |
Request parameters
Parameter name | Requirement status | Type | Description |
---|---|---|---|
file | Yes | file | File requested for analysis (file to be sent) |
archivePassword | No | string | Archive password |
Responses
Response bodies
Field name | Requirement status | Type | Description |
---|---|---|---|
returnCode | Yes | string | Processing result code for requests |
returnMessage | Yes | string | Processing result message for requests |
Examples
Request examples
curl -X POST "https://filesafer.apigw.ntruss.com/filefilter/v1/inputFile"
-H "accept: application/json"
-H "Content-Type: multipart/form-data"
-H "x-ncp-apigw-api-key: {x-ncp-apigw-api-key}"
-H "x-ncp-iam-access-key: {x-ncp-iam-access-key}"
-H "x-ncp-apigw-timestamp: {x-ncp-apigw-timestamp}"
-H "x-ncp-apigw-signature-v2: {x-ncp-apigw-signature-v2}"
-d {"archivePassword":{password},"file":{binary}}
Response examples
{
"returnCode": "0",
"returnMessage": "success"
}
Was this article helpful?