Skip to main content

Your secret key could not be authorized - what you need to do

I
Written by Ibukun
Updated over a month ago

This error implies that there is a mismatch between the API keys being used and the environment.

To solve this,

  1. kindly confirm that the base URL matches the environment from which the API keys are retrieved.

    1. SANDBOX baseURL ==> https://sandbox.dojah.io

    2. PRODUCTION baseURL ==> https://api.dojah.io

  2. Ensure that you are using the private keys and not the public keys and can be retrieved from the configuration page on the dashboard.

    1. In the production / live environment, it’s in the format “prod_sk_…”

    2. In the sandbox / test environment, it’s in the format “test_sk_…”

Did this answer your question?