Visitar URL original
Get Agent Tool | Klaviyo API ReferenceSkip to content

This page is available as Markdown at https://developers.klaviyo.com/en/reference/get_agent_tool_beta.md. Its OpenAPI document is at https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/get_agent_tool_beta.json. An index of every page is at https://developers.klaviyo.com/llms.txt.

KlaviyoKlaviyoDevelopers

This endpoint is in beta. Call it with the revision header 2026-10-15.pre. Beta endpoints may change before they're generally available. See our versioning and deprecation policy for more information.

GEThttps://a.klaviyo.com/api/agent-tools/{id}

Returns full configuration for a single tool: protocol, templated request configuration, variables, and referenced secrets.

Use to inspect a tool's setup before referencing it from a skill or modifying its config.

Revision header
revision: 2026-10-15.prerequired
Scopes
agents:read
Rate limits
Burst: 10/sSteady: 150/m

Path parameters

  • id#stringrequired

Query parameters

  • fields[agent-tool]#string[]

    For more information please visit API overview

    Show 14 allowed values
    • details
    • details.config_params
    • details.created_at
    • details.max_retries
    • details.protocol
    • details.request_template
    • details.timeout_seconds
    • details.type
    • details.updated_at
    • details.variables
    • id
    • name
    • public_description
    • public_name

Headers

  • revision#stringrequired

    API endpoint revision (format: YYYY-MM-DD[.suffix])

    2026-10-15.pre

Responses

200Success

Content type: application/vnd.api+json

  • data#objectrequired
    Show 5 fields
    • type#stringrequired
      Allowed values:
      • agent-tool
    • id#stringrequired

      Agent Tool identifier.

    • attributes#objectrequired
      Show 4 fields
      • name#stringrequired

        Human-facing display name for the tool.

      • public_description#stringrequired

        Public description of the tool and when Customer Agent should use it.

      • details#oneOfrequired

        Protocol-specific configuration and read details for the tool.

        One of:

        1. Option 1: AgentToolCustomReadDetails
          • protocol#stringrequired

            Message protocol for this custom tool.

            Allowed values:
            • https
          • request_template#objectrequired

            Templated outbound HTTPS request configuration.

            Show 6 fields
            • url_template#stringrequired

              Outbound URL template. Use Jinja-style variable interpolation, for example https://example.com/orders/{{order_id}}.

            • http_method#stringrequired

              HTTP method for the outbound request.

              Allowed values:
              • GET
              • POST
              • PUT
              • PATCH
              • DELETE
            • request_timeout_seconds#integer

              Outbound request timeout in seconds. Must be greater than 0 and at most 10.

              Default: 5

              Example: 5

            • query_parameters#object[]nullable

              Outbound query parameters. Values may use Jinja-style variables such as {{email}}.

              Show 2 fields
              • name#stringrequired

                Parameter name.

              • value#stringrequired

                Parameter value, optionally using Jinja-style variables.

            • headers#AgentToolKeyValueParameter[]nullable

              Outbound HTTP headers. Values may use Jinja-style variables such as {{api_key}}; for secrets, declare a variable with source: secret and reference it by name in the template.

              Same fields as the first AgentToolKeyValueParameter above.

            • body_template#objectnullable

              JSON request body template. String values may use Jinja-style variables such as {{order_id}}.

          • variables#object[]required

            Template variables available to the request template.

            Show 6 fields
            • name#stringrequired

              Template variable name.

            • type#stringrequired

              Variable value type.

              Allowed values:
              • string
              • number
              • boolean
            • required#boolean

              Whether the variable is required when the tool is called.

              Default: false

            • description#stringnullable

              Optional description of the variable for agent/tool-call context.

            • source#string

              Where the variable value is resolved from. dynamic values are supplied at tool-call time. klaviyo values reference a Klaviyo-provided value with value set to that reference id. secret values reference an agent-secret with value set to the secret id.

              Allowed values:
              • dynamic
              • klaviyo
              • secret

              Default: dynamic

              Example: dynamic

            • value#stringnullable

              Reference value for non-dynamic variables. For source: secret, this is the agent-secret id. For source: klaviyo, this is the Klaviyo reference id. For source: dynamic, omit this field or set it to null.

          • timeout_seconds#integerrequired

            Overall tool execution timeout in seconds.

          • max_retries#integerrequired

            Maximum retry attempts for the tool call.

          • created_at#string<date-time>nullable

            Date and time when the tool was created, if available.

            Example: 2022-11-08T00:00:00+00:00

          • updated_at#string<date-time>nullable

            Date and time when the tool was last updated, if available.

            Example: 2022-11-08T00:00:00+00:00

          • type#string

            Read detail variant for custom HTTPS tools.

            Allowed values:
            • custom
            • internal

            Default: custom

            Example: custom

        2. Option 2: AgentToolInternalReadDetails
          • config_params#object[]

            Author-time configuration parameters supported by this tool.

            Default: []

            Show 5 fields
            • name#stringrequired

              Machine key used in instruction tokens and merged into raw input.

            • label#stringrequired

              End-user facing label shown in the configuration UI.

            • description#stringnullable

              Optional help text rendered alongside the UI control.

            • input_type#string

              UI control type. single_select and multi_select values are lists of strings; custom_fields values are an object of custom fields.

              Allowed values:
              • single_select
              • multi_select
              • custom_fields

              Default: single_select

              Example: single_select

            • required#boolean

              Whether the configuration parameter is required.

              Default: true

              Example: true

          • type#string

            Read detail variant for first-party Klaviyo tools.

            Allowed values:
            • custom
            • internal

            Default: internal

            Example: internal

      • public_name#stringnullable

        Optional customer-facing name for the tool.

    • relationships#objectrequired
      Show 2 fields
      • agent-secrets#objectrequired
        Show 2 fields
        • data#object[]
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • agent-secret
          • id#stringrequired

            Agent Secret IDs referenced by this tool.

      • agent-skills#object
        Show 2 fields
        • data#object[]
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • agent-skill
          • id#stringrequired

            Agent skill IDs that can call this tool.

4XXClient Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string

5XXServer Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string