Inspect an import

GEThttps://zwhwryofdsgmzgqbcghl.supabase.co/functions/v1/api/v1/imports/{id}

Requires the imports:write scope. See keys and scopes.

Try it

10 requests a minute

Kept in this tab only (sessionStorage), never saved to disk and never put in the code sample. It is sent to CuspFlow's own proxy on this domain, not to a third party.

Confirm the clinic id (optional)

Fill this in and the request is refused unless the key really belongs to that clinic. It guards against pasting the wrong key, not against an attacker: the clinic is already in the key and anyone holding it can read it from whoami.

Path parameters

curl --request GET \
  --url 'https://zwhwryofdsgmzgqbcghl.supabase.co/functions/v1/api/v1/imports/{id}' \
  --header 'Authorization: Bearer '"$CUSPFLOW_API_KEY" \
  --header 'Accept: application/json'
Paste a key to run this.

Path parameters

id
string<uuid>
required
The import report id returned by POST /v1/imports.

Responses

200Under `data`: the report, how many of its rows are still present and whether the 7-day rollback window is still open.
{
  "data": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "title": "string",
    "entity": "string",
    "created_at": "2026-11-05T09:30:00+03:00",
    "summary": {},
    "anomalies": {},
    "rows_present": 0,
    "rollback_available": false
  }
}
401Missing, malformed, revoked or expired key.
403Key lacks `imports:write`, or the clinic is read-only.
404No such import report in this clinic.
429Rate limited.

Every error is application/problem+json and carries a code you can branch on. The full catalogue is in error codes.