Skip to main content
This page walks you through the four core actions you will take in almost every Drssed integration: getting an access token, processing a clothing image, saving the clothing item, and creating an outfit. You do not need an account — a guest session is enough to complete all four steps.
Access tokens expire after 1 hour. Store the refresh_token returned in step 1 and call POST /auth/refresh before the token expires to get a new one without losing your session. See Authentication for details.
1

Create a guest session

Call POST /auth/guest to receive a JWT access token instantly. No credentials required. The response includes an access_token valid for 1 hour, its expiry in seconds, and a refresh_token you can use to extend the session.
Response
Use the access_token value as the Bearer token in all subsequent requests.
2

Upload a clothing image

Send a clothing photo to POST /images/preview as a multipart/form-data request with a file field. Drssed removes the background and uses AI to detect the item’s category, dominant color, suitable seasons, and style tags. The response includes an image_id you will use in the next step.
Response
The image_category will be one of JACKET, TOP, BOTTOM, or FOOTWEAR. The image_seasons and image_tags values are AI-generated suggestions — you can override them when saving the item.
3

Save the clothing item

Use the image_id from the previous step to persist the clothing item to your wardrobe by calling POST /users/me/clothing. Supply the metadata you want to store — you can use the AI-suggested values or override them.
Response
The clothing_id in the response is what you will reference when building outfits.
4

Create an outfit

Call POST /users/me/outfits to combine one or more clothing items into a named outfit. Use the scene field to store canvas placement data for each item — position, scale, rotation, and z-index — which lets clients render the outfit visually.
Response

Next steps

  • Read the Authentication page to learn how to refresh tokens, log in with a full account, and upgrade guest sessions.
  • Explore the API Reference for the full parameter and response schema for every endpoint.