Skip to main content
Question

API key text_xxx is not recognized

  • March 9, 2026
  • 3 replies
  • 46 views

kaimys
Forum|alt.badge.img+2

Hi, I am using Draftbit (React) with the latest RC SDK (9.11.2) but still get the error specified API Key is not recognized when I am running it on ExpoGo on iOS. What could possibly cause this???

 

  if(uuid) conf['appUserID'] = uuid;

    if(Constants.executionEnvironment == 'bare') { // check for ExpoGO

      console.log('Using RevenueCat Test Store');

      conf['apiKey'] = APIKeys.revenueCatTestStore;

    } else if (Platform.OS == 'android') {

      console.log('Using Android Play Store');

      conf['apiKey'] = APIKeys.google;

    } else {

      console.log('Using AppStore');

      conf['apiKey'] = APIKeys.apple;

    }

    await Purchases.configure(conf);

The error log:

Using RevenueCat Test Store

[RevenueCat] 😿‼️ The specified API Key is not recognized. Ensure that you are using the public app-specific API key, which should look like 'appl_1a2b3c4d5e6f7h'. See https://rev.cat/auth for more details.

3 replies

matt-heaney
RevenueCat Staff
Forum|alt.badge.img+3
  • RevenueCat Staff
  • March 9, 2026

Hey ​@kaimys,

 

Thanks for your post. Matt from RevenueCat here. I’d love to help with this.

 

This error message occurs when the API key used to configure the SDK is incorrect. When using the Test Store, this can also happen if the SDK version you are using isn’t high enough. However, since you are using version 9.11.2, that shouldn’t be the case here.

 

Could you please check that the API key you are using matches the one from your RevenueCat dashboard?

 

This can be found in your RevenueCat dashboard under “Apps & Providers”, and can be copied from there.

 

Based on your code, if the API key looks correct, it would also be worth double-checking that the code path where the Test Store API key is being set is running as expected, and that this API key is actually being used rather than the if statement falling into one of the else branches.

 

I hope this helps!


kaimys
Forum|alt.badge.img+2
  • Author
  • Member
  • March 9, 2026

Hi Matt, thanks for your quick reply. Of course checked the API key - more than twice! I also added console.log('Using RevenueCat Test Store') to make sure the right key is taken. I even logged  APIKeys.revenueCatTestStore to the console! I wrote my post just because I am running out of options what else I could check. I also talked to you AI bot.

The error message doesn’t occur on Purchases.configure(conf) but on the subsequent Purchases.getCustomerInfo() call. The uuid is also set.


matt-heaney
RevenueCat Staff
Forum|alt.badge.img+3
  • RevenueCat Staff
  • March 10, 2026

Hey ​@kaimys,

Thank you for the extra information and for confirming that all API keys are correct.

This is a strange one. Could I please ask you to send me the API keys exactly as they appear in your code file via private message so I can run some checks and validate them on my end (please do not share these publicly). Alternatively, you can open a support ticket here with the information included and send me the ticket number.

Thank you again for the extra information. We’ll get this working!

Thanks,

Matt from RevenueCat
Developer Support Engineer