admin

Create Capture

Create a new page capture from the Chrome extension.

This endpoint:

  1. Decodes the base64 screenshot
  2. Uploads it to Supabase storage
  3. Creates a database record with the capture data
post/api/admin/captures

Headers

authorizationstring required

Request body

product_idstring required
urlstring required
titlestring nullable
simplified_domstring required
screenshot_base64string required
screenshots_base64string[] nullable
viewport_widthinteger nullable
viewport_heightinteger nullable
captured_atstring nullable

Response

Successful Response

idstring required
product_idstring required
urlstring required
titlestring nullable required
simplified_domstring required
screenshot_urlstring nullable required
screenshot_urlsstring[] nullable
viewport_widthinteger nullable required
viewport_heightinteger nullable required
captured_atstring nullable required
created_atstring required
statusstring required

Changes

No recorded changes to this endpoint across all 1 revision of this API.