hornet icon

hornet

Interact with hornet API

Actions452

Terms And Conditions → Tc Get

AI-generated

Summary

Retrieves the Terms and Conditions for a Partner object from the Hornet Security API.

Inputs

  • object_id (required) — Identifier of the Partner object whose Terms and Conditions are to be fetched. Must be a Partner object identifier, default is 0 but required in the UI (so it must be provided).
  • language (required) — Language for the Terms and Conditions content. Must be one of: en, de, es, fr, ja. Default is 'en'.
  • version — Specific version of the Terms and Conditions to retrieve. If omitted, the API returns the latest version.
  • type — Type of agreement to retrieve. Options: GENERAL or PARTNER_AGREEMENT. Default is GENERAL.
  • download — When set to true, the operation returns the raw file content suitable for download; otherwise returns a structured representation of the terms.
  • APP-ID (required) — Application identifier issued by Hornet Security. Sent as a request header.

Output shape

The operation returns the Terms and Conditions data as provided by the API. If the download flag is true, the response body is the raw file content; otherwise it is a JSON object containing the terms details.

The node uses the hornetApi credentials for authentication and sends requests to https://cp.hornetsecurity.com/api/v0 with Accept and Content-Type headers set to application/json. All parameters except APP-ID are sent as query string parameters.

Examples

Example 1: Fetch latest English General Terms and Conditions for partner ID 12345 without download

object_id: 12345, language: en, download: false

Example 2: Download the Spanish Partner Agreement version 2.0 for partner ID 67890

object_id: 67890, language: es, type: PARTNER_AGREEMENT, version: 2.0, download: true

Links

Discussion