> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fintoc.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get your Fintoc account's Secret Key and Public Key

<Warning>
  **Warning**

  Your Secret Key should **never** be sent to the frontend. Fintoc endpoints should be accessed through a backend, so that your Secret Key never comes in direct contact with the client.
</Warning>

To be able to use the Fintoc API, you need to have your Secret Key at hand. To instantiate the Fintoc widget, you need to have your Public Key at hand. If you need to retrieve any of these API Keys, head over to [the dashboard](https://dashboard.fintoc.com/).

Once in the dashboard, click on the button to go to your API Keys page:

<Frame>
  <img src="https://mintcdn.com/fintoc-49b8bee8/SkvJJ-DZ5D4yC6tQ/images/bb8cb122b9033147bb57750b4e99a0c26eb91ea6252793e376ea190186d8f42d-Captura_de_pantalla_2025-04-15_a_las_12.24.09.png?fit=max&auto=format&n=SkvJJ-DZ5D4yC6tQ&q=85&s=f1c84d257536268108c715aeeaf9ef63" width="404" height="262" data-path="images/bb8cb122b9033147bb57750b4e99a0c26eb91ea6252793e376ea190186d8f42d-Captura_de_pantalla_2025-04-15_a_las_12.24.09.png" />
</Frame>

Notice that, by *default*, you are seeing the *Live* mode. You can also see the *Test* mode by using the *mode* toggle:

<Frame>
  <img src="https://mintcdn.com/fintoc-49b8bee8/SkvJJ-DZ5D4yC6tQ/images/f597f13ca0a9f47ea3e76ae1bbc7002f8e141c11e8e76aeb1ec576f4e9d63d2b-Captura_de_pantalla_2025-04-15_a_las_12.24.47.png?fit=max&auto=format&n=SkvJJ-DZ5D4yC6tQ&q=85&s=0e2653333957e302d6d6ed72ca6cf350" width="408" height="482" data-path="images/f597f13ca0a9f47ea3e76ae1bbc7002f8e141c11e8e76aeb1ec576f4e9d63d2b-Captura_de_pantalla_2025-04-15_a_las_12.24.47.png" />
</Frame>

If you are using the [test environment](/v2023-11-15/docs/resources/test-mode), you should use the API keys shown in the *Test* mode. Otherwise, you should use the API shown in the *Live* mode.

You can see your API keys by pressing the little *eye* button beside them:

<Frame caption="The *eye* button beside an API key reveals it">
  <img src="https://mintcdn.com/fintoc-49b8bee8/YQmOnq8Zegydl6oL/images/497058b89e7155b9170897e98d618172c8cb77d6adb7f55fd04cbbefb270bfb1-Captura_de_pantalla_2025-04-15_a_las_12.26.18.png?fit=max&auto=format&n=YQmOnq8Zegydl6oL&q=85&s=a0dd211d223ddade30e8e487781f6b86" width="1482" height="346" data-path="images/497058b89e7155b9170897e98d618172c8cb77d6adb7f55fd04cbbefb270bfb1-Captura_de_pantalla_2025-04-15_a_las_12.26.18.png" />
</Frame>

Notice that some of the API keys start with `sk_` and others start with `pk_`. The API keys that start with `sk_` are the Secret Keys, and the API keys that start with `pk_` are the Public Keys.

<Warning>
  **You can only access your secret API Keys for Live Mode once**

  You will only be able to copy and see your API Key when you activate or rotate it. Make sure to store them securely in your backend.
</Warning>

You can access both your public and secret key for test mode whenever you want, using the *eye* or *copy* buttons.

For live mode, the public key can always be accessed, but the secret key is only displayed when activating or rotating the key, so make sure to store it securely in your back end when revealed

<Frame>
  <img src="https://mintcdn.com/fintoc-49b8bee8/YQmOnq8Zegydl6oL/images/090b18e36138fe291e0015e108f6cb3f778ebb1b8940412da0fcce8fe91f599d-Captura_de_pantalla_2025-04-15_a_las_12.30.04.png?fit=max&auto=format&n=YQmOnq8Zegydl6oL&q=85&s=fce0410dc1ae75ecdc44d4f3709b3375" width="2196" height="830" data-path="images/090b18e36138fe291e0015e108f6cb3f778ebb1b8940412da0fcce8fe91f599d-Captura_de_pantalla_2025-04-15_a_las_12.30.04.png" />
</Frame>

We recomend you rotate your live secret key at least once per year. To do this, access the API Keys section and click on the 3 dots on the right side of the table. You can schedule the rotation date or execute it immediately:

<Frame>
  <img src="https://mintcdn.com/fintoc-49b8bee8/YQmOnq8Zegydl6oL/images/2623d10bb368a01841d818b9238acacfda951dd5d938222cf18fd136de1702f2-Captura_de_pantalla_2025-04-15_a_las_12.33.48.png?fit=max&auto=format&n=YQmOnq8Zegydl6oL&q=85&s=65d3805ce61b66731647dcdd56e03915" width="2094" height="522" data-path="images/2623d10bb368a01841d818b9238acacfda951dd5d938222cf18fd136de1702f2-Captura_de_pantalla_2025-04-15_a_las_12.33.48.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/fintoc-49b8bee8/SkvJJ-DZ5D4yC6tQ/images/f4d0e2cdf5e1360290c5ba39a9180531dc956a711ad8f1e8aa1df734d9e046fb-Captura_de_pantalla_2025-04-15_a_las_12.34.26.png?fit=max&auto=format&n=SkvJJ-DZ5D4yC6tQ&q=85&s=5855f5915a4f299b6ca2ebe25ea8451c" width="2062" height="1262" data-path="images/f4d0e2cdf5e1360290c5ba39a9180531dc956a711ad8f1e8aa1df734d9e046fb-Captura_de_pantalla_2025-04-15_a_las_12.34.26.png" />
</Frame>
