API reference

Private beta The v1 contract is implemented; the endpoints are not publicly reachable yet and access is by request. Details may still change during the beta.

Generated from the service's OpenAPI 3.1.0 description (version 1.0.0-beta.1), so every endpoint, field and code below is the one the code implements. Base path: <API_ORIGIN>/v1.

Authentication

Authorization: Bearer <key>. Keys start with outfit_test_ (sandbox) or outfit_live_. Where a host intercepts Authorization, the same key is accepted in X-Api-Key. Scopes: fits:read, fits:write, uploads:write, usage:read.

Endpoints

POST /v1/uploads

Upload a person photo or a clothing image. Scope: uploads:write.

Request body (multipart/form-data):

FieldTypeNotes
purposeperson, clothingRequired.
filefileRequired. JPEG or PNG. Person: shorter side ≥ 256 px. Clothing: shorter side ≥ 200 px.
labelstringOptional. Clothing only. Up to 120 characters.
StatusMeaningBody
201The uploadUpload
400invalid_request, upload_invalid or fit_invalidError
401Unauthorized: the API key is missing, invalid or revokedError
403Forbidden: private beta not enabled, missing scope, or the organization is on holdError
413upload_invalid: the body exceeds the size limitError
429rate_limited or quota_exceededError
500internal_errorError
503service_unavailableError

POST /v1/fits

Create a Fit. Scope: fits:write.

ParameterInTypeNotes
Idempotency-KeyheaderstringRequired. Unique per Fit. The same key with the same body returns the same Fit for 24 hours; a different body answers 409.

Request body (application/json): CreateFitRequest

StatusMeaningBody
200The same Fit, replayed for a repeated Idempotency-KeyFit
202The Fit, queuedFit
400invalid_request, upload_invalid or fit_invalidError
401Unauthorized: the API key is missing, invalid or revokedError
403Forbidden: private beta not enabled, missing scope, or the organization is on holdError
404not_found: an upload of the request does not exist for this organization and key kindError
409idempotency_conflictError
429rate_limited or quota_exceededError
500internal_errorError
503service_unavailableError

GET /v1/fits

List Fits. Scope: fits:read.

ParameterInTypeNotes
limitqueryintegerOptional.
starting_afterqueryFitIdOptional.
statusqueryqueued, processing, completed, failedOptional.
created_afterquerystring (date-time)Optional.
created_beforequerystring (date-time)Optional.
StatusMeaningBody
200A page, newest first. Entries carry no output links or error details.object
400invalid_request, upload_invalid or fit_invalidError
401Unauthorized: the API key is missing, invalid or revokedError
403Forbidden: private beta not enabled, missing scope, or the organization is on holdError
429rate_limited or quota_exceededError
500internal_errorError
503service_unavailableError

GET /v1/fits/{id}

Get a Fit. Scope: fits:read.

ParameterInTypeNotes
idpathFitIdRequired.
StatusMeaningBody
200The Fit with fresh output links when completedFit
400invalid_request, upload_invalid or fit_invalidError
401Unauthorized: the API key is missing, invalid or revokedError
403Forbidden: private beta not enabled, missing scope, or the organization is on holdError
404not_foundError
429rate_limited or quota_exceededError
500internal_errorError
503service_unavailableError

DELETE /v1/fits/{id}

Delete a Fit and its files. Scope: fits:write.

ParameterInTypeNotes
idpathFitIdRequired.
StatusMeaningBody
204Deletednone
400invalid_request, upload_invalid or fit_invalidError
401Unauthorized: the API key is missing, invalid or revokedError
403Forbidden: private beta not enabled, missing scope, or the organization is on holdError
404not_foundError
409fit_unavailable: still being generatedError
429rate_limited or quota_exceededError
500internal_errorError
503service_unavailableError

POST /v1/fits/{id}/report

Report a generated Fit. Scope: fits:write.

ParameterInTypeNotes
idpathFitIdRequired.

