Authentication

Macrofy authenticates requests with an API key passed in the x-api-key header.

HTTP header

x-api-key: YOUR_API_KEY

Example

curl -H "x-api-key: $MACROFY_API_KEY" \
  "https://api.macrofy.com/foods/search?q=banana"

Notes

  • Keep your API key secret and rotate it if exposed.
  • For multi-tenant setups, use a separate key per environment (dev/staging/prod).

Was this page helpful?