Authentication

NutritionSignals uses API keys for authentication. Add your key as a Bearer token in the Authorization header on every request.

Get an API key

Generate your API key from your developer settings. Keep it private anyone with the key can make requests on your account.

Best practices

  • Store keys in environment variables (e.g. .env.local)
  • Never ship keys to the browser or mobile apps
  • Rotate keys immediately if you suspect a leak

Send your API key in the Authorization header:

cURL (Food Resolution)

curl https://api.nutritionsignals.com/v1/foods/resolve \
  -H "Authorization: Bearer {API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"text":"Chobani Greek Yogurt, strawberry, 5.3 oz"}'

Was this page helpful?