Skip to main content

Authentication

All API requests require a Bearer token in the Authorization header.

Getting your API key

  1. Go to Settings > Account
  2. Your API key is displayed under the Account tab (Pro plan required)
  3. Click “Reveal” to see it, “Copy” to copy it

Using the API key

Include it in every request:
curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://www.tryhoard.com/api/v1/sync/pending

Security

  • Your API key is unique to your account
  • It provides full access to your sync data (inventory, orders, sales)
  • Never share it or commit it to version control
  • Store it in your .env file, not in workflow YAML or scripts
  • If compromised, contact support@tryhoard.com to rotate it

Error responses

Invalid or missing API key returns:
HTTP 401
{"error": "Unauthorized"}