Skip to main content
Question

How to create a sandbox api key?

  • May 3, 2022
  • 7 replies
  • 1219 views

Forum|alt.badge.img+5

I didn’t find how to create a sandbox only api key. Is it possible?

This post has been closed for comments

7 replies

cody
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • May 6, 2022

Hey @Patricia Wong!

RevenueCat uses the same API key for sandbox and production purchases - you’ll find your API keys in the `API Keys` tab in your project settings: https://docs.revenuecat.com/docs/authentication


Forum|alt.badge.img+5

Hi @cody , is there indication when this will be separated? And when separate webhooks for test/production will be supported?


Forum|alt.badge.img+2
  • New Member
  • December 9, 2022

For data security reasons this would be very important to keep production data out of the sandbox  API during development. We would like to give our devs a sandbox API key so they can test everything but guarantee they do not break the production data.

 

Maybe a different option is then to create a 2nd RC account? This makes it harder to guarantee that the different environments use the same offerings defintions.


Forum|alt.badge.img
  • New Member
  • January 18, 2023

I am also looking for this info. How do you set up a full sandbox env for dev purposes, including API access? 


Forum|alt.badge.img+4
  • New Member
  • September 19, 2023

I want to echo that having API access to sandbox data would is important for keeping dev and prod data separate. @cody I would like to know if there are any plans to access the sandbox data via the API.


  • New Member
  • October 13, 2024

Still no way to securely have a sandbox API key ?


sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • October 15, 2024

Hi @1500-marc,

Correct, the API keys that we have are used for both sandbox and production purchases. Can you explain a little more about how you would use a sandbox API key?