Endpoints

Get try-on

Read a try-on's current state. Call it every 2–3 seconds after you create one, until the status is success or failed.

GEThttps://fabricvton-api.onrender.com/api/v1/tryons/{id}

Headers

HeaderTypeDescription
AuthorizationrequiredBearer followed by your API key.

Path parameters

ParameterTypeDescription
idstringThe id returned when you created the try-on. Only try-ons made by your account can be read.

Example

curl
curl https://fabricvton-api.onrender.com/api/v1/tryons/7f3c2a9e-1d4b-4c1e-9a55-2b8f0c6d4e10 \
  -H "Authorization: Bearer $CLOTHSY_API_KEY"

Response

FieldTypeDescription
idstringThe try-on's id.
statusstringpending while the image is being made, then success or failed.
resultUrlstring | nullOn success, the finished image as a JPEG or PNG. Anyone with the URL can load it — no key needed — so a shopper's browser can show it directly. It works for 24 hours; copy the image to your own storage if you need it for longer. null otherwise.
messagestring, optionalOn failed, a short explanation you can show. The credit has already been returned.
200 OK — finished
{
  "id": "7f3c2a9e-1d4b-4c1e-9a55-2b8f0c6d4e10",
  "status": "success",
  "resultUrl": "https://fabricvton-api.onrender.com/i/eyJ..."
}
200 OK — failed
{
  "id": "7f3c2a9e-1d4b-4c1e-9a55-2b8f0c6d4e10",
  "status": "failed",
  "resultUrl": null,
  "message": "That try-on did not finish. Your credit has been returned."
}

A failed try-on is still a 200 response: the request to read it worked, the try-on itself didn't. Check status, not just the HTTP code.

Every result image carries a machine-readable label saying it was made with AI. Read AI content label for what that means for how you display it.

Polling tips

  • Wait 2–3 seconds between checks. Most try-ons are ready in under 30 seconds.
  • Each account can make 60 of these requests a minute. That covers a couple of try-ons in progress at once; with more in flight, slow down or you'll get 429 RATE_LIMITED.
  • Give up after a few minutes and tell the shopper to try again, rather than polling forever.

Errors

StatusCodeWhen
401INVALID_API_KEYThe key is missing, malformed or revoked.
404NOT_FOUNDNo try-on with that id belongs to this account.
429RATE_LIMITEDMore than 60 polls in a minute. Wait for the Retry-After header.
500INTERNAL_ERRORSomething went wrong on our side. Retry after a moment.
503UNAVAILABLEThe service is briefly unavailable. Retry after a short wait.