> ## 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 secret and public API keys

Locate and copy your secret key and public key from the Fintoc dashboard for `test` and `live` modes.

<Warning>
  Never send your secret key to the frontend. Make requests that use your secret key only from your backend so the key never reaches the client.
</Warning>

To use the Fintoc API, you need your secret key. To instantiate the Fintoc widget, you need your public key. To manage your API keys, open [the dashboard](https://dashboard.fintoc.com/).

In the dashboard, open the 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>

By default, you see `live` mode. To switch, use the mode toggle to select `test` mode:

<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](/guides/resources/test-mode), use the API keys shown in `test` mode. Otherwise, use the API keys shown in `live` mode.

When an API key is available, select the *eye* button beside it to reveal the key:

<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>

Secret keys start with `sk_`. Public keys start with `pk_`.

<Warning>
  **The dashboard shows your `live` secret key only during activation or rotation**

  You can copy and view your secret key only when you activate or rotate it, so store it securely in your backend.
</Warning>

You can access both your public key and secret key for `test` mode at any time with the *eye* or *copy* buttons.

For `live` mode, you can always access the public key. The dashboard displays the secret key only when you activate or rotate it, so store it securely in your backend when the key appears.

<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 recommend that you rotate your secret key for `live` mode at least once per year. Open the API keys page, then select the three-dot menu on the right side of the table. You can schedule the rotation or rotate the key 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>
