Dispatch a look (mannequin composite) workflow
POST
/v1/look
const url = 'https://example.com/v1/look';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"user_category":"MALE","items":[{"trial_image":"example","trial_item_category":"example","garment_title":"example"}],"runtime_config":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/look \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "user_category": "MALE", "items": [ { "trial_image": "example", "trial_item_category": "example", "garment_title": "example" } ], "runtime_config": {} }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
LookRequest
Look (mannequin composite) submission.
object
user_category
Any of:
UserCategory
User gender category.
string
null
items
required
Items
One or more trial items to compose into the look.
Array<object>
TrialItemInputOne raw-key trial item retained for the separate /v1/look contract.
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
WorkflowAcceptedResponse
Returned synchronously from any POST /v1/{name} (202).
object
request_id
required
Request Id
26-char ULID — correlates with the row in credit_operations.
string
status
JobStatus
Studio’s job status at submit time. Almost always NOT_STARTED in this 202.
string
credits_cost
required
Credits Cost
Credits deducted from the calling client. Refunded automatically on any failure path.
integer
Example
{ "status": "NOT_STARTED"}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}