Skip to main content
Contributor I
February 1, 2023
Solved

Is there a way by REST api or otherwise to check the permissions a private apiKey?

  • February 1, 2023
  • 1 reply
  • 358 views

We want to validate that an apiKey has all the permissions we need before we onboard them to an integration with Klaviyo.

    This topic has been closed for replies.
    Best answer by Brian Turcotte

    Hi @meitalmtz and welcome to the Community!

     

    At this time, there’s no supported way to determine the scope permissions of a private API key at a glance. The only way to determine the exact scope is to have the owner or admin of the account tell you the scope/permission for the key, or delete and recreate the key while taking note of the scope. 

     

    However, the user in this thread did determine a workaround that was suitable for his use case, if you’re interested (last comment):

     

    There has also been a Product Request made for this feature, so I’ll update the thread when I know more about that.

     

    Thanks for using the Community!

    - Brian

    1 reply

    Brian Turcotte
    Klaviyo Alum
    February 1, 2023

    Hi @meitalmtz and welcome to the Community!

     

    At this time, there’s no supported way to determine the scope permissions of a private API key at a glance. The only way to determine the exact scope is to have the owner or admin of the account tell you the scope/permission for the key, or delete and recreate the key while taking note of the scope. 

     

    However, the user in this thread did determine a workaround that was suitable for his use case, if you’re interested (last comment):

     

    There has also been a Product Request made for this feature, so I’ll update the thread when I know more about that.

     

    Thanks for using the Community!

    - Brian