curl --request GET \
--url https://api-sandbox.finogates.com/v1/platform/file-scans/{file_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-sandbox.finogates.com/v1/platform/file-scans/{file_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-sandbox.finogates.com/v1/platform/file-scans/{file_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-sandbox.finogates.com/v1/platform/file-scans/{file_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.finogates.com/v1/platform/file-scans/{file_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-sandbox.finogates.com/v1/platform/file-scans/{file_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.finogates.com/v1/platform/file-scans/{file_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status_code": 200,
"data": {
"id": "7c4d2e1a-8b3f-4d6c-9a1e-5f2b3c4d5e6f",
"status": "clean",
"file_name": "signed-contract.pdf",
"content_type": "application/pdf",
"declared_content_type": "application/pdf",
"size_bytes": 248193,
"category": "contracts",
"created_at": "2026-06-02T10:30:00Z",
"scanned_at": "2026-06-02T10:30:12Z",
"download_url": "https://scan-downloads.example.com/7c4d2e1a-8b3f-4d6c-9a1e-5f2b3c4d5e6f?token=short-lived-signature",
"expires_in": 900
},
"query_generated_time": 1712847600000
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Get a Submitted File
One file, with a short-lived download_url if it was cleared.
A file that is still pending, infected or unscannable comes back with its status and no link — there is no parameter that changes that.
The link is minted per call and is not stable. Each request signs a fresh
URL valid for expires_in seconds (default 900). Two calls in the same
second happen to produce an identical string; any later call produces a
different one, because the signature covers a second-precision timestamp.
Treat every issued link as live until its own expiry: asking for a new one
does not revoke the previous one. So request a link when you are about to
use it rather than caching it, and prefer a short expires_in — a link that
leaks stays usable for its full window, with no authentication in front of it.
A file belonging to another platform answers 404 rather than 403, so the response does not confirm that the id exists.
curl --request GET \
--url https://api-sandbox.finogates.com/v1/platform/file-scans/{file_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-sandbox.finogates.com/v1/platform/file-scans/{file_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-sandbox.finogates.com/v1/platform/file-scans/{file_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-sandbox.finogates.com/v1/platform/file-scans/{file_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-sandbox.finogates.com/v1/platform/file-scans/{file_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-sandbox.finogates.com/v1/platform/file-scans/{file_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.finogates.com/v1/platform/file-scans/{file_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status_code": 200,
"data": {
"id": "7c4d2e1a-8b3f-4d6c-9a1e-5f2b3c4d5e6f",
"status": "clean",
"file_name": "signed-contract.pdf",
"content_type": "application/pdf",
"declared_content_type": "application/pdf",
"size_bytes": 248193,
"category": "contracts",
"created_at": "2026-06-02T10:30:00Z",
"scanned_at": "2026-06-02T10:30:12Z",
"download_url": "https://scan-downloads.example.com/7c4d2e1a-8b3f-4d6c-9a1e-5f2b3c4d5e6f?token=short-lived-signature",
"expires_in": 900
},
"query_generated_time": 1712847600000
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
Query Parameters
Requested lifetime of the download link, in seconds.
60 <= x <= 3600Response
One file, with a short-lived download_url only when the verdict is clean.

