Skip to main content
Solved

Error 7000 "Invalid platform" when getting offerings using secret API v1 key

  • Apr 9, 2024 5:06 PM UTC
  • 2 replies
  • 554 views

Forum|alt.badge.img+1

Hi,

I’m getting an error when trying to obtain offerings for a specific platform using the v1 offerings endpoint if I use the secret API v1 key instead of using an app-specific API public key. I’m sending the X-Platform header properly as indicated in the docs.

Here’s the endpoint I’m using:

https://api.revenuecat.com/v1/subscribers/{app_user_id}/offerings

 

Error:

{
"result": {
"code": 7000,
"message": "Invalid Platform."
}
}

If I set the auth header to the app-specific API key it returns properly.

Is that the intended behavior? I’ve obtained the endpoint usage information from:

https://www.revenuecat.com/docs/api-v1#tag/offerings/operation/get-offerings

 

Thanks in advance!

Best answer by wes_clark

Hi! Yes, it is currently intended behavior that the endpoint only allows the use of the app-specific API keys. Thank you for calling out that the documentation does not state that part; we will work on getting that information added. I apologize for the inconvenience.

View original
This post has been closed for comments

2 replies

wes_clark
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • Answer
  • Apr 11, 2024 4:52 PM UTC

Hi! Yes, it is currently intended behavior that the endpoint only allows the use of the app-specific API keys. Thank you for calling out that the documentation does not state that part; we will work on getting that information added. I apologize for the inconvenience.


Forum|alt.badge.img+1
  • Author
  • New Member
  • Apr 12, 2024 10:23 AM UTC

Hey @wes_clark !! Thanks for your answer! 👍 
I’ll move on with app-specific keys then.