Create mockup task
create_mockup_taskStarts an asynchronous Printful mockup task for a catalog product and returns a task key to poll until the mockup is ready.
Instructions
Start an asynchronous Printful mockup task for a catalog product. This endpoint is tightly rate limited (about 2 to 10 calls per minute). Poll get_mockup_task with the returned task_key. On 429, wait the reported seconds before retrying.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"product_id": "<product_id>",
"variant_ids": "<variant_ids>",
"file_url": "<file_url>"
},
"name": "create_mockup_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | ||
| format | No | ||
| file_url | Yes | ||
| placement | No | front | |
| product_id | Yes | ||
| variant_ids | Yes |