Scans

Scans are audit/debug records created when NutritionSignals processes an image (or other analyzers, as they ship). Use this endpoint to retrieve a scan event for traceability, support, and debugging.

Endpoint

GET /v1/scans/{scan_id}

Requests are made to:

Base URL

https://api.nutritionsignals.com

Authentication

All requests require an API key sent as a Bearer token in the Authorization header.

Authorization header

Authorization: Bearer YOUR_API_KEY

Path parameters

  • scan_id (string) — the scan identifier returned by NutritionSignals when a scan is created

Try it

Paste your API key, enter a scan id, click Run, and you’ll see the raw JSON response.

Try it
GET /v1/scans/{scan_id}
Tip: Get a key in Authentication.
Calling:
(enter scan_id)
Notes
  • If you get 404, the scan doesn’t exist (or you’re querying the wrong project/environment).
  • If you get 401, your API key is missing/invalid.
Response
{}

Examples

Use any standard HTTP client. Here are copy/paste examples:

curl "https://api.nutritionsignals.com/v1/scans/SCAN_ID"   -H "Authorization: Bearer $NUTRITIONSIGNALS_API_KEY"

Response

Example response (fields may vary by scan type and availability):

Example response

{
  "scan_id": "scan_01HZZZZZZZZZZZZZZZZZZZZZZZ",
  "status": "completed",
  "created_at": "2026-01-06T15:00:00.000Z",
  "updated_at": "2026-01-06T15:00:03.500Z",

  "image_object_path": "scans/scan_01HZZZZZZZZ.webp",
  "image_url": "https://api.nutritionsignals.com/v1/images/scans/scan_01HZZZZZZZZ.webp",
  "image_hash": "sha256:…",

  "result": {
    "confidence": 0.86,
    "nutrition": {
      "calories": 420,
      "protein_g": 28,
      "carbs_g": 35,
      "fat_g": 18
    }
  },

  "meta": {
    "source": "food_image_analysis",
    "duration_ms": 3400
  }
}

Common fields

  • scan_id — identifier for this scan
  • statusqueued | processing | completed | failed
  • image_object_path — internal storage object path (if an image was uploaded)
  • image_url — a clickable URL served via your domain (if available)
  • result — structured output (varies by scan type)
  • meta — processing/debug metadata (best-effort)

Errors

  • 401 — Missing/invalid API key
  • 404 — Scan not found
  • 429 — Rate limited
  • 5xx — Server error

API endpoints

  • Name
    GET /v1/scans/:scan_id
    Description

    Retrieve scan/audit details for debugging and support.

Was this page helpful?