API: Payloads
This guide explains how to manage payloads using the API.
Search Payload Templates (v2)
Payload-template search supports pagination, filtering, and sorting.
| Parameter | Description |
|---|---|
page, pageSize |
Zero-based page; defaults 0 and 100, with page sizes from 1 to 1000 |
search |
Case-insensitive substring search across template name, plugin ID, OS, and architecture |
pluginId |
Exact, case-sensitive plugin ID filter; repeat for multiple values |
operatingSystem |
OS filter; repeat for multiple values |
architecture |
Architecture filter; repeat for multiple values |
sort |
NAME, PLUGIN_ID, OPERATING_SYSTEM, or ARCHITECTURE, optionally followed by :ASC or :DESC |
The response uses the shared paged response. Use the enum values advertised in the running server's OpenAPI schema for OS and architecture filters. Generated payload responses also expose effective configurations.
List Payload Plugins
Retrieve all available payload plugins:
List Payload Templates
Get a list of supported payload templates:
Create a New Payload
Create a new payload by supplying the payload template ID, configuration, listener ID, and whether internal encryption is enabled. (Note: internal encryption is separate from external encryption like HTTPS.)
JSON request:
Multipart request (when the payload configuration uses uploaded files, such as certificateFile):
For JSON file reuse or inline Base64 content, see Configuration files in requests.
For commercial payload signing, send the certificate as a file part named certificateFile.
Examples
Example 1 – Windows X86 Debug Executable Payload
Example 2 – Windows X64 DLL Payload
Example 3 - macOS ARM64 Executable Payload
List All Payloads
Retrieve a list of all created payloads:
Archived and unavailable payloads are hidden by default. Include them with:
View Payload Details
Fetch detailed information about a specific payload using its ID:
Download a Payload
Download the agent associated with a particular payload:
UTF-8 filenames are preserved in downloads, with a safe ASCII filename fallback for clients that do not support the UTF-8 form.
Rename a Payload
Update the custom name of an existing payload.
Archive a Payload
Archive an existing payload.