X-Access-Key and the API secret as X-Secret-Key.
Headers
Authorization header for dashboard-created API credentials.
Example request
Authentication errors
All error responses follow a consistent shape:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Authenticate to The Hog API with the API key and API secret from your dashboard.
X-Access-Key and the API secret as X-Secret-Key.
X-Access-Key: ak_xxxxxxxxxxxxxxxx
X-Secret-Key: sk_xxxxxxxxxxxxxxxx
Authorization header for dashboard-created API credentials.
curl -X POST https://developer.thehog.ai/api/v1/companies/search \
-H "X-Access-Key: ak_xxxxxxxxxxxxxxxx" \
-H "X-Secret-Key: sk_xxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"query": "Salesforce", "limit": 5}'
import httpx
response = httpx.post(
"https://developer.thehog.ai/api/v1/companies/search",
headers={
"X-Access-Key": "ak_xxxxxxxxxxxxxxxx",
"X-Secret-Key": "sk_xxxxxxxxxxxxxxxx",
"Content-Type": "application/json",
},
json={"query": "Salesforce", "limit": 5},
)
print(response.json())
const response = await fetch("https://developer.thehog.ai/api/v1/companies/search", {
method: "POST",
headers: {
"X-Access-Key": "ak_xxxxxxxxxxxxxxxx",
"X-Secret-Key": "sk_xxxxxxxxxxxxxxxx",
"Content-Type": "application/json",
},
body: JSON.stringify({ query: "Salesforce", limit: 5 }),
});
const data = await response.json();
| Status code | Meaning | What to check |
|---|---|---|
401 Unauthorized | Missing or invalid credentials | Verify your API key and API secret are correct and have not been revoked. |
403 Forbidden | Valid credentials but insufficient permissions | Your key does not have access to this endpoint or resource. Check your plan and permissions. |
{
"statusCode": 401,
"error": "Unauthorized",
"message": "Invalid or missing authentication credentials",
"path": "/api/v1/companies/search",
"requestId": "01HZXAMPLE000000000000000",
"timestamp": "2025-06-01T12:00:00.000Z"
}
X-Request-Id header. Include this value when contacting support — it lets the team trace your specific request.