List imports (paginated)
The full import archive, newest first by `created_at`, cursor paginated. Use this to page back through history; use `/api/imports/working-set` for the bounded set a UI renders.
The full import archive, newest first by created_at, cursor
paginated. Use this to page back through history; use
/api/imports/working-set for the bounded set a UI renders.
Authorization
bearerAuth A Clerk session JWT. Obtain one with a Clerk frontend SDK
(session.getToken()) or, for server-to-server use, with a Clerk
machine token. The token's sub claim is the Flambe user id that scopes
every request.
In: header
Query Parameters
Maximum items to return.
1 <= value <= 20050Opaque pagination cursor returned as next_cursor by the previous page.
Base64-encoded DynamoDB ExclusiveStartKey; treat it as opaque.
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/api/imports/v2"{ "next_cursor": "string", "items": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "user_id": "string", "type": "web", "status": "pending", "url": "http://example.com", "file_id": "string", "file_ids": [ "1c0f12fe-c5bf-4fbd-ba1b-466cb232eca5" ], "text_file_id": "f6dba989-8fc3-4ab0-b9d1-49bdefc7e954", "source_url": "http://example.com", "source_section": "string", "recipe_id": "fa7d15d4-7670-4586-a94b-5079ed028135", "batch_id": "4da22c97-b7d5-4e31-8c3a-03870ebc7b20", "error": "string", "progress": { "stage": "extracting", "percent": 0 }, "processing_started_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } ]}List child imports GET
For an `image_batch` parent, the per-image child imports it fanned out into. Each child succeeds or fails independently, so a batch can be partially complete.
Report a bad import POST
Flag a completed import whose extraction was wrong. Reports feed triage of the extraction pipeline. One report per import per user.