Use Vault Credential
vault_credential_useMake an outbound HTTPS call with a stored credential attached SERVER-SIDE, and get the upstream response. Use this to act with a secret (call an API, hit an authed endpoint) WITHOUT ever seeing the plaintext — the platform injects the credential on the wire. The target host must be on the credential's allowlist. Works even for brokered credentials that can never be revealed. Prefer this over trying to read a secret: you can use it, you cannot see it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Credential ID to broker the call with. | |
| url | Yes | Absolute https:// URL to call. Its host MUST be on the credential's allowlist (allowedHosts / login URIs). | |
| body | No | Raw request body (encode JSON yourself). | |
| method | Yes | HTTP method for the outbound call. | |
| agentId | No | Agent ID that owns the credential. Optional when using an agent-bound credential. | |
| headers | No | Extra request headers. Any Authorization / auth header you set is IGNORED and replaced by the real credential. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||