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

This page is available as Markdown at https://developers.klaviyo.com/en/reference/get_agent_secrets_beta.md. Its OpenAPI document is at https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/get_agent_secrets_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-secrets

Lists the secrets configured for the calling company, one page at a time.

Returns secret metadata (name, mask, timestamps) and never the plaintext value, which cannot be read back after creation. Follow links.next to fetch the next page. Results are sorted by id.

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

Query parameters

  • fields[agent-secret]#string[]

    For more information please visit API overview

    Allowed values:
    • created_at
    • id
    • mask
    • name
    • updated_at
  • page[size]#integer

    Default: 50. Min: 1. Max: 100.

  • page[cursor]#string

    Page cursor

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-secret
    • id#stringrequired

      Agent Secret identifier.

      Example: sec_abc123

    • attributes#objectrequired
      Show 4 fields
      • name#stringrequired

        Display name for the secret.

        Example: Order API key

      • mask#stringrequired

        Last 3 characters of the plaintext value, for visual disambiguation. The plaintext itself is never returned.

        Example: **********ken

      • created_at#string<date-time>required

        Date and time when the secret was created.

        Example: 2026-05-13T12:00:00+00:00

      • updated_at#string<date-time>required

        Date and time when the secret was last updated.

        Example: 2026-05-13T12:00:00+00:00

    • relationships#objectrequired
      Show 1 field
      • agent-tools#objectrequired
        Show 2 fields
        • data#object[]
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • agent-tool
          • id#stringrequired

            Agent tool IDs that reference this secret.

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