Request body (application/json):

FieldTypeNotes
reasonsexual, violence, hate, illegal, misleading, otherRequired.
notestringOptional. Up to 500 characters.
StatusMeaningBody
200The existing open report of this FitFitReport
201The reportFitReport
400invalid_request, upload_invalid or fit_invalidError
401Unauthorized: the API key is missing, invalid or revokedError
403Forbidden: private beta not enabled, missing scope, or the organization is on holdError
404not_foundError
429rate_limited or quota_exceededError
500internal_errorError
503service_unavailableError

GET /v1/capabilities

What this API version accepts for your key. Scope: fits:read.

StatusMeaningBody
200CapabilitiesCapabilities
400invalid_request, upload_invalid or fit_invalidError
401Unauthorized: the API key is missing, invalid or revokedError
403Forbidden: private beta not enabled, missing scope, or the organization is on holdError
429rate_limited or quota_exceededError
500internal_errorError
503service_unavailableError

GET /v1/usage

This month's usage and the plan's limits. Scope: usage:read.

StatusMeaningBody
200UsageUsage
400invalid_request, upload_invalid or fit_invalidError
401Unauthorized: the API key is missing, invalid or revokedError
403Forbidden: private beta not enabled, missing scope, or the organization is on holdError
429rate_limited or quota_exceededError
500internal_errorError
503service_unavailableError

Objects

Error

FieldTypeNotes
errorobjectRequired.

FitId

A string matching ^fit_[0-9a-f]{32}$.

UploadId

A string matching ^upl_[0-9a-f]{32}$.

Upload

FieldTypeNotes
idUploadIdRequired.
objectuploadRequired.
purposeperson, clothingRequired.
contentTypeimage/jpeg, image/pngRequired.
widthintegerRequired.
heightintegerRequired.
bytesintegerRequired.
expiresAtstring (date-time)Required. Null once a Fit references the upload.
createdAtstring (date-time)Required.

CreateFitRequest

FieldTypeNotes
personobjectRequired.
clothingarray of objectRequired. One to five clothing entries (your plan may allow fewer). Each role at most once; one_piece and outfit cannot be combined with each other or with top or bottom. A dedicated role replaces that part of an outfit (for example outerwear over an outfit, or shoes with an outfit). 1 to 5 items.
optionsobjectOptional.
metadataobjectOptional.

Fit

FieldTypeNotes
idstringRequired.
objectfitRequired.
statusqueued, processing, completed, failedRequired.
personobjectRequired.
clothingarray of objectRequired. 1 to 5 items.
optionsobjectRequired.
outputnull or objectRequired. Present when completed; omitted from list entries. Links expire; read the Fit again for fresh ones.
errornull or objectRequired.
metadataobjectRequired.
createdAtstring (date-time)Required.
completedAtstring (date-time)Required.

FitReport

FieldTypeNotes
idstringRequired.
objectfit_reportRequired.
fitFitIdRequired.
reasonsexual, violence, hate, illegal, misleading, otherRequired.
statusopen, reviewed, actioned, dismissedRequired.
createdAtstring (date-time)Required.

Capabilities

FieldTypeNotes
objectcapabilitiesRequired.
apiVersionstringRequired.
clothingobjectRequired.
outputsarray of stringRequired.
posesarray of stringRequired.
uploadsobjectRequired.

Usage

FieldTypeNotes
objectusageRequired.
keyKindtest, liveRequired.
periodobjectRequired.
fitsobjectRequired.
planobjectRequired.
remainingIncludedFitsinteger or nullRequired.

Versioning

The version is the path prefix, /v1. Within v1, changes are additive: new fields, endpoints, optional parameters and failure codes. Statuses, roles and the meaning of existing fields do not change; new clothing roles may be added, so read role values tolerantly. A breaking change ships as /v2; /v1 stays available for at least twelve months afterwards and announces its end with Deprecation and Sunset headers.