Skip to main content
Solved

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

  • February 1, 2023
  • 1 reply
  • 239 views

Forum|alt.badge.img+2

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

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

View original
Did this topic or the replies in the thread help you find an answer to your question?

1 reply

Brian Turcotte
Forum|alt.badge.img+37
  • Klaviyo Alum
  • 1393 replies
  • Answer
  • 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