Get a product and its video direction
get_productCheck a product's import status and video generation progress to know when it is ready for further work.
Instructions
Read a product: what the import found, the current video direction and settings, and every video generated from it.
Use this to poll after import_product_from_url or
create_product_from_images. The product is ready to work with when
import_status is "imported" AND video_direction.drafting is false.
Poll every 20-30 seconds; the whole thing normally settles inside a
minute.
import_status values: "pending" and "importing" mean keep polling;
"imported" means done; "failed" means it did not work and
import_failed_reason says why.
video_direction.credit_cost is what generate_video will charge for
the current settings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | Yes | The product's id. |