Threat.Zone API Migration Guide

Public API Migration Guide (v1 → v3)

This guide helps users migrate from the old Public API (v1) to the new API (v3).

Overview of Changes

Aspect
Old (v1)
New (v3)

Base Path

/public-api/scan/*, /public-api/get/*

/submissions/*, /config/*

Authentication

Mixed (Bearer + Cookies)

Consistent Bearer token

Pagination

0-based with URL params (/:page/:jump)

1-based with query params (?page=&limit=)

Downloads

Separate routes

Nested under /submissions/:uuid/download/*


Authentication

Old Method

# Bearer token (most endpoints)
curl -H "Authorization: Bearer <api-key>" ...

# Cookie-based (some download endpoints)
curl --cookie "accesstoken=<token>" ...

New Method


Submission Endpoints

Create Sandbox Submission (Dynamic + Static Analysis)

Old Request:

New Request:

Key Changes:

  • analyzeConfigmetafields (with key/value instead of metafieldId/value)

  • Added environment parameter (e.g., w10_x64, w11_x64)

  • Removed extensionCheck (now automatic)

  • Added private boolean flag

  • Removed modules parameter - Use dedicated endpoints (/submissions/cdr) instead


Create Static-Only Submission

Old Request:

New Request:


Create CDR Submission

Old Request:

New Request:


Create URL Submission

Old Request:

New Request:


Response Format (All Submissions)

Old Response:

New Response:


Query Endpoints

Get Submission Details

Old Request:

New Request:


List Submissions

Old Request:

New Request:

New Query Parameters:

Parameter
Type
Description

page

number

Page number (1-based)

limit

number

Items per page

level

string[]

Filter by threat level (malicious, suspicious, benign, unknown)

type

string

Filter by type (file, url)

sha256

string

Search by SHA256 hash (64 characters)

filename

string

Search by filename

startDate

ISO 8601

Filter from date

endDate

ISO 8601

Filter to date

private

boolean

Filter by privacy

tags

string[]

Filter by tags

Example:


Search by SHA256 Hash

Old Request:

New Request:

Note: The new API only supports SHA256 hash search. MD5 and SHA1 searches are no longer available. You must use the full 64-character SHA256 hash.


Download Endpoints

Download Sample

Old Request:

New Request:


Download HTML Report

Old Request:

New Request:


Download PCAP

Old Request:

New Request:


Download Generated YARA Rule

Old Request:

New Request:


Download Artifact

Old Request:

New Request:


Get Screenshot (URL Analysis)

Old Request:

New Request:


Get Media Files (Screenshots, Videos)

Old Request:

New Request:


Configuration Endpoints

Get Metafields Configuration

Old Request:

New Request:


Get Available Environments

New Endpoint (no v1 equivalent):

Returns list of available operating systems for sandbox analysis.


User Info Endpoints

Get Current User Info

Old Request:

New Request:


Deprecated Endpoints

The following endpoints are no longer available in v3:

Old Endpoint
Notes

GET /public-api/get/submission/:uuid/varist-hybrid-analyzer-results

Deprecated

GET /public-api/get/submission/:uuid/analysis-artifacts

Use /submissions/:uuid response

GET /public-api/get/submission/:uuid/config-extractor-results

Deprecated

GET /public-api/get/submission/:uuid/dns

Data in network report

GET /public-api/get/submission/:uuid/http

Data in network report

GET /public-api/get/submission/:uuid/tcp

Data in network report

GET /public-api/get/submission/:uuid/udp

Data in network report

GET /public-api/get/submission/:uuid/threats

Data in indicators report

GET /public-api/get/public-submissions/:page/:jump

Use /submissions with filters

GET /private/*

Internal only, not exposed

GET /additionalFiles/:uuid/:fileId

Deprecated

GET /parts/:uuid?files=...

Deprecated

GET /exportable-parts/:uuid

Deprecated

GET /cdr/:submission

Use /submissions/:uuid/download/cdr-sanitized


Quick Migration Checklist


Example: Full Workflow

Old Workflow

New Workflow


Support

If you encounter issues during migration, please contact support with:

  • Your old API request format

  • The error message you're receiving

  • Your expected behavior

Last updated