curl -X POST https://api.electronhub.ai/v1/auth/proxy/remove \
-H "Authorization: Bearer $ELECTRONHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"proxy_key": "ek-proxy-1234567890abcdef"}'
import httpx
response = httpx.post(
"https://api.electronhub.ai/v1/auth/proxy/remove",
headers={
"Authorization": f"Bearer {api_key}",
"Content-Type": "application/json",
},
json={"proxy_key": "ek-proxy-1234567890abcdef"},
)
result = response.json()
print(f"Delete result: {result['message']}")
const response = await fetch('https://api.electronhub.ai/v1/auth/proxy/remove', {
method: 'POST',
headers: {
'Authorization': `Bearer ${process.env.ELECTRONHUB_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ proxy_key: 'ek-proxy-1234567890abcdef' }),
});
const result = await response.json();
console.log(`Delete result: ${result.message}`);
{
"message": "Proxy key deleted"
}
{
"detail": "Proxy key not found"
}
Proxy Keys
Delete Proxy Key
Delete a specific proxy key you own
POST
/
auth
/
proxy
/
remove
curl -X POST https://api.electronhub.ai/v1/auth/proxy/remove \
-H "Authorization: Bearer $ELECTRONHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"proxy_key": "ek-proxy-1234567890abcdef"}'
import httpx
response = httpx.post(
"https://api.electronhub.ai/v1/auth/proxy/remove",
headers={
"Authorization": f"Bearer {api_key}",
"Content-Type": "application/json",
},
json={"proxy_key": "ek-proxy-1234567890abcdef"},
)
result = response.json()
print(f"Delete result: {result['message']}")
const response = await fetch('https://api.electronhub.ai/v1/auth/proxy/remove', {
method: 'POST',
headers: {
'Authorization': `Bearer ${process.env.ELECTRONHUB_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ proxy_key: 'ek-proxy-1234567890abcdef' }),
});
const result = await response.json();
console.log(`Delete result: ${result.message}`);
{
"message": "Proxy key deleted"
}
{
"detail": "Proxy key not found"
}
Permanent delete. Identify the key with body field proxy_key. Legacy DELETE /v1/auth/proxy/delete/ still works but is discouraged.
curl -X POST https://api.electronhub.ai/v1/auth/proxy/remove \
-H "Authorization: Bearer $ELECTRONHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"proxy_key": "ek-proxy-1234567890abcdef"}'
import httpx
response = httpx.post(
"https://api.electronhub.ai/v1/auth/proxy/remove",
headers={
"Authorization": f"Bearer {api_key}",
"Content-Type": "application/json",
},
json={"proxy_key": "ek-proxy-1234567890abcdef"},
)
result = response.json()
print(f"Delete result: {result['message']}")
const response = await fetch('https://api.electronhub.ai/v1/auth/proxy/remove', {
method: 'POST',
headers: {
'Authorization': `Bearer ${process.env.ELECTRONHUB_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ proxy_key: 'ek-proxy-1234567890abcdef' }),
});
const result = await response.json();
console.log(`Delete result: ${result.message}`);
{
"message": "Proxy key deleted"
}
{
"detail": "Proxy key not found"
}
Authorizations
Enter your API key (starts with 'ek-')
Body
application/json
The proxy key to look up / toggle / delete (must be one you own)
Required string length:
1 - 256Example:
"ek-proxy-1234567890abcdef"
Response
Proxy key deleted successfully
Example:
"Proxy key deleted"
