export_policy_pack
Exports a published policy pack version to Claude Code hooks, Kong or Zuplo and returns the export with a download link that works for 15 minutes. Without version the latest version is used; the baseline pack has version 1.0. For Claude Code, mode project gives files for the repository and mode managed gives files your administrators install.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | For Claude Code hooks. Default project. | |
| target | Yes | Where the export runs. | |
| pack_id | Yes | The pack id, or baseline. | |
| version | No | The version, such as 1.0. Optional. | |
| organisation | No | The organisation's URL name (slug), from list_organisations. Leave it out: a connection signed in through OAuth reaches only the one organisation the person chose at sign-in, and an API key only its own. Only a connection approved before that choice existed, which reaches several organisations, needs it. |