Postman Collection
We provide an official Postman collection with all API endpoints pre-configured.
Download
Section titled “Download”Import
Section titled “Import”- Open Postman
- Click Import (top left)
- Drag the downloaded JSON file or click Upload Files
- The FileSafety API collection appears in your sidebar
Configure
Section titled “Configure”After importing, set your API key:
- Click the FileSafety API collection name
- Go to the Variables tab
- Set
api_keyto your API key (e.g.,fs_live_...) - Save
All requests inherit the x-api-key header automatically.
Included requests
Section titled “Included requests”| Folder | Request | Description |
|---|---|---|
| Scanning | Scan file (direct upload) | POST /v1/scan with multipart file |
| Scanning | Scan file (presigned URL) | POST /v1/scan with JSON body — returns upload URL for large files |
| Scanning | Upload file to presigned URL | PUT file to the presigned URL |
| Status | Get scan status | GET /v1/scan/{scan_id} |
| Account | Get usage & quota | GET /v1/usage |
Auto-set variables
Section titled “Auto-set variables”The collection includes test scripts that automatically save scan_id and upload_url from responses. Run the requests in order — the scan ID flows through to subsequent requests automatically.
Base URL
Section titled “Base URL”The collection uses https://api.filesafety.dev as the default base URL. You can change this in the collection Variables tab if needed.