Get an HTTP tool
tools:readAuthenticationReturns the complete normalized request template. Secret placeholders remain references; plaintext secret values are never materialized.
bearerAuthAuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
id*stringuuidComplete HTTP tool.
application/json- response
id*stringuuidslug*stringname*stringdescription*string|nullmode*ToolMode"sync""async"phase*ToolPhaseWhen the tool runs. in_call (the default, and every tool authored before this field existed) is invoked by the model during the conversation. pre_call fires once, before the agent speaks, with no model involvement: its parameters must be static, system, or secret cards, its templates may reference only {{system.NAME}}, {{vars.NAME}}, and {{secrets.NAME}}, and its response_map names the values it publishes as {{tools.SLUG.NAME}}. pre_call additionally requires mode: sync, default_reaction: speaks, and precomputable: false, because all three describe behaviour during a conversation that has not started yet.
"in_call""pre_call"method*ToolMethod"GET""POST""PUT""PATCH""DELETE"url*stringdefault_reaction*ToolReaction"speaks""listens"precomputable*booleancarry_across_calls*booleantimeout_ms*integerretries*integerarchived_at*|date-timecreated_at*stringdate-timeupdated_at*stringdate-timeheaders*Header templates. Host, Content-Length, Transfer-Encoding, Connection, Proxy-Authorization, Proxy-Authenticate, Proxy-Connection, Keep-Alive, TE, Trailer, and Upgrade are transport-controlled and forbidden. Values cannot contain CR/LF.
properties <= 100body*||Templated string, templated JSON object, or null for no request body. Arrays and scalar JSON values other than strings are rejected.
parameters*array<||||>|response_map*Map of destination slot name to the supported tiny JSONPath syntax, such as $.customer.name or $.items.0.id.
properties <= 100internal_slots*array<>Subset of response_map slot names whose captured value is withheld from the model. The slot is still filled and still usable in templated tool fields such as a later request body or URL, but its value is never placed in the conversation the model sees, so a tool may return an account number or a policy document without that text entering the transcript or a prompt. Every entry must be a key of response_map; an unknown name is a 422. Stored canonically (sorted and deduplicated); omitted or null means an empty list.
items <= 100ack_response*|Async-only agent-visible templated JSON object injected immediately while the real request continues; null disables it. It may use {{params.NAME}}, {{slots.NAME}}, {{system.NAME}}, and {{vars.NAME}}. It must never reference {{secrets.NAME}} at any nesting depth; public validation rejects the request rather than exposing a credential to the agent.
curl -X GET 'https://api.kejue.co/v1/tools/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "slug": "string", "name": "string", "description": "string", "mode": "sync", "phase": "in_call", "method": "GET", "url": "string", "default_reaction": "speaks", "precomputable": true, "carry_across_calls": true, "timeout_ms": 0, "retries": 0, "archived_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "headers": { "property1": "string", "property2": "string" }, "body": "string", "parameters": [ { "name": "string", "kind": "dynamic", "location": "path", "type": "string", "description": "string", "required": false, "enum_values": [ "string" ], "properties": [ { "name": "string", "type": "string", "description": "string", "required": false, "enum_values": [ "string" ] } ], "items": { "type": "string", "enum_values": [ "string" ], "properties": [ { "name": "string", "type": "string", "description": "string", "required": false, "enum_values": [ "string" ] } ] } } ], "response_map": { "property1": "string", "property2": "string" }, "internal_slots": [ "string" ], "ack_response": {}}