Reference · Resources

Photta API resource endpoints the ids every generation needs

In one sentence

Resource endpoints return the ids a generation call takes: mannequins, poses, backgrounds, footwear, garment attributes and brand labels, plus your account balance and usage. Listing costs nothing.

  • Resource endpoints: 13 resource endpoints
  • Authentication: Bearer key
  • Limits: 600 requests/min

Every figure on this page comes from the Photta API docs · checked

Every resource endpoint, with the call that reads it

Each section links the capability that consumes those ids.

GET/api/v1/mannequins

Mannequins

Lists the models available for apparel try-on: Photta’s system mannequins, your own uploads, and the ones you built with the mannequin generation API. POST to the same path to upload a custom mannequin, which stays private to your account. The id goes into `mannequin_id` on a try-on call.

curl https://api.photta.app/api/v1/mannequins \
  -H "Authorization: Bearer $PHOTTA_API_KEY"
Virtual try-on API
POST/api/v1/mannequins/jewelry

Jewelry mannequins

Uploads a close-up model photo for jewelry try-on. Jewelry work is framed on a neckline, an ear, a wrist or a hand, so it takes its own mannequin set rather than the full-body apparel one.

RESPONSE=$(curl -s -X POST https://api.photta.app/api/v1/mannequins/jewelry \
  -H "Authorization: Bearer $PHOTTA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "image": "https://cdn.yourstore.com/models/emma-neck.jpg",
  "jewelry_type": "necklace",
  "gender": "female",
  "name": "Emma"
}')
ID=$(echo "$RESPONSE" | jq -r '.data.id')
Jewelry try-on API
GET/api/v1/poses

Poses

Lists the poses a try-on can request, filterable by category and by the product type they suit. Pass the id as `pose_id`; leave it out and the API picks a pose that fits the garment.

curl https://api.photta.app/api/v1/poses \
  -H "Authorization: Bearer $PHOTTA_API_KEY"
Virtual try-on API
GET/api/v1/garment-attributes

Garment length and fit

Returns the length and fit keys apparel try-on accepts. Send the key, not a free-text description, so the same shirt renders the same way across a catalogue.

curl https://api.photta.app/api/v1/garment-attributes \
  -H "Authorization: Bearer $PHOTTA_API_KEY"
Virtual try-on API
GET/api/v1/backgrounds

Backgrounds

Lists system backgrounds and your own uploads for apparel try-on, with cursor pagination. POST to the same path to upload a custom background; it stays private to your account.

curl https://api.photta.app/api/v1/backgrounds \
  -H "Authorization: Bearer $PHOTTA_API_KEY"
Eyewear virtual try-on API
POST/api/v1/brand-labels

Brand labels

Uploads a reusable label image for ghost mannequin work and returns an id you pass as `brand_label_id`, on single jobs and batches alike. GET lists what you have saved; DELETE removes one when you reach the account limit.

RESPONSE=$(curl -s -X POST https://api.photta.app/api/v1/brand-labels \
  -H "Authorization: Bearer $PHOTTA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "file": "@/path/to/pribrand-label.png",
  "name": "Pribrand Collar Label"
}')
ID=$(echo "$RESPONSE" | jq -r '.data.id')
Ghost mannequin API
GET/api/v1/footwear

Footwear

Lists footwear options for apparel try-on, filterable by type and gender, with cursor pagination. Use it to put shoes on the same model that wears the garment.

curl https://api.photta.app/api/v1/footwear \
  -H "Authorization: Bearer $PHOTTA_API_KEY"
Virtual try-on API
GET/api/v1/account

Account

Returns your credit balance broken down by source, your current plan and the next credit renewal. Read it before a large batch rather than discovering the shortfall in a 402.

curl https://api.photta.app/api/v1/account \
  -H "Authorization: Bearer $PHOTTA_API_KEY"
Workflows API
GET/api/v1/account/usage

Usage

Generation counts and credit spend for the current calendar-month billing window, split into successful and failed jobs. This is the endpoint to graph, not your own tally of requests.

curl https://api.photta.app/api/v1/account/usage \
  -H "Authorization: Bearer $PHOTTA_API_KEY"
Batch ghost mannequin API

Questions about the resource endpoints

What are the resource endpoints for?

They return the ids that generation calls take — a mannequin, a pose, a background, a brand label — plus your account state. Nothing in this group creates an image.

Do resource calls cost credits?

No. Listing is free, and the uploads in this group — a custom mannequin, a background, a brand label — are free as well. You pay only for generations.

How do I page through a long list?

The list endpoints take a limit and a cursor: pass the last id you saw as `starting_after` and read the next page. Cache what you get rather than re-listing on every request.

Can I upload my own mannequins and backgrounds?

Yes. POST `/api/v1/mannequins`, POST `/api/v1/mannequins/jewelry`, POST `/api/v1/backgrounds` and POST `/api/v1/brand-labels` all accept your own images, and everything you upload is private to your account.

Where these ids are used

Every figure on this page comes from the Photta API docs · checked

Try the API in five minutes

Generate a Photta API key, paste the cURL snippet above, and you'll have your first on-model image before the coffee finishes brewing.

  • 13 resource endpoints
  • Bearer key
  • 600 requests/min