hornet icon

hornet

Interact with hornet API

Actions452

Emails Mark As → Emails Mark Spam Post

AI-generated

Summary

Mark emails as spam via the Hornet API.

Inputs

  • APP-ID (required) — A unique identifier specific to your app issued by Hornet Security. Sent as a request header.
  • body (required) — JSON payload defining which emails to mark as spam. The exact schema depends on the Hornet API; it is parsed from the string value before sending.
  • requestOptions — Additional HTTP request settings, including batching, SSL handling, proxy, and timeout.

Output shape

The raw HTTP response from the Hornet API (status code, headers, and body).

If batching is enabled, items are processed in groups according to the batch size and interval.

Examples

Example 1: Mark a list of email IDs as spam.

Set APP‑ID to your app token, set body to an array of IDs (e.g. [{id: '123'}, {id: '456'}]), leave requestOptions at defaults.

Links

Discussion