# Setting Up a Secure API Key on Hestia CP

**URL:** <https://forum.hestiacp.com/t/setting-up-a-secure-api-key-on-hestia-cp/20843>\
**Category:** General Questions\
**Created:** [January 10, 2026, 2:04pm UTC](https://forum.hestiacp.com/t/setting-up-a-secure-api-key-on-hestia-cp/20843 "2026-01-10T14:04:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ome](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/o/aca169/32.png) [@ome](https://forum.hestiacp.com/u/ome)\
**Post date:** [January 10, 2026, 2:04pm UTC](https://forum.hestiacp.com/t/setting-up-a-secure-api-key-on-hestia-cp/20843/1 "2026-01-10T14:04:13Z")

</div>

I’m trying to set up a way to hide my API Key on the Hestia CP  
My goal is to create a secure way to use my API key without exposing it to the browser.

What I’ve tried:

1. Created /home/username/web/my\_domain.com/public\_html/ds-test/index.php
2. Used PHP cURL to call DeepSeek API
3. Added my API key in the PHP code

Current Status:

- Page loads but API calls fail
- Getting HTTP errors or no response
- Not sure if it’s a PHP, cURL, or firewall issue

Any tips, or available step-by-step tutorial on how to achieve this goal?

---

<div class="post-metadata">

**Author:** ![linkp](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/linkp/32/2863_2.png) [@linkp](https://forum.hestiacp.com/u/linkp)\
**Post date:** [January 12, 2026, 2:01am UTC](https://forum.hestiacp.com/t/setting-up-a-secure-api-key-on-hestia-cp/20843/2 "2026-01-12T02:01:01Z")

</div>

I think your question might be outside the scope of this forum. Since this space is focused on HestiaCP, you’ll probably get more helpful answers in a community dedicated to general web development or API integration. That way, you’ll find people with the right expertise to guide you through setting up your API secret.

---

<div class="post-metadata">

**Author:** ![system](https://forum.hestiacp.com/uploads/default/original/1X/d9a5b68bf50ced83e880b56452e592b204761b19.png) [@system](https://forum.hestiacp.com/u/system)\
**Post date:** [February 11, 2026, 2:01am UTC](https://forum.hestiacp.com/t/setting-up-a-secure-api-key-on-hestia-cp/20843/3 "2026-02-11T02:01:33Z")

</div>

Closed on February 11, 2026, 2:01am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
