Download OpenAPI specification:Download
TaskForce API is based on HTTP GET requests and JSON-encoded responses.
It finds drives plugged into Source ports (i. e. the ports that are currently switched to Source mode) that are not busy by other running tasks. It automatically powers up all non-powered Source devices.
The request returns the number of available scannedSourcePorts and that of totalSourcePorts. If scannedSourcePorts equals to totalSourcePorts, it means TaskForce powered up and checked all currently available Source ports for devices.
Max number of Source ports:
Turn on the Source switch to activate Source mode for that port.
| token | string User access token provided by the /login endpoint. Required when User Management is enabled in UI settings. Example: 9b6af926253943f38f29c73b3dcdfd9ac761350b0713b07aed49c9348a4bf478 |
{- "scannedSourcePorts": 9,
- "totalSourcePorts": 13,
- "foundSourceDevices": [
- "SATA4 SanDisk SDSSDA120G 171108456213",
- "SATA2 Samsung SSD 840 PRO Series S1AXNSAF106001H",
- "SATA5 ST500LM012 HN-M500MBB S2RWJ9CD415935",
- "SAS1 DG0146BARTP HPD0 D0A2P9602JFL0923",
- "USB4 WDC WD10JMVW-11AJGS4 WD-WXA1AA6PTY1K"
]
}It powers on the specified port and identies the connected drive. If the state is identifying, the drive detection is still in progress. Continue polling this endpoint until the state changes to either ready or not-detected.
Examples:
http://TASKFORCE_IP/api/scan-port?sas8http://TASKFORCE_IP/api/scan-port?EXT1| <portId> required | string Port identifier, consists of port type and number. Case insensitive. Example:
Acceptable port names are SATA1, SATA2, SATA3, SATA4, SATA5, SATA6, SAS1, SAS2, SAS3, SAS4, SAS5, SAS6, USB1, USB2, USB3, USB4, IDE1, EXT1 |
| token | string User access token provided by the /login endpoint. Required when User Management is enabled in UI settings. Example: 9b6af926253943f38f29c73b3dcdfd9ac761350b0713b07aed49c9348a4bf478 |
{- "state": "task-progress",
- "isSource": true,
- "model": "SanDisk SDSSDA120G",
- "serial": "171431421695",
- "caseId": "CaseABC123",
- "evidenceId": "dev777"
}Launches imaging from a source drive plugged into the specified Source port into a the specified network target folder. By default, target image is a compressed E01 but the file format can be changed in the parameters.
Two mandatory parameters: source and targetFolder. Other parameters have default values, which can be adjusted.
Examples:
http://TASKFORCE_IP/api/start-image?source=SATA4&targetFolder=//Server/Sharehttp://TASKFORCE_IP/api/start-image?source=SATA4 SDSSDA120G Z32081RL&targetFolder=//10.0.0.14/Share| source required | string Source identifier. It can be specified in two ways: 1) Source port; 2) Source port, drive model and serial Examples:
Acceptable port names are SATA1, SATA2, SATA3, SATA4, SATA5, SATA6, SAS1, SAS2, SAS3, SAS4, SAS5, SAS6, USB1, USB2, USB3, USB4, IDE1, EXT1 |
| targetFolder required | string Network folder path where target image is created. Supports Linux and Windows formats of path separators (slashes, backslashes). Examples:
|
| targetFile | string Target image file name without extension. If you don`t specify this parameter, target file name will be genereted from source disk model and serial. |
| settings | string Name of the customized imaging settings. Customized settings can be created and renamed on the imaging start page (after you select the source and the target(s) in UI). Default value: |
| targetType | string Type of target image file. In can be either e01, aff4 or raw. Default value: |
| saveReport | boolean Save report in the target folder alongside with created image file. Default value: |
| targetFolderLogin | string Username or login. Used when Empty by default. |
| targetFolderPwd | string Password. Used when Empty by default. |
| targetFolderDomain | string Network domain. Used when Empty by default. |
| mountOptions | string Mount option for experienced users. Used when Empty by default. |
| dnsLookup | string TaskForce 2 only option. Specifies the method for resolving the remote server hostname. Acceptable values:
|
| e01Case | string Case ID written to E01 image file metadata. Empty by default. |
| e01Evid | string Evidence number written to E01 image file metadata. Empty by default. |
| e01Desc | string Description written to E01 image file metadata. Empty by default. |
| e01Inv | string Examiner/investigator name written to E01 image file metadata. Empty by default. |
| e01Comp | boolean Indicates whether E01 target image is compressed. Default value: |
| e01Segment | number Specify segment size for E01 file in GB. Minimal segment size is 1GB. Default value: 0 (It means TaskForce will create one E01 file) |
| aff4Case | string Case ID written to Aff4 image file metadata. Empty by default. |
| aff4Evid | string Evidence number written to Aff4 image file metadata. Empty by default. |
| aff4Inv | string Examiner/investigator name written to Aff4 image file metadata. Empty by default. |
| aff4Comp | string Specify Aff4 image file compression type. Available options: lz4, snappy, not compressedDefault value: |
| aff4Hash | string Specify Aff4 image file hash type. Available options: md5, sha1, md5+sha1, sha256, sha512Default value: |
| token | string User access token provided by the /login endpoint. Required when User Management is enabled in UI settings. Example: 9b6af926253943f38f29c73b3dcdfd9ac761350b0713b07aed49c9348a4bf478 |
image_0_SanDisk%20SDSSDA120G_171108456213_Z32080R_57eafc6f-e405-485a-be55-b0ab765e4223
Launches logical imaging from a source drive plugged into the specified Source port into a the specified network target folder. By default, target image is a compressed L01 but the file format can be changed in the parameters.
Two mandatory parameters: source and targetFolder. Other parameters have default values, which can be adjusted.
Examples:
http://TASKFORCE_IP/api/start-logical?source=SATA4&targetFolder=//Server/Sharehttp://TASKFORCE_IP/api/start-logical?source=SATA4 SDSSDA120G Z32081RL&targetFolder=//10.0.0.14/Share| source required | string Source identifier. It can be specified in two ways: 1) Source port; 2) Source port, drive model and serial Examples:
Acceptable port names are SATA1, SATA2, SATA3, SATA4, SATA5, SATA6, SAS1, SAS2, SAS3, SAS4, SAS5, SAS6, USB1, USB2, USB3, USB4, IDE1, EXT1 |
| targetFolder required | string Network folder path where target image is created. Supports Linux and Windows formats of path separators (slashes, backslashes). Examples:
|
| targetFile | string Target image file name without extension. If you don`t specify this parameter, target file name will be genereted from source disk model and serial. |
| settings | string Name of the logical imaging settings with filters. Customized settings can be created and save on the logical imaging start page. Use 3-dot button in the bottom right corner and "Save to" option. Default value: |
| targetType | string Type of target image file. In can be either L01 or zip. Default value: |
| saveReport | boolean Save report in the target folder alongside with created image file. Default value: |
| targetFolderLogin | string Username or login. Used when Empty by default. |
| targetFolderPwd | string Password. Used when Empty by default. |
| targetFolderDomain | string Network domain. Used when Empty by default. |
| mountOptions | string Mount option for experienced users. Used when Empty by default. |
| dnsLookup | string TaskForce 2 only option. Specifies the method for resolving the remote server hostname. Acceptable values:
|
| l01Case | string Case ID written to L01 image file metadata. Empty by default. |
| l01Evid | string Evidence number written to L01 image file metadata. Empty by default. |
| l01Desc | string Description written to L01 image file metadata. Empty by default. |
| l01Inv | string Examiner/investigator name written to L01 image file metadata. Empty by default. |
| compression | boolean Indicates whether target image is compressed. Default value: |
| hash | string Specifies whether each file inside L01 image should include its hash. Available options: md5, sha1, md5+sha1, none Default value: |
| token | string User access token provided by the /login endpoint. Required when User Management is enabled in UI settings. Example: 9b6af926253943f38f29c73b3dcdfd9ac761350b0713b07aed49c9348a4bf478 |
logical_0_SanDisk%20SDSSDA120G_171108456213_Z32080R_57eafc6f-e405-485a-be55-b0ab765e4223
Launches diagnostics of a drive. The diagnostics can be performed for drives in both modes: Source and Target.
One mandatory parameter: source. Other parameters have default values, that can be adjusted.
Examples:
http://TASKFORCE_IP/api/diagnose?source=SATA4http://TASKFORCE_IP/api/diagnose?source=SATA4 SDSSDA120G Z32081RL| source required | string Identifier of the drive in Source or Target mode. It can be specified in two ways: 1) Drive port; 2) Drive port, drive model and serial Examples:
Acceptable port names are SATA1, SATA2, SATA3, SATA4, SATA5, SATA6, SAS1, SAS2, SAS3, SAS4, SAS5, SAS6, USB1, USB2, USB3, USB4, IDE1, EXT1 |
| reportFolder | string Network folder path where diagnostic report copy will be saved. Supports Linux and Windows formats of path separators (slashes, backslashes). Empty by default. Examples:
|
| reportFolderLogin | string Username or login. Used when Empty by default. |
| reportFolderPwd | string Password. Used when Empty by default. |
| reportFolderDomain | string Network domain. Used when Empty by default. |
| mountOptions | string Mount option for experienced users. Used when Empty by default. |
| dnsLookup | string TaskForce 2 only option. Specifies the method for resolving the remote server hostname. Acceptable values:
|
| token | string User access token provided by the /login endpoint. Required when User Management is enabled in UI settings. Example: 9b6af926253943f38f29c73b3dcdfd9ac761350b0713b07aed49c9348a4bf478 |
diagnose_0_SanDisk%20SDSSDA120G_171108456213_Z32080R_57eafc6f-e405-485a-be55-b0ab765e4223
Gets data about the progress of running or completed tasks. Requires taskKey or source parameter:
taskKey value is generated in response to /start-image, /start-logical or /diagnose request.source value can be specified in two ways: 1) Source port; 2) Source port, drive model and serial.Example:
http://TASKFORCE_IP/api/check-task?taskKey=image_0_SanDisk%20SDSSDA120G_171108456213_Z32080R_57eafc6f-e405-485a-be55-b0ab765e4223http://TASKFORCE_IP/api/check-task?source=SATA5Returns JSON object: { task, taskStep, source, port, state, message, progress, completionDate, target, report, hashes }
| taskKey | string Task identifier. It is generated in response to /start-image request. Either this parameter or source must be specified. Example:
|
| source | string Source identifier. It can be specified in two ways: 1) Source port; 2) Source port, drive model and serial. Either this parameter or taskKey must be specified. Examples:
Acceptable port names are SATA1, SATA2, SATA3, SATA4, SATA5, SATA6, SAS1, SAS2, SAS3, SAS4, SAS5, SAS6, USB1, USB2, USB3, USB4, IDE1, EXT1 |
| token | string User access token provided by the /login endpoint. Required when User Management is enabled in UI settings. Example: 9b6af926253943f38f29c73b3dcdfd9ac761350b0713b07aed49c9348a4bf478 |
{- "state": "completed",
- "source": "SanDisk SDSSDA120G 171108456213",
- "port": "SATA 4",
- "task": "image",
- "taskStep": "post-hash",
- "message": "completed",
- "completionDate": "2021-12-30 13:30",
- "progress": "100",
- "target": "//Server/share/SanDisk SDSSDA120G171108456213_0.E01",
- "report": "//Server/share/SanDisk SDSSDA120G171108456213_0_E01_report/Report.html",
- "hashes": {
- "MD5": "8ab092155e30c77e02a5708bdb1385e2",
- "SHA1": "47c173429553add911e2686125f9cd702f24ff37"
}
}Running this request pauses active task or stop it (for tasks that can not be paused). Corresponding task report will be created. Paused task can be restarted in TaskForce user interface.
taskKey is a mandatory parameter, whose value is generated in response to /start-image, /start-logical or /diagnose request.
Example:
http://TASKFORCE_IP/api/stop-task?taskKey=image_0_SanDisk%20SDSSDA120G_171108456213_Z32080R_57eafc6f-e405-485a-be55-b0ab765e4223 | taskKey required | string Task identifier. It is generated in response to /start-image, /start-logical or /diagnose request. Example:
|
| token | string User access token provided by the /login endpoint. Required when User Management is enabled in UI settings. Example: 9b6af926253943f38f29c73b3dcdfd9ac761350b0713b07aed49c9348a4bf478 |
Creates a new case for a drive and associates it with the provided case details. Use this endpoint to start tracking a new forensic case for a specific drive.
The drive must be identified and powered on at one of the available ports before calling this endpoint. The drive cannot be busy with another running task.
Specifying source or pair of model + serial is mandatory to identify the drive.
Examples:
http://TASKFORCE_IP/api/create-case?source=SATA4%20SanDisk%20SDSSDA120G%20171108456213&caseId=CASE-001&caseDescription=Evidence%20from%20suspect%20laptophttp://TASKFORCE_IP/api/create-case?model=SDSSDA120G&serial=171108456213&caseId=CASE-001&evidenceId=EV-001| source required | string Drive identifier in a format retrievable from Examples:
|
| model required | string Model of the drive. It can be retrieved using the
|
| serial required | string Serial number of the drive. It can be retrieved using the
|
| caseId | string If provided, Case ID field will be assigned to this value. It must be unique within the system if TaskForce setting ‘Allow non-unique case names’ is disabled. |
| caseExaminer | string If provided, Case examiner field will be assigned to this value. |
| caseDescription | string If provided, Case description field will be assigned to this value. |
| caseLocation | string If provided, Case location field will be assigned to this value. |
| caseOrganization | string If provided, Case organization field will be assigned to this value. |
| evidenceId | string The identifier used to link the drive to a case. If provided, Evidence ID field will be assigned to this value. |
| evidenceExaminer | string If provided, Evidence examiner field will be assigned to this value . |
| token | string User access token provided by the /login endpoint. Required when User Management is enabled in UI settings. Example: 9b6af926253943f38f29c73b3dcdfd9ac761350b0713b07aed49c9348a4bf478 |
Updates the details of an existing case. Use this endpoint to modify case information such as description, examiner, location, or organization for a previously created case.
The case must be associated with the specified caseId. If no matching case is found, the request will fail with an error.
Examples:
http://TASKFORCE_IP/api/edit-case?caseId=CASE-001&caseDescription=Updated%20description&caseExaminer=John%20Smith| caseId required | string The identifier used to locate the case to update.
|
| caseExaminer | string The new name or ID to be assigned as the case examiner. If provided, this value will overwrite the existing examiner field for the case. |
| caseDescription | string The new text value to assign as the case description. If provided, this value will overwrite the existing description field for the case. |
| caseLocation | string The new text value to assign as the case location. If provided, this value will overwrite the existing location field for the case. |
| caseOrganization | string The new text value to assign as the case organization. If provided, this value will overwrite the existing organization field for the case. |
| evidenceId | string The identifier used to locate evidence in the case to update the evidence examiner name. The new evidence examiner name must be specified by The new evidence examiner value will be assigned to all evidence drives that match this identifier. |
| evidenceExaminer | string The new name for the evidence examiner which is defined by the specified |
| token | string User access token provided by the /login endpoint. Required when User Management is enabled in UI settings. Example: 9b6af926253943f38f29c73b3dcdfd9ac761350b0713b07aed49c9348a4bf478 |
Downloads a report for a task.
HTTP response is as follows:
For /start-image and /start-logical tasks, a text/plain with a ZIP file containing all report files and logs is attached in the Content Disposition header.
For /diagnose task, a text/plain with an HTML report file is attached in the Content Disposition header.
The taskKey is a mandatory parameter. Its value is generated in response to a /start-image, /start-logical, or /diagnose request.
Example:
http://TASKFORCE_IP/api/report?taskKey=image_0_SanDisk%20SDSSDA120G_171108456213_Z32080R_57eafc6f-e405-485a-be55-b0ab765e4223 | taskKey required | string Task identifier. It is generated in response to /start-image, /start-logical or /diagnose request. Example:
|
| token | string User access token provided by the /login endpoint. Required when User Management is enabled in UI settings. Example: 9b6af926253943f38f29c73b3dcdfd9ac761350b0713b07aed49c9348a4bf478 |
Content-Disposition: "attachment; filename=taskKey.html"
Validates user credentials from HTTP request body. If valid and associated with an existing user, it will issue an access token.
Note: User management must be activated in UI settings.
Example:
http://TASKFORCE_IP//login| username required | string Name of existing TaskForce user. |
| password required | string Password of the user. |
{- "username": "admin",
- "password": 12345
}9b6af926253943f38f29c73b3dcdfd9ac761350b0713b07aed49c9348a4bf478