Skip to content

API: Payloads

This guide explains how to manage payloads using the API.

Search Payload Templates (v2)

Payload-template search supports pagination, filtering, and sorting.

GET /api/v2/payload-templates?page=0&pageSize=50&sort=NAME:ASC HTTP/1.1
Authorization: Bearer {ACCESS_TOKEN}
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:

GET /api/v1/plugins/payloads HTTP/1.1
Authorization: Bearer {JWT_TOKEN}

List Payload Templates

Get a list of supported payload templates:

GET /api/v1/payloads/templates HTTP/1.1
Authorization: Bearer {JWT_TOKEN}

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:

POST /api/v1/payloads HTTP/1.1
Authorization: Bearer {JWT_TOKEN}
Content-Type: application/json

{
  "payloadTemplateId": "PAYLOAD_TEMPLATE_ID",
  "name": "OPTIONAL_PAYLOAD_NAME",
  "configuration": {PAYLOAD_CONFIGURATION},
  "configurationFiles": [],
  "listenerId": 1,
  "encrypted": true
}

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.

1
2
3
4
5
6
POST /api/v1/payloads HTTP/1.1
Authorization: Bearer {JWT_TOKEN}
Content-Type: multipart/form-data

requestBody: {"payloadTemplateId": "PAYLOAD_TEMPLATE_ID", "name": "OPTIONAL_PAYLOAD_NAME", "configuration": {PAYLOAD_CONFIGURATION}, "configurationFiles": [], "listenerId": 1, "encrypted": true}
{FILE_FIELD_NAME}: <binary file content>

For commercial payload signing, send the certificate as a file part named certificateFile.

Examples

Example 1 – Windows X86 Debug Executable Payload

POST /api/v1/payloads HTTP/1.1
Authorization: Bearer {JWT_TOKEN}
Content-Type: application/json

{
  "payloadTemplateId": "shelldot.payload.windows-x86",
  "configuration": {
    "type": "DEBUG_EXECUTABLE",
    "initialWait": 0,
    "paddingSize": 0
  },
  "listenerId": 1,
  "encrypted": false
}

Example 2 – Windows X64 DLL Payload

POST /api/v1/payloads HTTP/1.1
Authorization: Bearer {JWT_TOKEN}
Content-Type: application/json

{
  "payloadTemplateId": "shelldot.payload.windows-x64",
  "configuration": {
    "type": "DLL",
    "dllMethodName": "skippy"
  },
  "listenerId": 1,
  "encrypted": true
}

Example 3 - macOS ARM64 Executable Payload

POST /api/v1/payloads HTTP/1.1
Authorization: Bearer {JWT_TOKEN}
Content-Type: application/json

{
  "payloadTemplateId": "shelldot.payload.mac-arm64",
  "configuration": {
    "type": "EXECUTABLE",
    "initialWait": 0,
    "paddingSize": 0
  },
  "listenerId": 1,
  "encrypted": false
}

List All Payloads

Retrieve a list of all created payloads:

GET /api/v1/payloads HTTP/1.1
Authorization: Bearer {JWT_TOKEN}

Archived and unavailable payloads are hidden by default. Include them with:

GET /api/v1/payloads?includeNonActive=true HTTP/1.1
Authorization: Bearer {JWT_TOKEN}

View Payload Details

Fetch detailed information about a specific payload using its ID:

GET /api/v1/payloads/{PAYLOAD_ID} HTTP/1.1
Authorization: Bearer {JWT_TOKEN}

Download a Payload

Download the agent associated with a particular payload:

GET /api/v1/payloads/{PAYLOAD_ID}/download HTTP/1.1
Authorization: Bearer {JWT_TOKEN}

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.

1
2
3
4
5
6
7
PATCH /api/v1/payloads/{PAYLOAD_ID} HTTP/1.1
Authorization: Bearer {JWT_TOKEN}
Content-Type: application/json

{
  "name": "NEW_PAYLOAD_NAME"
}

Archive a Payload

Archive an existing payload.

DELETE /api/v1/payloads/{PAYLOAD_ID} HTTP/1.1
Authorization: Bearer {JWT_TOKEN}