Reference · Creative Director
POST/director/batches/{batchId}/approve
Make what the director proposed, at its quoted price
Makes everything the batch proposed, each call at the price it was quoted: confirmCredits must be the batch’s totalCredits. Where a real person is named, send agreed: true once the person has agreed to each statement.
- Key needs
create· Make things and spend credits- Spends
- Nothing
- Answers
- A job to follow
Request
curl -X POST https://vessero.com/api/v1/director/batches/7a6b5c4d-3e2f-4a1b-9c8d-7e6f5a4b3c2d/approve \ -H "Authorization: Bearer $VESSERO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "confirmCredits": 486 }'
Response202 Accepted
{ "object": "director.batch", "id": "7a6b5c4d-3e2f-4a1b-9c8d-7e6f5a4b3c2d", "status": "running", "totalCredits": 486, "needsAttestation": false, "calls": [ { "toolName": "POST /api/v1/ugc-ads", "credits": 162, "label": "Ad 1 · Seedance 2.5 · 15 s" } ] }
Path
- batchIdstringrequired—
Body
- confirmCreditsintegerrequired—
- agreedboolean—
Answers
- 202jobStarted: follow the job, or wait for its webhook.
- 200jobA job that ended at once: done, or failed (see error and charged).
- 400confirm_credits_requiredA run that spends needs confirmCredits: the quote is in details.
- 402insufficient_creditsThe account has too few credits for this.
- 409price_changedThe price is above the confirmCredits sent: nothing ran; the new quote is in details.
- 422content_refusedThe content check refused it.
- 429daily_cap_reachedThe key’s daily credit cap would be passed: see Retry-After.