Write through a secret
use_secret_writeSend a POST, PUT, PATCH or DELETE request with a secret injected as a header, and return the response. The secret value is never returned to the agent — it is decrypted and used server-side only. This changes state in the remote API and cannot be undone from here. The URL is chosen by the caller, so the target is whichever API the secret belongs to — see that API's own documentation for paths and payloads. Requires secrets:read or full permission. Use use_secret for GET and HEAD, list_secrets to discover names, and store_secret or rotate_secret to change a stored value rather than send a request. Pass playbook_id as the UUID or GUID of the playbook this call should target.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to send the HTTP request to | |
| body | No | JSON request body (for POST/PUT/PATCH) | |
| method | No | HTTP method (default: POST). For GET/HEAD use use_secret. | |
| timeout_ms | No | Request timeout in milliseconds (default: 30000, max: 60000) | |
| header_name | No | Header name to inject the secret into (default: Authorization) | |
| playbook_id | Yes | UUID or GUID of the target playbook | |
| secret_name | Yes | Name of the secret to use (e.g. DEPLOY_API_KEY) | |
| extra_headers | No | Additional headers (e.g. {"Content-Type": "application/json"}) | |
| header_prefix | No | Prefix before the secret value (default: 'Bearer '). Use empty string for raw value. |