Visitar URL original
Update API Key | Klaviyo API ReferenceSkip to content

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

PATCHhttps://a.klaviyo.com/api/api-keys/{id}

Update the label or enable/disable the key.

Revision header
revision: 2026-10-15.prerequired
Scopes
credentials:write
Rate limits
Burst: 1/sSteady: 15/m

Path parameters

  • id#stringrequired

    Identifier for the key to update.

    Example: 01HQXYZ

Query parameters

  • additional-fields[api-key]#string[]

    Request additional fields not included by default in the response. Supported values: 'redacted_key'

    Allowed values:
    • redacted_key
  • fields[api-key]#string[]

    For more information please visit API overview

    Allowed values:
    • created
    • id
    • name
    • redacted_key
    • scopes
    • status

Headers

  • revision#stringrequired

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

    2026-10-15.pre

Request body

Content type: application/vnd.api+jsonrequired

  • data#objectrequired
    Show 3 fields
    • type#stringrequired
      Allowed values:
      • api-key
    • id#stringrequired

      Identifier for the key to update.

      Example: 01HQXYZ

    • attributes#objectrequired
      Show 2 fields
      • name#stringnullable

        New human-readable label for the key.

        Example: prod-webhook-handler

      • status#stringnullable

        New status. Use to enable or disable the key.

        Allowed values:
        • active
        • disabled

        Example: disabled

Responses

200Success

Content type: application/vnd.api+json

  • data#objectrequired
    Show 4 fields
    • type#stringrequired
      Allowed values:
      • api-key
    • id#stringrequired

      Identifier for the key.

      Example: 01HQXYZ

    • attributes#objectrequired
      Show 5 fields
      • name#stringrequired

        Human-readable label set on the key.

        Example: prod-webhook-handler

      • status#stringrequired

        Whether the key is active or disabled.

        Allowed values:
        • active
        • disabled

        Example: active

      • scopes#string[]required

        API scopes granted to this key.

        Show 75 allowed values
        • accounts:read
        • accounts:write
        • agents:read
        • agents:write
        • applications:read
        • applications:write
        • billing:read
        • billing:write
        • brands:read
        • brands:write
        • campaigns:read
        • campaigns:write
        • catalogs:read
        • catalogs:write
        • comments:read
        • comments:write
        • conversations:read
        • conversations:write
        • coupon-codes:read
        • coupon-codes:write
        • coupons:read
        • coupons:write
        • credentials:read
        • credentials:write
        • custom-objects:read
        • custom-objects:write
        • data-privacy:read
        • data-privacy:write
        • events:read
        • events:write
        • experiments:read
        • flows:read
        • flows:write
        • folders:read
        • folders:write
        • forms:read
        • forms:write
        • images:read
        • images:write
        • lists:read
        • lists:write
        • locations:read
        • locations:write
        • messages:read
        • messages:write
        • metrics:read
        • metrics:write
        • profiles:read
        • profiles:write
        • push-tokens:read
        • push-tokens:write
        • reviews:read
        • reviews:write
        • segments:read
        • segments:write
        • sender-config:read
        • sender-config:write
        • social:read
        • subscriptions:read
        • subscriptions:write
        • tags:read
        • tags:write
        • templates:read
        • templates:write
        • tracking-settings:read
        • tracking-settings:write
        • translations:read
        • translations:write
        • usage:read
        • users:read
        • users:write
        • web-feeds:read
        • web-feeds:write
        • webhooks:read
        • webhooks:write
      • created#string<date-time>required

        Date and time when the key was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).

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

      • redacted_key#stringnullable

        Masked form of the key showing only the last four characters. Returned only when requested via additional-fields[api-key]=redacted_key.

        Example: pk_****abcd

  • meta#object

    Response-level metadata

    Show 1 field
    • agent_hints#object

      Optional hints emitted by the API for agent callers

      Show 1 field
      • next_steps#string[]

        Suggested follow-up actions for agents to take after this response

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