{"openapi":"3.1.0","info":{"title":"Novelity API","version":"1","description":"Licensed likenesses for AI stills. Faces are referenced by their public id (ip_…) with a bearer credential; photos are never uploaded through the API.\n\nBuyer endpoints take an API key (Authorization: Bearer sk_live_…) issued to approved buyer orgs; owner endpoints take an owner token (Bearer ot_…).\n\nJSON only, snake_case, money in integer minor units with a currency field (IDR: whole rupiah; D10). Every error is { \"error\": { \"code\", \"message\", \"retryable\", \"details\", \"request_id\" } } and agents branch on code.\n\nRate limit: 60 requests per minute per key or token. Reference: https://staging.novelity.ai.id/docs/api"},"servers":[{"url":"https://staging.novelity.ai.id/api/v1"}],"tags":[{"name":"Catalog","description":"Search faces, read policies, quote"},{"name":"Licenses","description":"Buy and list licenses"},{"name":"Jobs","description":"Generate stills and fetch labeled outputs"},{"name":"Owner","description":"Owner token: usage and the pause switch for your own faces"},{"name":"Account","description":"Who a credential is"},{"name":"Webhooks","description":"Signed job.completed / job.failed events to your endpoints (F4)"},{"name":"Meta","description":"This document"}],"paths":{"/assets":{"get":{"operationId":"search_assets","summary":"Search licensable faces","description":"Publicly offered faces only, newest publication first, cursor-paginated. Filters combine with AND. Cards carry the offered packs (prices in minor units, IDR rupiah) and preview URLs (AI-generated, or photos the owner allowed; never raw photos). Tier listed can be quoted but not licensed; soul_ready can generate.","tags":["Catalog"],"security":[{"apiKey":[]}],"parameters":[{"name":"look","in":"query","required":false,"description":"Free text; every word must match a look tag, the name or the bio. At most 6 words.","schema":{"description":"Free text; every word must match a look tag, the name or the bio. At most 6 words.","type":"string","maxLength":100}},{"name":"age_band","in":"query","required":false,"description":"","schema":{"type":"string","enum":["18-24","25-34","35-44","45-54","55+"]}},{"name":"gender","in":"query","required":false,"description":"","schema":{"type":"string","enum":["female","male","non_binary","unspecified"]}},{"name":"allow_use_case","in":"query","required":false,"description":"The owner must allow it. A hard-denied value is a 422 (details.reason = hard_denied).","schema":{"description":"The owner must allow it. A hard-denied value is a 422 (details.reason = hard_denied).","type":"string","enum":["fiction_microdrama_stills","commercial_non_sensitive","social_organic"]}},{"name":"max_price","in":"query","required":false,"description":"Whole rupiah (IDR), e.g. 2400000 or 2.400.000: the cheapest offered pack costs at most this","schema":{"description":"Whole rupiah (IDR), e.g. 2400000 or 2.400.000: the cheapest offered pack costs at most this","type":"string"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"description":"next_cursor from the previous page","type":"string"}},{"name":"limit","in":"query","required":false,"description":"1-48, default 24","schema":{"description":"1-48, default 24","type":"string"}}],"responses":{"200":{"description":"A page of faces","headers":{"X-Request-Id":{"description":"req_… — quote it when contacting support","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests per minute for this key or token","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the bucket right now","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResult"},"example":{"results":[{"asset_id":"ip_2vq7kxm4hn3tb6wr5jyc","display_name":"Rani","age_band":"25-34","gender":"female","look_tags":["curly hair","freckles"],"tier":"soul_ready","allowed_use_cases":["fiction_microdrama_stills","commercial_non_sensitive"],"territory":"worldwide","packs":[{"pack":"scout","pack_id":"pk_7hq2m4xk3vn6tb5wryca","name":"Scout","description":"Stills and a character sheet for internal pitch. For testing a face.","cap":20,"days":30,"price":720000,"formatted_price":"Rp720.000"},{"pack":"episode","pack_id":"pk_3tb6wr5jyc2vq7kxm4hn","name":"Episode","description":"One commercial or fiction stills project. The main unit.","cap":80,"days":60,"price":3840000,"formatted_price":"Rp3.840.000"}],"previews":[{"url":"https://staging.novelity.ai.id/api/catalog/previews/pho_m4xk3vn6tb5wryca7hq2","kind":"owner_approved","label":"Owner-approved preview"}]}],"next_cursor":null}}}},"401":{"description":"UNAUTHENTICATED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"WWW-Authenticate":{"description":"Bearer realm=\"api\"","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHENTICATED"]}}}}}]}}},"x-error-codes":["UNAUTHENTICATED"]},"403":{"description":"FORBIDDEN, ACCOUNT_PENDING, ACCOUNT_REJECTED, CALL_BLOCKED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]}}}}}]}}},"x-error-codes":["FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]},"422":{"description":"VALIDATION_FAILED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_FAILED"]}}}}}]}}},"x-error-codes":["VALIDATION_FAILED"]},"429":{"description":"RATE_LIMITED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["RATE_LIMITED"]}}}}}]}}},"x-error-codes":["RATE_LIMITED"]},"500":{"description":"INTERNAL","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INTERNAL"]}}}}}]}}},"x-error-codes":["INTERNAL"]}},"x-scope":"buyer","x-mcp-tool":"search_assets","x-error-codes":["VALIDATION_FAILED","UNAUTHENTICATED","FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","RATE_LIMITED","CALL_BLOCKED","INTERNAL"]}},"/assets/{asset_id}/policy":{"get":{"operationId":"get_asset_policy","summary":"Read a face's policy and packs","description":"What a buyer may do with one face (allowed use cases, the platform's hard-deny list, the owner's own limits, territory, rating, whether the owner reviews every job) and what each offered pack costs.","tags":["Catalog"],"security":[{"apiKey":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"description":"The face's public id (ip_…)","schema":{"type":"string","pattern":"^ip_[a-z2-7]{20}$","description":"Asset (likeness) id: ip_ + 20 characters"}}],"responses":{"200":{"description":"The policy view","headers":{"X-Request-Id":{"description":"req_… — quote it when contacting support","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests per minute for this key or token","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the bucket right now","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetPolicy"},"example":{"asset_id":"ip_2vq7kxm4hn3tb6wr5jyc","tier":"soul_ready","allowed_use_cases":["fiction_microdrama_stills","commercial_non_sensitive"],"hard_deny":["adult","political","religious_campaign","gambling","online_lending","medical_financial_claim","impersonation_other_person"],"territory":"worldwide","max_rating":"PG13","owner_limits":["No alcohol or smoking","No swimwear"],"review_required":false,"listing_duration":"m12","listing_expires_at":"2027-09-25T00:00:00.000Z","currency":"IDR","packs":[{"pack":"scout","pack_id":"pk_7hq2m4xk3vn6tb5wryca","name":"Scout","description":"Stills and a character sheet for internal pitch. For testing a face.","cap":20,"days":30,"price":720000,"formatted_price":"Rp720.000"},{"pack":"episode","pack_id":"pk_3tb6wr5jyc2vq7kxm4hn","name":"Episode","description":"One commercial or fiction stills project. The main unit.","cap":80,"days":60,"price":3840000,"formatted_price":"Rp3.840.000"}]}}}},"401":{"description":"UNAUTHENTICATED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"WWW-Authenticate":{"description":"Bearer realm=\"api\"","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHENTICATED"]}}}}}]}}},"x-error-codes":["UNAUTHENTICATED"]},"403":{"description":"FORBIDDEN, ACCOUNT_PENDING, ACCOUNT_REJECTED, CALL_BLOCKED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]}}}}}]}}},"x-error-codes":["FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]},"404":{"description":"NOT_FOUND","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["NOT_FOUND"]}}}}}]}}},"x-error-codes":["NOT_FOUND"]},"409":{"description":"ASSET_PAUSED, ASSET_REVOKED, ASSET_NOT_LIVE","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["ASSET_PAUSED","ASSET_REVOKED","ASSET_NOT_LIVE"]}}}}}]}}},"x-error-codes":["ASSET_PAUSED","ASSET_REVOKED","ASSET_NOT_LIVE"]},"422":{"description":"VALIDATION_FAILED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_FAILED"]}}}}}]}}},"x-error-codes":["VALIDATION_FAILED"]},"429":{"description":"RATE_LIMITED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["RATE_LIMITED"]}}}}}]}}},"x-error-codes":["RATE_LIMITED"]},"500":{"description":"INTERNAL","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INTERNAL"]}}}}}]}}},"x-error-codes":["INTERNAL"]}},"x-scope":"buyer","x-mcp-tool":"get_asset_policy","x-error-codes":["VALIDATION_FAILED","NOT_FOUND","ASSET_PAUSED","ASSET_REVOKED","ASSET_NOT_LIVE","UNAUTHENTICATED","FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","RATE_LIMITED","CALL_BLOCKED","INTERNAL"]}},"/quote":{"post":{"operationId":"quote","summary":"Price licenses of a pack","description":"N licenses of one pack of one face, with the platform fee and the owner's share. Money is exactly what a purchase will charge. No side effects.","tags":["Catalog"],"security":[{"apiKey":[]}],"parameters":[],"responses":{"200":{"description":"The quote","headers":{"X-Request-Id":{"description":"req_… — quote it when contacting support","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests per minute for this key or token","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the bucket right now","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"},"example":{"asset_id":"ip_2vq7kxm4hn3tb6wr5jyc","pack":"episode","units":2,"currency":"IDR","unit_price":3840000,"gross":7680000,"platform_fee":1152000,"owner_share":6528000,"platform_fee_bps":1500,"cap_per_unit":80,"days":60,"total_generations":160,"formatted":{"unit_price":"Rp3.840.000","gross":"Rp7.680.000","platform_fee":"Rp1.152.000","owner_share":"Rp6.528.000"}}}}},"401":{"description":"UNAUTHENTICATED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"WWW-Authenticate":{"description":"Bearer realm=\"api\"","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHENTICATED"]}}}}}]}}},"x-error-codes":["UNAUTHENTICATED"]},"403":{"description":"LICENSE_DENIED, FORBIDDEN, ACCOUNT_PENDING, ACCOUNT_REJECTED, CALL_BLOCKED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["LICENSE_DENIED","FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]}}}}}]}}},"x-error-codes":["LICENSE_DENIED","FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]},"404":{"description":"NOT_FOUND","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["NOT_FOUND"]}}}}}]}}},"x-error-codes":["NOT_FOUND"]},"409":{"description":"ASSET_PAUSED, ASSET_REVOKED, ASSET_NOT_LIVE","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["ASSET_PAUSED","ASSET_REVOKED","ASSET_NOT_LIVE"]}}}}}]}}},"x-error-codes":["ASSET_PAUSED","ASSET_REVOKED","ASSET_NOT_LIVE"]},"422":{"description":"VALIDATION_FAILED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_FAILED"]}}}}}]}}},"x-error-codes":["VALIDATION_FAILED"]},"429":{"description":"RATE_LIMITED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["RATE_LIMITED"]}}}}}]}}},"x-error-codes":["RATE_LIMITED"]},"500":{"description":"INTERNAL","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INTERNAL"]}}}}}]}}},"x-error-codes":["INTERNAL"]}},"x-scope":"buyer","x-mcp-tool":"quote","x-error-codes":["VALIDATION_FAILED","NOT_FOUND","ASSET_PAUSED","ASSET_REVOKED","ASSET_NOT_LIVE","LICENSE_DENIED","UNAUTHENTICATED","FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","RATE_LIMITED","CALL_BLOCKED","INTERNAL"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteRequest"},"example":{"asset_id":"ip_2vq7kxm4hn3tb6wr5jyc","pack":"episode","units":2}}}}}},"/licenses":{"post":{"operationId":"purchase_license","summary":"Buy licenses (spends credits)","description":"Buys `units` licenses of one pack and debits the org's credits in the same transaction. Only soul_ready faces can be licensed, for a use case the owner allows. No refunds for unused generations or creative preference; technical failures return generations. Send an Idempotency-Key so a retry never charges twice.","tags":["Licenses"],"security":[{"apiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"1-255 visible ASCII characters (a UUID is ideal). The same key + the same request within 24 h replays the first answer (Idempotent-Replayed: true) instead of doing it twice.","schema":{"type":"string","minLength":1,"maxLength":255}}],"responses":{"201":{"description":"Bought (or replayed: header Idempotent-Replayed: true, nothing charged)","headers":{"X-Request-Id":{"description":"req_… — quote it when contacting support","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests per minute for this key or token","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the bucket right now","schema":{"type":"integer"}},"Idempotent-Replayed":{"description":"\"true\" when an Idempotency-Key replayed an earlier answer (nothing was done again)","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Purchase"},"example":{"licenses":[{"license_id":"lic_5wryca7hq2m4xk3vn6tb","asset_id":"ip_2vq7kxm4hn3tb6wr5jyc","asset_name":"Rani","asset_state":"live","pack":"scout","pack_name":"Scout","use_case":"fiction_microdrama_stills","territory":"worldwide","cap":20,"gens_used":0,"gens_remaining":20,"status":"active","purchased_at":"2026-09-25T09:30:00.000Z","expires_at":"2026-10-25T09:30:00.000Z","revoked_at":null,"currency":"IDR","gross":720000,"platform_fee":108000,"owner_share":612000,"formatted":{"gross":"Rp720.000","platform_fee":"Rp108.000","owner_share":"Rp612.000"},"consent_id":"cns_q7kxm4hn3tb6wr5jyc2v","consent_version":1}],"asset_id":"ip_2vq7kxm4hn3tb6wr5jyc","pack":"scout","use_case":"fiction_microdrama_stills","units":1,"currency":"IDR","unit_price":720000,"gross":720000,"platform_fee":108000,"owner_share":612000,"platform_fee_bps":1500,"balance_after":8560000,"formatted":{"unit_price":"Rp720.000","gross":"Rp720.000","platform_fee":"Rp108.000","owner_share":"Rp612.000","balance_after":"Rp8.560.000"}}}}},"401":{"description":"UNAUTHENTICATED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"WWW-Authenticate":{"description":"Bearer realm=\"api\"","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHENTICATED"]}}}}}]}}},"x-error-codes":["UNAUTHENTICATED"]},"402":{"description":"INSUFFICIENT_CREDITS","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INSUFFICIENT_CREDITS"]}}}}}]}}},"x-error-codes":["INSUFFICIENT_CREDITS"]},"403":{"description":"LICENSE_DENIED, USE_CASE_NOT_ALLOWED, TERRITORY_MISMATCH, FORBIDDEN, ACCOUNT_PENDING, ACCOUNT_REJECTED, CALL_BLOCKED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["LICENSE_DENIED","USE_CASE_NOT_ALLOWED","TERRITORY_MISMATCH","FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]}}}}}]}}},"x-error-codes":["LICENSE_DENIED","USE_CASE_NOT_ALLOWED","TERRITORY_MISMATCH","FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]},"404":{"description":"NOT_FOUND","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["NOT_FOUND"]}}}}}]}}},"x-error-codes":["NOT_FOUND"]},"409":{"description":"ASSET_PAUSED, ASSET_REVOKED, ASSET_NOT_LIVE, NOT_SOUL_READY, CONSENT_REQUIRED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["ASSET_PAUSED","ASSET_REVOKED","ASSET_NOT_LIVE","NOT_SOUL_READY","CONSENT_REQUIRED"]}}}}}]}}},"x-error-codes":["ASSET_PAUSED","ASSET_REVOKED","ASSET_NOT_LIVE","NOT_SOUL_READY","CONSENT_REQUIRED"]},"422":{"description":"VALIDATION_FAILED, IDEMPOTENCY_KEY_REUSED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_FAILED","IDEMPOTENCY_KEY_REUSED"]}}}}}]}}},"x-error-codes":["VALIDATION_FAILED","IDEMPOTENCY_KEY_REUSED"]},"429":{"description":"RATE_LIMITED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["RATE_LIMITED"]}}}}}]}}},"x-error-codes":["RATE_LIMITED"]},"500":{"description":"INTERNAL","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INTERNAL"]}}}}}]}}},"x-error-codes":["INTERNAL"]}},"x-scope":"buyer","x-mcp-tool":"purchase_license","x-error-codes":["VALIDATION_FAILED","IDEMPOTENCY_KEY_REUSED","NOT_FOUND","ASSET_PAUSED","ASSET_REVOKED","ASSET_NOT_LIVE","NOT_SOUL_READY","CONSENT_REQUIRED","LICENSE_DENIED","USE_CASE_NOT_ALLOWED","TERRITORY_MISMATCH","INSUFFICIENT_CREDITS","UNAUTHENTICATED","FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","RATE_LIMITED","CALL_BLOCKED","INTERNAL"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseRequest"},"example":{"asset_id":"ip_2vq7kxm4hn3tb6wr5jyc","pack":"scout","use_case":"fiction_microdrama_stills","units":1}}}}},"get":{"operationId":"list_licenses","summary":"List your org's licenses","description":"Newest first (up to 500). status is computed: active, exhausted (cap used), expired (window over) or revoked (the owner revoked the face).","tags":["Licenses"],"security":[{"apiKey":[]}],"parameters":[{"name":"asset_id","in":"query","required":false,"description":"","schema":{"type":"string","pattern":"^ip_[a-z2-7]{20}$","description":"Asset (likeness) id: ip_ + 20 characters"}},{"name":"status","in":"query","required":false,"description":"","schema":{"type":"string","enum":["active","exhausted","expired","revoked"]}},{"name":"limit","in":"query","required":false,"description":"1-500, default 200","schema":{"description":"1-500, default 200","type":"string"}}],"responses":{"200":{"description":"The licenses","headers":{"X-Request-Id":{"description":"req_… — quote it when contacting support","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests per minute for this key or token","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the bucket right now","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseList"},"example":{"licenses":[{"license_id":"lic_5wryca7hq2m4xk3vn6tb","asset_id":"ip_2vq7kxm4hn3tb6wr5jyc","asset_name":"Rani","asset_state":"live","pack":"scout","pack_name":"Scout","use_case":"fiction_microdrama_stills","territory":"worldwide","cap":20,"gens_used":4,"gens_remaining":16,"status":"active","purchased_at":"2026-09-25T09:30:00.000Z","expires_at":"2026-10-25T09:30:00.000Z","revoked_at":null,"currency":"IDR","gross":720000,"platform_fee":108000,"owner_share":612000,"formatted":{"gross":"Rp720.000","platform_fee":"Rp108.000","owner_share":"Rp612.000"},"consent_id":"cns_q7kxm4hn3tb6wr5jyc2v","consent_version":1}]}}}},"401":{"description":"UNAUTHENTICATED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"WWW-Authenticate":{"description":"Bearer realm=\"api\"","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHENTICATED"]}}}}}]}}},"x-error-codes":["UNAUTHENTICATED"]},"403":{"description":"FORBIDDEN, ACCOUNT_PENDING, ACCOUNT_REJECTED, CALL_BLOCKED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]}}}}}]}}},"x-error-codes":["FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]},"422":{"description":"VALIDATION_FAILED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_FAILED"]}}}}}]}}},"x-error-codes":["VALIDATION_FAILED"]},"429":{"description":"RATE_LIMITED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["RATE_LIMITED"]}}}}}]}}},"x-error-codes":["RATE_LIMITED"]},"500":{"description":"INTERNAL","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INTERNAL"]}}}}}]}}},"x-error-codes":["INTERNAL"]}},"x-scope":"buyer","x-mcp-tool":null,"x-error-codes":["VALIDATION_FAILED","UNAUTHENTICATED","FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","RATE_LIMITED","CALL_BLOCKED","INTERNAL"]}},"/jobs":{"post":{"operationId":"start_job","summary":"Start a generation job","description":"The policy engine decides at once, checking in order: the face (live, soul_ready, consent active), the license (yours, this face, not revoked or expired, enough generations), the use case, the territory, the prompt classifier, and holds. 201: queued, generations reserved. 202: held for a person (job.hold); poll get_job. Refusals return the first failed check's code; a refusal tied to your license is recorded (details.job_id). The face is referenced by asset_id only: no photos are ever uploaded.","tags":["Jobs"],"security":[{"apiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"1-255 visible ASCII characters (a UUID is ideal). The same key + the same request within 24 h replays the first answer (Idempotent-Replayed: true) instead of doing it twice.","schema":{"type":"string","minLength":1,"maxLength":255}}],"responses":{"201":{"description":"Queued: generations reserved on the license","headers":{"X-Request-Id":{"description":"req_… — quote it when contacting support","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests per minute for this key or token","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the bucket right now","schema":{"type":"integer"}},"Idempotent-Replayed":{"description":"\"true\" when an Idempotency-Key replayed an earlier answer (nothing was done again)","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStart"},"example":{"job":{"job_id":"job_k3vn6tb5wryca7hq2m4x","asset_id":"ip_2vq7kxm4hn3tb6wr5jyc","asset_name":"Rani","license_id":"lic_5wryca7hq2m4xk3vn6tb","pack":"scout","pack_name":"Scout","use_case":"fiction_microdrama_stills","prompt":"Night street after rain, she glances back over her shoulder, neon reflections, cinematic still","aspect_ratio":"16:9","batch_size":1,"status":"queued","hold":null,"error":null,"gens_charged":1,"outputs":[],"label":null,"consent_version":1,"created_at":"2026-09-25T09:41:51.000Z","submitted_at":null,"completed_at":null,"ended_at":null},"outcome":"queued"}}}},"202":{"description":"Held for review (not an error): MANUAL_REVIEW, OWNER_REVIEW_REQUIRED or ABUSE_HOLD in job.hold","headers":{"X-Request-Id":{"description":"req_… — quote it when contacting support","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests per minute for this key or token","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the bucket right now","schema":{"type":"integer"}},"Idempotent-Replayed":{"description":"\"true\" when an Idempotency-Key replayed an earlier answer (nothing was done again)","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStart"},"example":{"job":{"job_id":"job_k3vn6tb5wryca7hq2m4x","asset_id":"ip_2vq7kxm4hn3tb6wr5jyc","asset_name":"Rani","license_id":"lic_5wryca7hq2m4xk3vn6tb","pack":"scout","pack_name":"Scout","use_case":"fiction_microdrama_stills","prompt":"Night street after rain, she glances back over her shoulder, neon reflections, cinematic still","aspect_ratio":"16:9","batch_size":1,"status":"held","hold":{"code":"OWNER_REVIEW_REQUIRED","message":"This request is waiting for a review. We will update you within 72 hours.","expires_at":"2026-09-28T09:41:51.000Z"},"error":null,"gens_charged":0,"outputs":[],"label":null,"consent_version":1,"created_at":"2026-09-25T09:41:51.000Z","submitted_at":null,"completed_at":null,"ended_at":null,"buyer_message":{"code":"held_for_review","title":"In review","message":"This request is waiting for a review. We will update you within 72 hours."}},"outcome":"held"}}}},"401":{"description":"UNAUTHENTICATED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"WWW-Authenticate":{"description":"Bearer realm=\"api\"","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHENTICATED"]}}}}}]}}},"x-error-codes":["UNAUTHENTICATED"]},"403":{"description":"LICENSE_DENIED, USE_CASE_NOT_ALLOWED, TERRITORY_MISMATCH, DENY_ADULT, DENY_POLITICAL, DENY_RELIGIOUS, DENY_GAMBLING, DENY_LENDING, DENY_CLAIM, DENY_IMPERSONATION, FORBIDDEN, ACCOUNT_PENDING, ACCOUNT_REJECTED, CALL_BLOCKED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["LICENSE_DENIED","USE_CASE_NOT_ALLOWED","TERRITORY_MISMATCH","DENY_ADULT","DENY_POLITICAL","DENY_RELIGIOUS","DENY_GAMBLING","DENY_LENDING","DENY_CLAIM","DENY_IMPERSONATION","FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]}}}}}]}}},"x-error-codes":["LICENSE_DENIED","USE_CASE_NOT_ALLOWED","TERRITORY_MISMATCH","DENY_ADULT","DENY_POLITICAL","DENY_RELIGIOUS","DENY_GAMBLING","DENY_LENDING","DENY_CLAIM","DENY_IMPERSONATION","FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]},"404":{"description":"NOT_FOUND","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["NOT_FOUND"]}}}}}]}}},"x-error-codes":["NOT_FOUND"]},"409":{"description":"ASSET_PAUSED, ASSET_REVOKED, ASSET_NOT_LIVE, NOT_SOUL_READY, CONSENT_REQUIRED, LICENSE_EXPIRED, CAP_REACHED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["ASSET_PAUSED","ASSET_REVOKED","ASSET_NOT_LIVE","NOT_SOUL_READY","CONSENT_REQUIRED","LICENSE_EXPIRED","CAP_REACHED"]}}}}}]}}},"x-error-codes":["ASSET_PAUSED","ASSET_REVOKED","ASSET_NOT_LIVE","NOT_SOUL_READY","CONSENT_REQUIRED","LICENSE_EXPIRED","CAP_REACHED"]},"422":{"description":"VALIDATION_FAILED, IDEMPOTENCY_KEY_REUSED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_FAILED","IDEMPOTENCY_KEY_REUSED"]}}}}}]}}},"x-error-codes":["VALIDATION_FAILED","IDEMPOTENCY_KEY_REUSED"]},"429":{"description":"RATE_LIMITED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["RATE_LIMITED"]}}}}}]}}},"x-error-codes":["RATE_LIMITED"]},"500":{"description":"INTERNAL","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INTERNAL"]}}}}}]}}},"x-error-codes":["INTERNAL"]}},"x-scope":"buyer","x-mcp-tool":"start_job","x-error-codes":["VALIDATION_FAILED","IDEMPOTENCY_KEY_REUSED","NOT_FOUND","ASSET_PAUSED","ASSET_REVOKED","ASSET_NOT_LIVE","NOT_SOUL_READY","CONSENT_REQUIRED","LICENSE_DENIED","LICENSE_EXPIRED","CAP_REACHED","USE_CASE_NOT_ALLOWED","TERRITORY_MISMATCH","DENY_ADULT","DENY_POLITICAL","DENY_RELIGIOUS","DENY_GAMBLING","DENY_LENDING","DENY_CLAIM","DENY_IMPERSONATION","UNAUTHENTICATED","FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","RATE_LIMITED","CALL_BLOCKED","INTERNAL"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartJobRequest"},"example":{"asset_id":"ip_2vq7kxm4hn3tb6wr5jyc","pack_id":"pk_7hq2m4xk3vn6tb5wryca","prompt":"Night street after rain, she glances back over her shoulder, neon reflections, cinematic still","aspect_ratio":"16:9","batch_size":1}}}},"x-hold-codes":[{"code":"MANUAL_REVIEW","status":202,"waits_for":"our trust & safety team","meaning":"The prompt check was unsure (or unavailable). Most checks take minutes; nothing is reserved while it waits."},{"code":"OWNER_REVIEW_REQUIRED","status":202,"waits_for":"the likeness owner","meaning":"The owner reviews every generation of this face (review_required in the policy)."},{"code":"ABUSE_HOLD","status":202,"waits_for":"our trust & safety team","meaning":"A takedown report on this face is open. New jobs wait until it's resolved; existing jobs stay."}]},"get":{"operationId":"list_jobs","summary":"List your org's jobs","description":"The latest jobs (default 100, at most 200), newest first. Use get_job for outputs.","tags":["Jobs"],"security":[{"apiKey":[]}],"parameters":[{"name":"status","in":"query","required":false,"description":"","schema":{"type":"string","enum":["held","queued","submitted","completed","failed","denied","cancelled"]}},{"name":"asset_id","in":"query","required":false,"description":"","schema":{"type":"string","pattern":"^ip_[a-z2-7]{20}$","description":"Asset (likeness) id: ip_ + 20 characters"}},{"name":"limit","in":"query","required":false,"description":"1-200, default 100","schema":{"description":"1-200, default 100","type":"string"}}],"responses":{"200":{"description":"The jobs","headers":{"X-Request-Id":{"description":"req_… — quote it when contacting support","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests per minute for this key or token","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the bucket right now","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobList"},"example":{"jobs":[{"job_id":"job_k3vn6tb5wryca7hq2m4x","asset_id":"ip_2vq7kxm4hn3tb6wr5jyc","asset_name":"Rani","pack_name":"Scout","status":"completed","hold_code":null,"error_code":null,"batch_size":1,"aspect_ratio":"16:9","outputs":1,"prompt_preview":"Night street after rain, she glances back over her shoulder, neon reflections, cinematic still","created_at":"2026-09-25T09:41:51.000Z"}]}}}},"401":{"description":"UNAUTHENTICATED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"WWW-Authenticate":{"description":"Bearer realm=\"api\"","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHENTICATED"]}}}}}]}}},"x-error-codes":["UNAUTHENTICATED"]},"403":{"description":"FORBIDDEN, ACCOUNT_PENDING, ACCOUNT_REJECTED, CALL_BLOCKED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]}}}}}]}}},"x-error-codes":["FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]},"422":{"description":"VALIDATION_FAILED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_FAILED"]}}}}}]}}},"x-error-codes":["VALIDATION_FAILED"]},"429":{"description":"RATE_LIMITED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["RATE_LIMITED"]}}}}}]}}},"x-error-codes":["RATE_LIMITED"]},"500":{"description":"INTERNAL","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INTERNAL"]}}}}}]}}},"x-error-codes":["INTERNAL"]}},"x-scope":"buyer","x-mcp-tool":null,"x-error-codes":["VALIDATION_FAILED","UNAUTHENTICATED","FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","RATE_LIMITED","CALL_BLOCKED","INTERNAL"]}},"/jobs/{job_id}":{"get":{"operationId":"get_job","summary":"Read a job and its outputs","description":"Status, the hold or error, and for completed jobs the outputs with signed URLs that expire within one hour (call again for fresh ones). Every image carries the AI label, visibly and in its metadata. Also the license and the consent text version the job ran under.","tags":["Jobs"],"security":[{"apiKey":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"description":"job_…","schema":{"type":"string","pattern":"^job_[a-z2-7]{20}$","description":"Job id: job_ + 20 characters"}}],"responses":{"200":{"description":"The job","headers":{"X-Request-Id":{"description":"req_… — quote it when contacting support","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests per minute for this key or token","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the bucket right now","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"},"example":{"job_id":"job_k3vn6tb5wryca7hq2m4x","asset_id":"ip_2vq7kxm4hn3tb6wr5jyc","asset_name":"Rani","license_id":"lic_5wryca7hq2m4xk3vn6tb","pack":"scout","pack_name":"Scout","use_case":"fiction_microdrama_stills","prompt":"Night street after rain, she glances back over her shoulder, neon reflections, cinematic still","aspect_ratio":"16:9","batch_size":1,"status":"completed","hold":null,"error":null,"gens_charged":1,"outputs":[{"index":1,"output_id":"out_m4xk3vn6tb5wryca7hq2","verify_url":"https://staging.novelity.ai.id/verify/out_m4xk3vn6tb5wryca7hq2","filename":"job_k3vn6tb5wryca7hq2m4x_1.jpg","width":1536,"height":864,"content_type":"image/jpeg","url":"https://staging.novelity.ai.id/api/files?k=outputs%2Fip_2vq7kxm4hn3tb6wr5jyc%2Fjob_k3vn6tb5wryca7hq2m4x%2F1.jpg&e=1790000000&s=3f9c…","download_url":"https://staging.novelity.ai.id/api/files?k=outputs%2Fip_2vq7kxm4hn3tb6wr5jyc%2Fjob_k3vn6tb5wryca7hq2m4x%2F1.jpg&e=1790000000&s=3f9c…&dl=job_k3vn6tb5wryca7hq2m4x_1.jpg","thumb_url":"https://staging.novelity.ai.id/api/files?k=outputs%2Fip_2vq7kxm4hn3tb6wr5jyc%2Fjob_k3vn6tb5wryca7hq2m4x%2F1.thumb.jpg&e=1790000000&s=3f9c…","label":"AI · licensed likeness","urls_expire_at":"2026-09-25T10:42:05.000Z"}],"label":"AI-generated image with licensed likeness","consent_version":1,"created_at":"2026-09-25T09:41:51.000Z","submitted_at":"2026-09-25T09:41:52.000Z","completed_at":"2026-09-25T09:42:01.000Z","ended_at":"2026-09-25T09:42:01.000Z"}}}},"401":{"description":"UNAUTHENTICATED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"WWW-Authenticate":{"description":"Bearer realm=\"api\"","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHENTICATED"]}}}}}]}}},"x-error-codes":["UNAUTHENTICATED"]},"403":{"description":"FORBIDDEN, ACCOUNT_PENDING, ACCOUNT_REJECTED, CALL_BLOCKED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]}}}}}]}}},"x-error-codes":["FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]},"404":{"description":"NOT_FOUND","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["NOT_FOUND"]}}}}}]}}},"x-error-codes":["NOT_FOUND"]},"422":{"description":"VALIDATION_FAILED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_FAILED"]}}}}}]}}},"x-error-codes":["VALIDATION_FAILED"]},"429":{"description":"RATE_LIMITED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["RATE_LIMITED"]}}}}}]}}},"x-error-codes":["RATE_LIMITED"]},"500":{"description":"INTERNAL","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INTERNAL"]}}}}}]}}},"x-error-codes":["INTERNAL"]}},"x-scope":"buyer","x-mcp-tool":"get_job","x-error-codes":["VALIDATION_FAILED","NOT_FOUND","UNAUTHENTICATED","FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","RATE_LIMITED","CALL_BLOCKED","INTERNAL"]}},"/owner/assets/{asset_id}/usage":{"get":{"operationId":"list_usage","summary":"How your face is used, and what it earned","description":"The owner dashboard's report, byte for byte the same numbers: earned (the licenses' ledger rows), used (completed jobs' share), generations, attempts your policy blocked (counts only), jobs waiting for review, licenses sold, and one page of jobs with buyer org, pack, redacted prompt summary, labeled thumbnails (signed, 1 hour) and gross / fee / net. Your own assets only.","tags":["Owner"],"security":[{"ownerToken":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"description":"The face's public id (ip_…)","schema":{"type":"string","pattern":"^ip_[a-z2-7]{20}$","description":"Asset (likeness) id: ip_ + 20 characters"}},{"name":"from","in":"query","required":false,"description":"YYYY-MM-DD (UTC), inclusive","schema":{"description":"YYYY-MM-DD (UTC), inclusive","type":"string"}},{"name":"to","in":"query","required":false,"description":"YYYY-MM-DD (UTC), inclusive","schema":{"description":"YYYY-MM-DD (UTC), inclusive","type":"string"}},{"name":"org","in":"query","required":false,"description":"Only this buyer org","schema":{"description":"Only this buyer org","type":"string","pattern":"^org_[a-z2-7]{20}$"}},{"name":"pack","in":"query","required":false,"description":"","schema":{"type":"string","enum":["scout","episode"],"description":"Pack template: scout (20 generations / 30 days) or episode (80 / 60)"}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page (jobs)","schema":{"description":"next_cursor from the previous page (jobs)","type":"string"}},{"name":"limit","in":"query","required":false,"description":"Jobs per page, 1-200, default 50","schema":{"description":"Jobs per page, 1-200, default 50","type":"string"}}],"responses":{"200":{"description":"The usage report","headers":{"X-Request-Id":{"description":"req_… — quote it when contacting support","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests per minute for this key or token","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the bucket right now","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageReport"},"example":{"asset_id":"ip_2vq7kxm4hn3tb6wr5jyc","display_name":"Rani","asset_status":"live","tier":"soul_ready","paused_at":null,"currency":"IDR","filters":{"from":null,"to":null,"buyer_org_id":null,"pack":null},"earned":{"licenses_sold":1,"gross":720000,"platform_fee":108000,"owner_net":612000,"formatted":{"gross":"Rp720.000","platform_fee":"Rp108.000","owner_net":"Rp612.000"}},"used":{"jobs_completed":1,"gens_consumed":1,"gross_alloc":36000,"fee_alloc":5400,"net_alloc":30600,"formatted":{"gross_alloc":"Rp36.000","fee_alloc":"Rp5.400","net_alloc":"Rp30.600"}},"generations":{"cap":20,"used":1,"consumed":1,"reserved":0,"remaining":19},"blocked":{"total":1,"categories":[{"code":"DENY_ADULT","label":"Adult or sexual content","kind":"policy","count":1}]},"waiting_now":{"total":0,"owner_review":0,"staff_review":0},"licenses":[{"license_id":"lic_5wryca7hq2m4xk3vn6tb","purchased_at":"2026-09-25T09:30:00.000Z","buyer_org_id":"org_4hn3tb6wr5jyc2vq7kxm","buyer_org":"Northlight Studio","pack":"scout","pack_name":"Scout","use_case":"fiction_microdrama_stills","territory":"worldwide","status":"active","expires_at":"2026-10-25T09:30:00.000Z","revoked_at":null,"cap":20,"gens_used":1,"gens_consumed":1,"gens_reserved":0,"gross":720000,"platform_fee":108000,"owner_net":612000,"gross_alloc":36000,"fee_alloc":5400,"net_alloc":30600,"formatted":{"gross":"Rp720.000","platform_fee":"Rp108.000","owner_net":"Rp612.000","gross_alloc":"Rp36.000","fee_alloc":"Rp5.400","net_alloc":"Rp30.600"}}],"licenses_truncated":false,"jobs":[{"job_id":"job_k3vn6tb5wryca7hq2m4x","created_at":"2026-09-25T09:41:51.000Z","completed_at":"2026-09-25T09:42:01.000Z","buyer_org_id":"org_4hn3tb6wr5jyc2vq7kxm","buyer_org":"Northlight Studio","license_id":"lic_5wryca7hq2m4xk3vn6tb","pack":"scout","pack_name":"Scout","use_case":"fiction_microdrama_stills","status":"completed","withheld":false,"outcome":null,"batch_size":1,"gens_charged":1,"gens_reserved":0,"prompt_summary":"Night street after rain, she glances back over her shoulder, neon reflections, cinematic still","thumbnails":[{"index":1,"url":"https://staging.novelity.ai.id/api/files?k=outputs%2Fip_2vq7kxm4hn3tb6wr5jyc%2Fjob_k3vn6tb5wryca7hq2m4x%2F1.thumb.jpg&e=1790000000&s=3f9c…","label":"AI · licensed likeness"}],"thumbnails_expire_at":"2026-09-25T10:45:00.000Z","gross_alloc":36000,"fee_alloc":5400,"net_alloc":30600,"formatted":{"gross_alloc":"Rp36.000","fee_alloc":"Rp5.400","net_alloc":"Rp30.600"}}],"next_cursor":null}}}},"401":{"description":"UNAUTHENTICATED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"WWW-Authenticate":{"description":"Bearer realm=\"api\"","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHENTICATED"]}}}}}]}}},"x-error-codes":["UNAUTHENTICATED"]},"403":{"description":"FORBIDDEN, CALL_BLOCKED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["FORBIDDEN","CALL_BLOCKED"]}}}}}]}}},"x-error-codes":["FORBIDDEN","CALL_BLOCKED"]},"404":{"description":"NOT_FOUND","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["NOT_FOUND"]}}}}}]}}},"x-error-codes":["NOT_FOUND"]},"422":{"description":"VALIDATION_FAILED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_FAILED"]}}}}}]}}},"x-error-codes":["VALIDATION_FAILED"]},"429":{"description":"RATE_LIMITED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["RATE_LIMITED"]}}}}}]}}},"x-error-codes":["RATE_LIMITED"]},"500":{"description":"INTERNAL","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INTERNAL"]}}}}}]}}},"x-error-codes":["INTERNAL"]}},"x-scope":"owner","x-mcp-tool":"list_usage","x-error-codes":["VALIDATION_FAILED","NOT_FOUND","UNAUTHENTICATED","FORBIDDEN","RATE_LIMITED","CALL_BLOCKED","INTERNAL"]}},"/owner/assets/{asset_id}/pause":{"post":{"operationId":"pause_asset","summary":"Pause future use of your face","description":"Immediate: the next start_job by any buyer gets ASSET_PAUSED, held and queued jobs are cancelled with their generations returned, in-flight ones are cancelled upstream where still possible. Finished jobs stay with their buyers. The talent's pause ends active licenses with a pro rata credit refund of unused generations (D10 C4); a resume does not restore them. Pausing a paused face is a no-op (changed: false). Reversible with resume.","tags":["Owner"],"security":[{"ownerToken":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"description":"The face's public id (ip_…)","schema":{"type":"string","pattern":"^ip_[a-z2-7]{20}$","description":"Asset (likeness) id: ip_ + 20 characters"}}],"responses":{"200":{"description":"Paused","headers":{"X-Request-Id":{"description":"req_… — quote it when contacting support","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests per minute for this key or token","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the bucket right now","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PauseResult"},"example":{"asset_id":"ip_2vq7kxm4hn3tb6wr5jyc","status":"paused","paused_at":"2026-09-25T10:00:00.000Z","changed":true,"stopped_jobs":{"cancelled":1,"cancel_requested":0},"note":"Future use is paused: new jobs are refused with ASSET_PAUSED, and jobs that were waiting were cancelled with their generations returned. Finished jobs stay with their buyers. Active licenses ended, and buyers got a pro rata credit refund for unused generations. Resume at any time."}}}},"401":{"description":"UNAUTHENTICATED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"WWW-Authenticate":{"description":"Bearer realm=\"api\"","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHENTICATED"]}}}}}]}}},"x-error-codes":["UNAUTHENTICATED"]},"403":{"description":"FORBIDDEN, CALL_BLOCKED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["FORBIDDEN","CALL_BLOCKED"]}}}}}]}}},"x-error-codes":["FORBIDDEN","CALL_BLOCKED"]},"404":{"description":"NOT_FOUND","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["NOT_FOUND"]}}}}}]}}},"x-error-codes":["NOT_FOUND"]},"409":{"description":"INVALID_STATE","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INVALID_STATE"]}}}}}]}}},"x-error-codes":["INVALID_STATE"]},"429":{"description":"RATE_LIMITED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["RATE_LIMITED"]}}}}}]}}},"x-error-codes":["RATE_LIMITED"]},"500":{"description":"INTERNAL","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INTERNAL"]}}}}}]}}},"x-error-codes":["INTERNAL"]}},"x-scope":"owner","x-mcp-tool":"pause_asset","x-error-codes":["NOT_FOUND","INVALID_STATE","UNAUTHENTICATED","FORBIDDEN","RATE_LIMITED","CALL_BLOCKED","INTERNAL"]}},"/owner/assets/{asset_id}/resume":{"post":{"operationId":"resume_asset","summary":"Resume a paused face","description":"paused → live: buyers with active licenses can start jobs again. Jobs the pause cancelled stay cancelled. Resuming a live face is a no-op (changed: false).","tags":["Owner"],"security":[{"ownerToken":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"description":"The face's public id (ip_…)","schema":{"type":"string","pattern":"^ip_[a-z2-7]{20}$","description":"Asset (likeness) id: ip_ + 20 characters"}}],"responses":{"200":{"description":"Live again","headers":{"X-Request-Id":{"description":"req_… — quote it when contacting support","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests per minute for this key or token","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the bucket right now","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResumeResult"},"example":{"asset_id":"ip_2vq7kxm4hn3tb6wr5jyc","status":"live","paused_at":null,"changed":true,"note":"The likeness is live again: buyers with active licenses can start new jobs. Jobs the pause cancelled stay cancelled."}}}},"401":{"description":"UNAUTHENTICATED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"WWW-Authenticate":{"description":"Bearer realm=\"api\"","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHENTICATED"]}}}}}]}}},"x-error-codes":["UNAUTHENTICATED"]},"403":{"description":"FORBIDDEN, CALL_BLOCKED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["FORBIDDEN","CALL_BLOCKED"]}}}}}]}}},"x-error-codes":["FORBIDDEN","CALL_BLOCKED"]},"404":{"description":"NOT_FOUND","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["NOT_FOUND"]}}}}}]}}},"x-error-codes":["NOT_FOUND"]},"409":{"description":"INVALID_STATE","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INVALID_STATE"]}}}}}]}}},"x-error-codes":["INVALID_STATE"]},"429":{"description":"RATE_LIMITED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["RATE_LIMITED"]}}}}}]}}},"x-error-codes":["RATE_LIMITED"]},"500":{"description":"INTERNAL","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INTERNAL"]}}}}}]}}},"x-error-codes":["INTERNAL"]}},"x-scope":"owner","x-mcp-tool":null,"x-error-codes":["NOT_FOUND","INVALID_STATE","UNAUTHENTICATED","FORBIDDEN","RATE_LIMITED","CALL_BLOCKED","INTERNAL"]}},"/me":{"get":{"operationId":"get_me","summary":"Who this credential is","description":"An API key: its org (always approved when this answers), credit balance and rate limit. An owner token: the owner's display name and assets.","tags":["Account"],"security":[{"apiKey":[]},{"ownerToken":[]}],"parameters":[],"responses":{"200":{"description":"The identity","headers":{"X-Request-Id":{"description":"req_… — quote it when contacting support","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests per minute for this key or token","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the bucket right now","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Me"},"example":{"type":"api_key","scopes":["buyer"],"key":{"key_id":"key_6tb5wryca7hq2m4xk3vn","name":"Pipeline agent","prefix":"sk_live_abcdef","created_at":"2026-09-25T09:00:00.000Z","last_used_at":"2026-09-25T09:41:51.000Z"},"org":{"org_id":"org_4hn3tb6wr5jyc2vq7kxm","name":"Northlight Studio","status":"approved","distribution_territory":"worldwide"},"credits":{"balance":8560000,"currency":"IDR","formatted":"Rp8.560.000"},"rate_limit":{"limit":60,"window_seconds":60}}}}},"401":{"description":"UNAUTHENTICATED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"WWW-Authenticate":{"description":"Bearer realm=\"api\"","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHENTICATED"]}}}}}]}}},"x-error-codes":["UNAUTHENTICATED"]},"403":{"description":"ACCOUNT_PENDING, ACCOUNT_REJECTED, CALL_BLOCKED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]}}}}}]}}},"x-error-codes":["ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]},"422":{"description":"VALIDATION_FAILED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_FAILED"]}}}}}]}}},"x-error-codes":["VALIDATION_FAILED"]},"429":{"description":"RATE_LIMITED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["RATE_LIMITED"]}}}}}]}}},"x-error-codes":["RATE_LIMITED"]},"500":{"description":"INTERNAL","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INTERNAL"]}}}}}]}}},"x-error-codes":["INTERNAL"]}},"x-scope":"any","x-mcp-tool":null,"x-error-codes":["VALIDATION_FAILED","UNAUTHENTICATED","ACCOUNT_PENDING","ACCOUNT_REJECTED","RATE_LIMITED","CALL_BLOCKED","INTERNAL"]}},"/openapi.json":{"get":{"operationId":"get_openapi","summary":"This OpenAPI 3.1 document","description":"No credential needed.","tags":["Meta"],"security":[],"parameters":[],"responses":{"200":{"description":"OpenAPI 3.1","headers":{"X-Request-Id":{"description":"req_… — quote it when contacting support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenApiDocument"},"example":{"openapi":"3.1.0","info":{"title":"Novelity API","version":"1"},"paths":{}}}}},"500":{"description":"INTERNAL","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INTERNAL"]}}}}}]}}},"x-error-codes":["INTERNAL"]}},"x-scope":"public","x-mcp-tool":null,"x-error-codes":["INTERNAL"]}},"/owner/earnings":{"get":{"operationId":"get_earnings","summary":"Your balance, pending payouts and ledger entries","description":"balance_cents is earned minus clawbacks minus paid out. Earnings are payable hold_days after the sale: on_hold_cents are younger, withheld_cents are past the hold but wait for an open report, released_cents are payable. available_cents = released minus paid out minus payouts in progress (pending_cents; held_cents of it wait for approval) and is what you can request. entries are your ledger rows (owner_share and payout), newest first, cursor-paginated.","tags":["Owner"],"security":[{"ownerToken":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"description":"next_cursor from the previous page","type":"string"}},{"name":"limit","in":"query","required":false,"description":"Entries per page, 1-200, default 50","schema":{"description":"Entries per page, 1-200, default 50","type":"string"}}],"responses":{"200":{"description":"The owner earnings","headers":{"X-Request-Id":{"description":"req_… — quote it when contacting support","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests per minute for this key or token","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the bucket right now","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Earnings"},"example":{"currency":"IDR","balance_cents":1920000,"available_cents":1120000,"pending_cents":800000,"held_cents":800000,"on_hold_cents":0,"withheld_cents":0,"released_cents":1920000,"next_release_at":null,"lifetime_earned_cents":1920000,"paid_out_cents":0,"min_payout_cents":750000,"hold_days":14,"formatted":{"balance":"Rp1.920.000","available":"Rp1.120.000","pending":"Rp800.000","held":"Rp800.000","on_hold":"Rp0","withheld":"Rp0","lifetime_earned":"Rp1.920.000","paid_out":"Rp0"},"entries":[{"entry_id":"led_q7kxm4hn3tb6wr5jyc2v","type":"owner_share","amount_cents":1920000,"formatted":"Rp1.920.000","asset_id":"ip_2vq7kxm4hn3tb6wr5jyc","license_id":"lic_5wryca7hq2m4xk3vn6tb","payout_id":null,"memo":"Owner share of lic_5wryca7hq2m4xk3vn6tb","created_at":"2026-11-20T09:00:00.000Z"}],"next_cursor":null}}}},"401":{"description":"UNAUTHENTICATED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"WWW-Authenticate":{"description":"Bearer realm=\"api\"","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHENTICATED"]}}}}}]}}},"x-error-codes":["UNAUTHENTICATED"]},"403":{"description":"FORBIDDEN, CALL_BLOCKED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["FORBIDDEN","CALL_BLOCKED"]}}}}}]}}},"x-error-codes":["FORBIDDEN","CALL_BLOCKED"]},"422":{"description":"VALIDATION_FAILED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_FAILED"]}}}}}]}}},"x-error-codes":["VALIDATION_FAILED"]},"429":{"description":"RATE_LIMITED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["RATE_LIMITED"]}}}}}]}}},"x-error-codes":["RATE_LIMITED"]},"500":{"description":"INTERNAL","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INTERNAL"]}}}}}]}}},"x-error-codes":["INTERNAL"]}},"x-scope":"owner","x-mcp-tool":null,"x-error-codes":["VALIDATION_FAILED","UNAUTHENTICATED","FORBIDDEN","RATE_LIMITED","CALL_BLOCKED","INTERNAL"]}},"/owner/payouts":{"post":{"operationId":"request_payout","summary":"Request a payout","description":"Asks to be paid amount_cents. At least min_payout_cents and at most available_cents (earnings past the hold minus payouts). One payout at a time: a request while another is in progress is INVALID_STATE with details.reason payout_open. Two different admins then approve it (after hold_until, which is the request time unless PAYOUT_REVIEW_HOLD_DAYS is set). V1 has no payment rail: marking it paid only writes the ledger entry (reference stub). Send an Idempotency-Key so a retry never requests twice.","tags":["Owner"],"security":[{"ownerToken":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"1-255 visible ASCII characters (a UUID is ideal). The same key + the same amount replays the first answer (Idempotent-Replayed: true); the same key with another amount is IDEMPOTENCY_KEY_REUSED.","schema":{"type":"string","minLength":1,"maxLength":255}}],"responses":{"201":{"description":"The payout, held","headers":{"X-Request-Id":{"description":"req_… — quote it when contacting support","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests per minute for this key or token","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the bucket right now","schema":{"type":"integer"}},"Idempotent-Replayed":{"description":"\"true\" when an Idempotency-Key replayed an earlier answer (nothing was done again)","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutResponse"},"example":{"payout":{"payout_id":"pay_7hq2m4xk3vn6tb5wryca","owner_user_id":"usr_k3vn6tb5wryca7hq2m4x","amount_cents":800000,"amount_minor":800000,"currency":"IDR","formatted":"Rp800.000","kind":"request","status":"held","hold_until":"2026-12-12T09:00:00.000Z","approvals":0,"paid_at":null,"fail_reason":null,"reference":null,"created_at":"2026-11-28T09:00:00.000Z","updated_at":"2026-11-28T09:00:00.000Z"}}}}},"401":{"description":"UNAUTHENTICATED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"WWW-Authenticate":{"description":"Bearer realm=\"api\"","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHENTICATED"]}}}}}]}}},"x-error-codes":["UNAUTHENTICATED"]},"403":{"description":"FORBIDDEN, CALL_BLOCKED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["FORBIDDEN","CALL_BLOCKED"]}}}}}]}}},"x-error-codes":["FORBIDDEN","CALL_BLOCKED"]},"409":{"description":"INVALID_STATE","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INVALID_STATE"]}}}}}]}}},"x-error-codes":["INVALID_STATE"]},"422":{"description":"VALIDATION_FAILED, IDEMPOTENCY_KEY_REUSED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_FAILED","IDEMPOTENCY_KEY_REUSED"]}}}}}]}}},"x-error-codes":["VALIDATION_FAILED","IDEMPOTENCY_KEY_REUSED"]},"429":{"description":"RATE_LIMITED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["RATE_LIMITED"]}}}}}]}}},"x-error-codes":["RATE_LIMITED"]},"500":{"description":"INTERNAL","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INTERNAL"]}}}}}]}}},"x-error-codes":["INTERNAL"]}},"x-scope":"owner","x-mcp-tool":null,"x-error-codes":["VALIDATION_FAILED","IDEMPOTENCY_KEY_REUSED","INVALID_STATE","UNAUTHENTICATED","FORBIDDEN","RATE_LIMITED","CALL_BLOCKED","INTERNAL"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutRequest"},"example":{"amount_cents":800000}}}}},"get":{"operationId":"list_payouts","summary":"Your payouts","description":"Your payout requests, newest first, cursor-paginated, optionally one status.","tags":["Owner"],"security":[{"ownerToken":[]}],"parameters":[{"name":"status","in":"query","required":false,"description":"","schema":{"type":"string","enum":["requested","held","approved","paid","failed","cancelled"]}},{"name":"cursor","in":"query","required":false,"description":"next_cursor from the previous page","schema":{"description":"next_cursor from the previous page","type":"string"}},{"name":"limit","in":"query","required":false,"description":"Payouts per page, 1-200, default 50","schema":{"description":"Payouts per page, 1-200, default 50","type":"string"}}],"responses":{"200":{"description":"A page of payouts","headers":{"X-Request-Id":{"description":"req_… — quote it when contacting support","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests per minute for this key or token","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the bucket right now","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutList"},"example":{"payouts":[{"payout_id":"pay_7hq2m4xk3vn6tb5wryca","owner_user_id":"usr_k3vn6tb5wryca7hq2m4x","amount_cents":800000,"amount_minor":800000,"currency":"IDR","formatted":"Rp800.000","kind":"request","status":"held","hold_until":"2026-12-12T09:00:00.000Z","approvals":0,"paid_at":null,"fail_reason":null,"reference":null,"created_at":"2026-11-28T09:00:00.000Z","updated_at":"2026-11-28T09:00:00.000Z"}],"next_cursor":null}}}},"401":{"description":"UNAUTHENTICATED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"WWW-Authenticate":{"description":"Bearer realm=\"api\"","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHENTICATED"]}}}}}]}}},"x-error-codes":["UNAUTHENTICATED"]},"403":{"description":"FORBIDDEN, CALL_BLOCKED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["FORBIDDEN","CALL_BLOCKED"]}}}}}]}}},"x-error-codes":["FORBIDDEN","CALL_BLOCKED"]},"422":{"description":"VALIDATION_FAILED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_FAILED"]}}}}}]}}},"x-error-codes":["VALIDATION_FAILED"]},"429":{"description":"RATE_LIMITED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["RATE_LIMITED"]}}}}}]}}},"x-error-codes":["RATE_LIMITED"]},"500":{"description":"INTERNAL","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INTERNAL"]}}}}}]}}},"x-error-codes":["INTERNAL"]}},"x-scope":"owner","x-mcp-tool":null,"x-error-codes":["VALIDATION_FAILED","UNAUTHENTICATED","FORBIDDEN","RATE_LIMITED","CALL_BLOCKED","INTERNAL"]}},"/jobs/{job_id}/cancel":{"post":{"operationId":"cancel_job","summary":"Cancel a held or waiting job","description":"A held job, or a queued one not yet sent for generation, is cancelled and its reserved generations go back to the licence. A job already sent can't be recalled (INVALID_STATE, details.reason already_started); a finished one neither (job_finished). Cancelling again answers changed: false.","tags":["Jobs"],"security":[{"apiKey":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"description":"job_…","schema":{"type":"string","pattern":"^job_[a-z2-7]{20}$","description":"Job id: job_ + 20 characters"}}],"responses":{"200":{"description":"The cancelled job","headers":{"X-Request-Id":{"description":"req_… — quote it when contacting support","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests per minute for this key or token","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the bucket right now","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelJobResult"},"example":{"job_id":"job_k3vn6tb5wryca7hq2m4x","status":"cancelled","changed":true,"generations_returned":1,"message":"You cancelled this job before it ran. Nothing was generated and the generations were returned to your license."}}}},"401":{"description":"UNAUTHENTICATED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"WWW-Authenticate":{"description":"Bearer realm=\"api\"","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHENTICATED"]}}}}}]}}},"x-error-codes":["UNAUTHENTICATED"]},"403":{"description":"FORBIDDEN, ACCOUNT_PENDING, ACCOUNT_REJECTED, CALL_BLOCKED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]}}}}}]}}},"x-error-codes":["FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]},"404":{"description":"NOT_FOUND","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["NOT_FOUND"]}}}}}]}}},"x-error-codes":["NOT_FOUND"]},"409":{"description":"INVALID_STATE","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INVALID_STATE"]}}}}}]}}},"x-error-codes":["INVALID_STATE"]},"422":{"description":"VALIDATION_FAILED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_FAILED"]}}}}}]}}},"x-error-codes":["VALIDATION_FAILED"]},"429":{"description":"RATE_LIMITED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["RATE_LIMITED"]}}}}}]}}},"x-error-codes":["RATE_LIMITED"]},"500":{"description":"INTERNAL","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INTERNAL"]}}}}}]}}},"x-error-codes":["INTERNAL"]}},"x-scope":"buyer","x-mcp-tool":null,"x-error-codes":["VALIDATION_FAILED","NOT_FOUND","INVALID_STATE","UNAUTHENTICATED","FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","RATE_LIMITED","CALL_BLOCKED","INTERNAL"]}},"/jobs/{job_id}/review-request":{"post":{"operationId":"request_job_review","summary":"Ask for a review of a finished job's image","description":"Asks our team to look at an image again (category quality, likeness_mismatch, label_missing or other). Finished jobs only. One open request per job and image: asking again returns it (200, created false). Our team's answer appears in resolution.","tags":["Jobs"],"security":[{"apiKey":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"description":"job_…","schema":{"type":"string","pattern":"^job_[a-z2-7]{20}$","description":"Job id: job_ + 20 characters"}}],"responses":{"200":{"description":"The open request that already existed","headers":{"X-Request-Id":{"description":"req_… — quote it when contacting support","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests per minute for this key or token","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the bucket right now","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobRequestResponse"},"example":{"request":{"request_id":"jrq_m4xk3vn6tb5wryca7hq2","job_id":"job_k3vn6tb5wryca7hq2m4x","output_id":null,"kind":"review","category":"quality","details":null,"status":"open","resolution":null,"created_at":"2026-11-29T09:00:00.000Z","resolved_at":null},"created":false}}}},"201":{"description":"The new request","headers":{"X-Request-Id":{"description":"req_… — quote it when contacting support","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests per minute for this key or token","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the bucket right now","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobRequestResponse"},"example":{"request":{"request_id":"jrq_m4xk3vn6tb5wryca7hq2","job_id":"job_k3vn6tb5wryca7hq2m4x","output_id":null,"kind":"review","category":"quality","details":"The hands look wrong in this image.","status":"open","resolution":null,"created_at":"2026-11-29T09:00:00.000Z","resolved_at":null},"created":true}}}},"401":{"description":"UNAUTHENTICATED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"WWW-Authenticate":{"description":"Bearer realm=\"api\"","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHENTICATED"]}}}}}]}}},"x-error-codes":["UNAUTHENTICATED"]},"403":{"description":"FORBIDDEN, ACCOUNT_PENDING, ACCOUNT_REJECTED, CALL_BLOCKED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]}}}}}]}}},"x-error-codes":["FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]},"404":{"description":"NOT_FOUND","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["NOT_FOUND"]}}}}}]}}},"x-error-codes":["NOT_FOUND"]},"409":{"description":"INVALID_STATE","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INVALID_STATE"]}}}}}]}}},"x-error-codes":["INVALID_STATE"]},"422":{"description":"VALIDATION_FAILED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_FAILED"]}}}}}]}}},"x-error-codes":["VALIDATION_FAILED"]},"429":{"description":"RATE_LIMITED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["RATE_LIMITED"]}}}}}]}}},"x-error-codes":["RATE_LIMITED"]},"500":{"description":"INTERNAL","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INTERNAL"]}}}}}]}}},"x-error-codes":["INTERNAL"]}},"x-scope":"buyer","x-mcp-tool":null,"x-error-codes":["VALIDATION_FAILED","NOT_FOUND","INVALID_STATE","UNAUTHENTICATED","FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","RATE_LIMITED","CALL_BLOCKED","INTERNAL"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewRequestBody"},"example":{"category":"quality","details":"The hands look wrong in this image."}}}}}},"/jobs/{job_id}/report":{"post":{"operationId":"report_job_problem","summary":"Report a problem with a finished job's image","description":"Reports a problem (category broken_file, wrong_output, offensive, rights_concern or other). Finished jobs only. One open report per job and image: reporting again returns it (200, created false). A likeness that shows someone other than the person who listed it is a takedown (/takedown), not this report.","tags":["Jobs"],"security":[{"apiKey":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"description":"job_…","schema":{"type":"string","pattern":"^job_[a-z2-7]{20}$","description":"Job id: job_ + 20 characters"}}],"responses":{"200":{"description":"The open report that already existed","headers":{"X-Request-Id":{"description":"req_… — quote it when contacting support","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests per minute for this key or token","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the bucket right now","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobRequestResponse"},"example":{"request":{"request_id":"jrq_m4xk3vn6tb5wryca7hq2","job_id":"job_k3vn6tb5wryca7hq2m4x","output_id":null,"kind":"problem","category":"broken_file","details":null,"status":"open","resolution":null,"created_at":"2026-11-29T09:00:00.000Z","resolved_at":null},"created":false}}}},"201":{"description":"The new report","headers":{"X-Request-Id":{"description":"req_… — quote it when contacting support","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests per minute for this key or token","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the bucket right now","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobRequestResponse"},"example":{"request":{"request_id":"jrq_m4xk3vn6tb5wryca7hq2","job_id":"job_k3vn6tb5wryca7hq2m4x","output_id":null,"kind":"problem","category":"broken_file","details":null,"status":"open","resolution":null,"created_at":"2026-11-29T09:00:00.000Z","resolved_at":null},"created":true}}}},"401":{"description":"UNAUTHENTICATED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"WWW-Authenticate":{"description":"Bearer realm=\"api\"","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHENTICATED"]}}}}}]}}},"x-error-codes":["UNAUTHENTICATED"]},"403":{"description":"FORBIDDEN, ACCOUNT_PENDING, ACCOUNT_REJECTED, CALL_BLOCKED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]}}}}}]}}},"x-error-codes":["FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]},"404":{"description":"NOT_FOUND","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["NOT_FOUND"]}}}}}]}}},"x-error-codes":["NOT_FOUND"]},"409":{"description":"INVALID_STATE","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INVALID_STATE"]}}}}}]}}},"x-error-codes":["INVALID_STATE"]},"422":{"description":"VALIDATION_FAILED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_FAILED"]}}}}}]}}},"x-error-codes":["VALIDATION_FAILED"]},"429":{"description":"RATE_LIMITED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["RATE_LIMITED"]}}}}}]}}},"x-error-codes":["RATE_LIMITED"]},"500":{"description":"INTERNAL","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INTERNAL"]}}}}}]}}},"x-error-codes":["INTERNAL"]}},"x-scope":"buyer","x-mcp-tool":null,"x-error-codes":["VALIDATION_FAILED","NOT_FOUND","INVALID_STATE","UNAUTHENTICATED","FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","RATE_LIMITED","CALL_BLOCKED","INTERNAL"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemReportBody"},"example":{"category":"broken_file"}}}}}},"/webhooks":{"post":{"operationId":"create_webhook","summary":"Register a webhook endpoint","description":"Sends job.completed and job.failed events for your organization's jobs to a public https URL (at most 5 endpoints). The signing secret is returned once. Each delivery is a POST with a JSON body { id, type, created_at, data } and the Standard Webhooks headers webhook-id (the event id, the same on every retry), webhook-timestamp (unix seconds) and webhook-signature (v1,<base64 HMAC-SHA256 of \"id.timestamp.body\" with the base64 part of your whsec_ secret). Answer 2xx within 10 s; otherwise we retry after 1 min, 5 min, 30 min, 2 h and 6 h.","tags":["Webhooks"],"security":[{"apiKey":[]}],"parameters":[],"responses":{"201":{"description":"The new endpoint and its secret","headers":{"X-Request-Id":{"description":"req_… — quote it when contacting support","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests per minute for this key or token","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the bucket right now","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedWebhook"},"example":{"webhook":{"webhook_id":"whe_k3vn6tb5wryca7hq2m4x","url":"https://hooks.example.com/likeness","description":"Render pipeline","events":["job.completed","job.failed"],"status":"active","disabled_reason":null,"disabled_at":null,"consecutive_failures":0,"secret_version":1,"created_at":"2026-11-29T09:00:00.000Z","stats":{"succeeded":0,"failed":0,"retrying":0,"last_delivery_at":null}},"secret":"whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw"}}}},"401":{"description":"UNAUTHENTICATED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"WWW-Authenticate":{"description":"Bearer realm=\"api\"","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHENTICATED"]}}}}}]}}},"x-error-codes":["UNAUTHENTICATED"]},"403":{"description":"FORBIDDEN, ACCOUNT_PENDING, ACCOUNT_REJECTED, CALL_BLOCKED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]}}}}}]}}},"x-error-codes":["FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]},"409":{"description":"INVALID_STATE","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INVALID_STATE"]}}}}}]}}},"x-error-codes":["INVALID_STATE"]},"422":{"description":"VALIDATION_FAILED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["VALIDATION_FAILED"]}}}}}]}}},"x-error-codes":["VALIDATION_FAILED"]},"429":{"description":"RATE_LIMITED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["RATE_LIMITED"]}}}}}]}}},"x-error-codes":["RATE_LIMITED"]},"500":{"description":"INTERNAL","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INTERNAL"]}}}}}]}}},"x-error-codes":["INTERNAL"]}},"x-scope":"buyer","x-mcp-tool":null,"x-error-codes":["VALIDATION_FAILED","INVALID_STATE","UNAUTHENTICATED","FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","RATE_LIMITED","CALL_BLOCKED","INTERNAL"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhookBody"},"example":{"url":"https://hooks.example.com/likeness","events":["job.completed","job.failed"],"description":"Render pipeline"}}}}},"get":{"operationId":"list_webhooks","summary":"List your webhook endpoints","description":"Every endpoint of your organization with its status and delivery counts.","tags":["Webhooks"],"security":[{"apiKey":[]}],"parameters":[],"responses":{"200":{"description":"The endpoints","headers":{"X-Request-Id":{"description":"req_… — quote it when contacting support","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests per minute for this key or token","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the bucket right now","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookList"},"example":{"webhooks":[{"webhook_id":"whe_k3vn6tb5wryca7hq2m4x","url":"https://hooks.example.com/likeness","description":"Render pipeline","events":["job.completed","job.failed"],"status":"active","disabled_reason":null,"disabled_at":null,"consecutive_failures":0,"secret_version":1,"created_at":"2026-11-29T09:00:00.000Z","stats":{"succeeded":0,"failed":0,"retrying":0,"last_delivery_at":null}}]}}}},"401":{"description":"UNAUTHENTICATED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"WWW-Authenticate":{"description":"Bearer realm=\"api\"","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHENTICATED"]}}}}}]}}},"x-error-codes":["UNAUTHENTICATED"]},"403":{"description":"FORBIDDEN, ACCOUNT_PENDING, ACCOUNT_REJECTED, CALL_BLOCKED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]}}}}}]}}},"x-error-codes":["FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]},"429":{"description":"RATE_LIMITED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["RATE_LIMITED"]}}}}}]}}},"x-error-codes":["RATE_LIMITED"]},"500":{"description":"INTERNAL","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INTERNAL"]}}}}}]}}},"x-error-codes":["INTERNAL"]}},"x-scope":"buyer","x-mcp-tool":null,"x-error-codes":["UNAUTHENTICATED","FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","RATE_LIMITED","CALL_BLOCKED","INTERNAL"]}},"/webhooks/{webhook_id}/test":{"post":{"operationId":"test_webhook","summary":"Send a test event","description":"Queues a signed webhook.test event to the endpoint (delivered within seconds; see its deliveries). The endpoint must be active.","tags":["Webhooks"],"security":[{"apiKey":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"description":"whe_…","schema":{"type":"string","pattern":"^whe_[a-z2-7]{20}$","description":"whe_…"}}],"responses":{"202":{"description":"The queued test delivery","headers":{"X-Request-Id":{"description":"req_… — quote it when contacting support","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests per minute for this key or token","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the bucket right now","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookTestDelivery"},"example":{"delivery":{"delivery_id":"whd_m4xk3vn6tb5wryca7hq2","event_id":"evt_wryca7hq2m4xk3vn6tb5","type":"webhook.test","job_id":null,"status":"pending","retrying":false,"attempts":0,"last_status_code":null,"last_error":null,"next_attempt_at":null,"delivered_at":null,"test":true,"created_at":"2026-11-29T09:01:00.000Z"}}}}},"401":{"description":"UNAUTHENTICATED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"WWW-Authenticate":{"description":"Bearer realm=\"api\"","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHENTICATED"]}}}}}]}}},"x-error-codes":["UNAUTHENTICATED"]},"403":{"description":"FORBIDDEN, ACCOUNT_PENDING, ACCOUNT_REJECTED, CALL_BLOCKED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]}}}}}]}}},"x-error-codes":["FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]},"404":{"description":"NOT_FOUND","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["NOT_FOUND"]}}}}}]}}},"x-error-codes":["NOT_FOUND"]},"409":{"description":"INVALID_STATE","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INVALID_STATE"]}}}}}]}}},"x-error-codes":["INVALID_STATE"]},"429":{"description":"RATE_LIMITED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["RATE_LIMITED"]}}}}}]}}},"x-error-codes":["RATE_LIMITED"]},"500":{"description":"INTERNAL","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INTERNAL"]}}}}}]}}},"x-error-codes":["INTERNAL"]}},"x-scope":"buyer","x-mcp-tool":null,"x-error-codes":["NOT_FOUND","INVALID_STATE","UNAUTHENTICATED","FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","RATE_LIMITED","CALL_BLOCKED","INTERNAL"]}},"/webhooks/{webhook_id}/deliveries":{"get":{"operationId":"list_webhook_deliveries","summary":"The delivery log of an endpoint","description":"The latest deliveries (newest first, up to 50): status, attempts, the last HTTP status or error, and the next retry.","tags":["Webhooks"],"security":[{"apiKey":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"description":"whe_…","schema":{"type":"string","pattern":"^whe_[a-z2-7]{20}$","description":"whe_…"}}],"responses":{"200":{"description":"The deliveries","headers":{"X-Request-Id":{"description":"req_… — quote it when contacting support","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests per minute for this key or token","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the bucket right now","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDeliveryList"},"example":{"webhook_id":"whe_k3vn6tb5wryca7hq2m4x","deliveries":[{"delivery_id":"whd_m4xk3vn6tb5wryca7hq2","event_id":"evt_wryca7hq2m4xk3vn6tb5","type":"webhook.test","job_id":null,"status":"pending","retrying":false,"attempts":0,"last_status_code":null,"last_error":null,"next_attempt_at":null,"delivered_at":null,"test":true,"created_at":"2026-11-29T09:01:00.000Z"}]}}}},"401":{"description":"UNAUTHENTICATED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"WWW-Authenticate":{"description":"Bearer realm=\"api\"","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHENTICATED"]}}}}}]}}},"x-error-codes":["UNAUTHENTICATED"]},"403":{"description":"FORBIDDEN, ACCOUNT_PENDING, ACCOUNT_REJECTED, CALL_BLOCKED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]}}}}}]}}},"x-error-codes":["FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]},"404":{"description":"NOT_FOUND","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["NOT_FOUND"]}}}}}]}}},"x-error-codes":["NOT_FOUND"]},"429":{"description":"RATE_LIMITED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["RATE_LIMITED"]}}}}}]}}},"x-error-codes":["RATE_LIMITED"]},"500":{"description":"INTERNAL","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INTERNAL"]}}}}}]}}},"x-error-codes":["INTERNAL"]}},"x-scope":"buyer","x-mcp-tool":null,"x-error-codes":["NOT_FOUND","UNAUTHENTICATED","FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","RATE_LIMITED","CALL_BLOCKED","INTERNAL"]}},"/webhooks/{webhook_id}/disable":{"post":{"operationId":"disable_webhook","summary":"Disable an endpoint","description":"No new deliveries go to it; pending ones end failed. Disabling again answers changed: false.","tags":["Webhooks"],"security":[{"apiKey":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"description":"whe_…","schema":{"type":"string","pattern":"^whe_[a-z2-7]{20}$","description":"whe_…"}}],"responses":{"200":{"description":"The endpoint","headers":{"X-Request-Id":{"description":"req_… — quote it when contacting support","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests per minute for this key or token","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the bucket right now","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookStatusChange"},"example":{"webhook":{"webhook_id":"whe_k3vn6tb5wryca7hq2m4x","url":"https://hooks.example.com/likeness","description":"Render pipeline","events":["job.completed","job.failed"],"status":"disabled","disabled_reason":"manual","disabled_at":"2026-11-29T10:00:00.000Z","consecutive_failures":0,"secret_version":1,"created_at":"2026-11-29T09:00:00.000Z","stats":{"succeeded":0,"failed":0,"retrying":0,"last_delivery_at":null}},"changed":true}}}},"401":{"description":"UNAUTHENTICATED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"WWW-Authenticate":{"description":"Bearer realm=\"api\"","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHENTICATED"]}}}}}]}}},"x-error-codes":["UNAUTHENTICATED"]},"403":{"description":"FORBIDDEN, ACCOUNT_PENDING, ACCOUNT_REJECTED, CALL_BLOCKED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]}}}}}]}}},"x-error-codes":["FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]},"404":{"description":"NOT_FOUND","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["NOT_FOUND"]}}}}}]}}},"x-error-codes":["NOT_FOUND"]},"429":{"description":"RATE_LIMITED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["RATE_LIMITED"]}}}}}]}}},"x-error-codes":["RATE_LIMITED"]},"500":{"description":"INTERNAL","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INTERNAL"]}}}}}]}}},"x-error-codes":["INTERNAL"]}},"x-scope":"buyer","x-mcp-tool":null,"x-error-codes":["NOT_FOUND","UNAUTHENTICATED","FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","RATE_LIMITED","CALL_BLOCKED","INTERNAL"]}},"/webhooks/{webhook_id}/enable":{"post":{"operationId":"enable_webhook","summary":"Enable an endpoint again","description":"Also after it was disabled for failing; its failure count restarts. Enabling an active one answers changed: false.","tags":["Webhooks"],"security":[{"apiKey":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"description":"whe_…","schema":{"type":"string","pattern":"^whe_[a-z2-7]{20}$","description":"whe_…"}}],"responses":{"200":{"description":"The endpoint","headers":{"X-Request-Id":{"description":"req_… — quote it when contacting support","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests per minute for this key or token","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the bucket right now","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookStatusChange"},"example":{"webhook":{"webhook_id":"whe_k3vn6tb5wryca7hq2m4x","url":"https://hooks.example.com/likeness","description":"Render pipeline","events":["job.completed","job.failed"],"status":"active","disabled_reason":null,"disabled_at":null,"consecutive_failures":0,"secret_version":1,"created_at":"2026-11-29T09:00:00.000Z","stats":{"succeeded":0,"failed":0,"retrying":0,"last_delivery_at":null}},"changed":true}}}},"401":{"description":"UNAUTHENTICATED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"WWW-Authenticate":{"description":"Bearer realm=\"api\"","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["UNAUTHENTICATED"]}}}}}]}}},"x-error-codes":["UNAUTHENTICATED"]},"403":{"description":"FORBIDDEN, ACCOUNT_PENDING, ACCOUNT_REJECTED, CALL_BLOCKED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]}}}}}]}}},"x-error-codes":["FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","CALL_BLOCKED"]},"404":{"description":"NOT_FOUND","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["NOT_FOUND"]}}}}}]}}},"x-error-codes":["NOT_FOUND"]},"429":{"description":"RATE_LIMITED","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}},"Retry-After":{"description":"Seconds to wait before retrying","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["RATE_LIMITED"]}}}}}]}}},"x-error-codes":["RATE_LIMITED"]},"500":{"description":"INTERNAL","headers":{"X-Request-Id":{"description":"req_…","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["INTERNAL"]}}}}}]}}},"x-error-codes":["INTERNAL"]}},"x-scope":"buyer","x-mcp-tool":null,"x-error-codes":["NOT_FOUND","UNAUTHENTICATED","FORBIDDEN","ACCOUNT_PENDING","ACCOUNT_REJECTED","RATE_LIMITED","CALL_BLOCKED","INTERNAL"]}}},"components":{"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Machine-readable. Branch on this, never on message."},"message":{"type":"string","description":"Human-readable English; may change."},"retryable":{"type":"boolean","description":"true: the same request may succeed later without changes (honor Retry-After)."},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Code-specific, machine-readable (e.g. fields, reason, hint, job_id)."},"request_id":{"type":"string","pattern":"^req_[a-z2-7]{20}$","description":"Request id: req_ + 20 characters"}},"required":["code","message","retryable","details","request_id"]}},"required":["error"]},"Pack":{"type":"object","properties":{"pack":{"type":"string","enum":["scout","episode"],"description":"Pack template: scout (20 generations / 30 days) or episode (80 / 60)"},"pack_id":{"type":"string","pattern":"^pk_[a-z2-7]{20}$","description":"What start_job takes as pack_id"},"name":{"type":"string"},"description":{"type":"string"},"cap":{"type":"integer","minimum":0,"description":"Generations per license"},"days":{"type":"integer","minimum":0,"description":"License window in days, from purchase"},"price":{"type":"integer","description":"Per license, minor units, IDR rupiah (the owner's floor price)"},"formatted_price":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""}},"required":["pack","pack_id","name","description","cap","days","price","formatted_price"]},"Preview":{"type":"object","properties":{"url":{"type":"string","description":"Absolute URL of the preview image (public, re-checked on every request)"},"kind":{"type":"string","enum":["owner_approved","ai_generated"],"description":"ai_generated: an AI image made from the likeness (the default). owner_approved: a photo of the person that its owner explicitly allowed as a public preview."},"label":{"type":"string","description":"\"Owner-approved preview\" or \"AI · licensed likeness\""}},"required":["url","kind","label"]},"Asset":{"type":"object","properties":{"asset_id":{"type":"string","pattern":"^ip_[a-z2-7]{20}$","description":"Asset (likeness) id: ip_ + 20 characters"},"display_name":{"type":"string"},"age_band":{"anyOf":[{"type":"string","enum":["18-24","25-34","35-44","45-54","55+"]},{"type":"null"}]},"gender":{"anyOf":[{"type":"string","enum":["female","male","non_binary","unspecified"]},{"type":"null"}]},"look_tags":{"type":"array","items":{"type":"string"}},"tier":{"type":"string","enum":["listed","soul_ready"],"description":"listed: browse and quote only. soul_ready: licensing and generation work."},"allowed_use_cases":{"type":"array","items":{"type":"string","enum":["fiction_microdrama_stills","commercial_non_sensitive","social_organic"]}},"territory":{"type":"string","enum":["worldwide","id_only"]},"packs":{"type":"array","items":{"$ref":"#/components/schemas/Pack"}},"previews":{"type":"array","items":{"$ref":"#/components/schemas/Preview"}}},"required":["asset_id","display_name","age_band","gender","look_tags","tier","allowed_use_cases","territory","packs","previews"]},"SearchResult":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/Asset"}},"next_cursor":{"description":"Pass as cursor for the next page; null on the last page","type":["string","null"]}},"required":["results","next_cursor"]},"AssetPolicy":{"type":"object","properties":{"asset_id":{"type":"string","pattern":"^ip_[a-z2-7]{20}$","description":"Asset (likeness) id: ip_ + 20 characters"},"tier":{"type":"string","enum":["listed","soul_ready"],"description":"listed: browse and quote only. soul_ready: licensing and generation work."},"allowed_use_cases":{"type":"array","items":{"type":"string","enum":["fiction_microdrama_stills","commercial_non_sensitive","social_organic"]}},"hard_deny":{"type":"array","items":{"type":"string","enum":["adult","political","religious_campaign","gambling","online_lending","medical_financial_claim","impersonation_other_person"]},"description":"Always denied for every face; not editable by owners"},"territory":{"type":"string","enum":["worldwide","id_only"]},"max_rating":{"type":"string","description":"\"PG13\" in phase 1"},"owner_limits":{"maxItems":5,"type":"array","items":{"type":"string"},"description":"The owner's own limits for this face (up to 5 short texts, e.g. \"No swimwear\"). Every prompt is checked against each; a prompt that goes against one is refused with USE_CASE_NOT_ALLOWED (details.reason = owner_limit, details.limit = the text)."},"review_required":{"type":"boolean","description":"true: every job waits for the owner's approval (202, OWNER_REVIEW_REQUIRED)"},"listing_duration":{"type":"string","enum":["d90","m12","until_revoked"]},"listing_expires_at":{"anyOf":[{"type":"string","description":"ISO 8601, UTC"},{"type":"null"}]},"currency":{"type":"string","enum":["IDR","USD"]},"packs":{"type":"array","items":{"$ref":"#/components/schemas/Pack"}}},"required":["asset_id","tier","allowed_use_cases","hard_deny","territory","max_rating","owner_limits","review_required","listing_duration","listing_expires_at","currency","packs"]},"Quote":{"type":"object","properties":{"asset_id":{"type":"string","pattern":"^ip_[a-z2-7]{20}$","description":"Asset (likeness) id: ip_ + 20 characters"},"pack":{"type":"string","enum":["scout","episode"],"description":"Pack template: scout (20 generations / 30 days) or episode (80 / 60)"},"units":{"type":"integer","minimum":1,"maximum":10},"currency":{"type":"string","enum":["IDR","USD"]},"unit_price":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"gross":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"platform_fee":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"owner_share":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"platform_fee_bps":{"type":"integer","description":"1500 = 15% of gross"},"cap_per_unit":{"type":"integer","minimum":0},"days":{"type":"integer","minimum":0},"total_generations":{"type":"integer","minimum":0},"formatted":{"type":"object","properties":{"unit_price":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""},"gross":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""},"platform_fee":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""},"owner_share":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""}},"required":["unit_price","gross","platform_fee","owner_share"]}},"required":["asset_id","pack","units","currency","unit_price","gross","platform_fee","owner_share","platform_fee_bps","cap_per_unit","days","total_generations","formatted"]},"License":{"type":"object","properties":{"license_id":{"type":"string","pattern":"^lic_[a-z2-7]{20}$","description":"License id: lic_ + 20 characters"},"asset_id":{"type":"string","pattern":"^ip_[a-z2-7]{20}$","description":"Asset (likeness) id: ip_ + 20 characters"},"asset_name":{"type":"string"},"asset_state":{"type":"string","enum":["live","paused","revoked","unavailable"],"description":"paused: jobs are refused until the likeness resumes (a pause by the owner ends the license with a pro rata refund; a pause by our team keeps it)"},"pack":{"type":"string","enum":["scout","episode"],"description":"Pack template: scout (20 generations / 30 days) or episode (80 / 60)"},"pack_name":{"type":"string"},"use_case":{"type":"string","enum":["fiction_microdrama_stills","commercial_non_sensitive","social_organic"]},"territory":{"type":"string","enum":["worldwide","id_only"]},"cap":{"type":"integer","minimum":0},"gens_used":{"type":"integer","minimum":0},"gens_remaining":{"type":"integer","minimum":0},"status":{"type":"string","enum":["active","exhausted","expired","revoked"]},"purchased_at":{"type":"string","description":"ISO 8601, UTC"},"expires_at":{"type":"string","description":"ISO 8601, UTC"},"revoked_at":{"anyOf":[{"type":"string","description":"ISO 8601, UTC"},{"type":"null"}]},"currency":{"type":"string","enum":["IDR","USD"]},"gross":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"platform_fee":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"owner_share":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"formatted":{"type":"object","properties":{"gross":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""},"platform_fee":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""},"owner_share":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""}},"required":["gross","platform_fee","owner_share"]},"consent_id":{"type":"string","pattern":"^cns_[a-z2-7]{20}$","description":"The owner's likeness consent this license rests on"},"consent_version":{"type":"integer"}},"required":["license_id","asset_id","asset_name","asset_state","pack","pack_name","use_case","territory","cap","gens_used","gens_remaining","status","purchased_at","expires_at","revoked_at","currency","gross","platform_fee","owner_share","formatted","consent_id","consent_version"]},"LicenseList":{"type":"object","properties":{"licenses":{"type":"array","items":{"$ref":"#/components/schemas/License"}}},"required":["licenses"]},"Purchase":{"type":"object","properties":{"licenses":{"type":"array","items":{"$ref":"#/components/schemas/License"}},"asset_id":{"type":"string","pattern":"^ip_[a-z2-7]{20}$","description":"Asset (likeness) id: ip_ + 20 characters"},"pack":{"type":"string","enum":["scout","episode"],"description":"Pack template: scout (20 generations / 30 days) or episode (80 / 60)"},"use_case":{"type":"string","enum":["fiction_microdrama_stills","commercial_non_sensitive","social_organic"]},"units":{"type":"integer","minimum":1,"maximum":10},"currency":{"type":"string","enum":["IDR","USD"]},"unit_price":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"gross":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"platform_fee":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"owner_share":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"platform_fee_bps":{"type":"integer"},"balance_after":{"type":"integer","description":"The org's credit balance after this purchase"},"formatted":{"type":"object","properties":{"unit_price":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""},"gross":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""},"platform_fee":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""},"owner_share":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""},"balance_after":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""}},"required":["unit_price","gross","platform_fee","owner_share","balance_after"]}},"required":["licenses","asset_id","pack","use_case","units","currency","unit_price","gross","platform_fee","owner_share","platform_fee_bps","balance_after","formatted"]},"JobOutput":{"type":"object","properties":{"index":{"type":"integer","minimum":1},"output_id":{"description":"Additive. Opaque output id (out_ + 20 characters), the input of the public verify page","type":"string","pattern":"^out_[a-z2-7]{20}$"},"verify_url":{"description":"Additive. Public page (no login) that shows the current license status of this output; also embedded in the file. Content credentials are not signed yet.","type":"string"},"filename":{"type":"string","description":"job_…_N.jpg"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}]},"height":{"anyOf":[{"type":"integer"},{"type":"null"}]},"content_type":{"type":"string"},"url":{"type":"string","description":"Inline view, signed, expires within 1 hour"},"download_url":{"type":"string","description":"Download as filename, signed, expires within 1 hour. Byte-identical to the stored file (metadata kept)."},"thumb_url":{"type":"string","description":"Labeled 512 px thumbnail, signed, expires within 1 hour"},"label":{"type":"string","description":"Shown with every image: \"AI · licensed likeness\""},"urls_expire_at":{"type":"string","description":"ISO 8601, UTC"}},"required":["index","filename","width","height","content_type","url","download_url","thumb_url","label","urls_expire_at"]},"BuyerMessage":{"type":"object","properties":{"code":{"type":"string","enum":["held_for_review","request_not_allowed","output_withheld","hold_expired","rate_limited","access_paused","likeness_unavailable","generic_failed"]},"title":{"type":"string"},"message":{"type":"string"}},"required":["code","title","message"]},"Job":{"type":"object","properties":{"job_id":{"type":"string","pattern":"^job_[a-z2-7]{20}$","description":"Job id: job_ + 20 characters"},"asset_id":{"type":"string","pattern":"^ip_[a-z2-7]{20}$","description":"Asset (likeness) id: ip_ + 20 characters"},"asset_name":{"type":"string"},"license_id":{"type":"string","pattern":"^lic_[a-z2-7]{20}$","description":"License id: lic_ + 20 characters"},"pack":{"type":"string","enum":["scout","episode"],"description":"Pack template: scout (20 generations / 30 days) or episode (80 / 60)"},"pack_name":{"type":"string"},"use_case":{"type":"string","enum":["fiction_microdrama_stills","commercial_non_sensitive","social_organic"]},"prompt":{"type":"string"},"aspect_ratio":{"type":"string","enum":["1:1","4:3","3:4","3:2","2:3","5:4","4:5","16:9","9:16","21:9"]},"batch_size":{"anyOf":[{"type":"number","const":1},{"type":"number","const":4}]},"status":{"type":"string","enum":["held","queued","submitted","completed","failed","denied","cancelled"]},"hold":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","enum":["MANUAL_REVIEW","OWNER_REVIEW_REQUIRED","ABUSE_HOLD"]},"message":{"type":"string"},"expires_at":{"anyOf":[{"type":"string","description":"ISO 8601, UTC"},{"type":"null"}]}},"required":["code","message","expires_at"]},{"type":"null"}],"description":"While held: who it waits for, and until when"},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]},{"type":"null"}],"description":"For denied, failed and cancelled jobs (job outcome codes)"},"gens_charged":{"type":"integer","minimum":0,"description":"Generations this job holds on its license right now (0 once released)"},"outputs":{"type":"array","items":{"$ref":"#/components/schemas/JobOutput"},"description":"Completed jobs only"},"label":{"description":"\"AI-generated image with licensed likeness\" once completed (also embedded in every file)","type":["string","null"]},"consent_version":{"type":"integer","description":"The likeness consent text version in force when the job started"},"created_at":{"type":"string","description":"ISO 8601, UTC"},"submitted_at":{"anyOf":[{"type":"string","description":"ISO 8601, UTC"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string","description":"ISO 8601, UTC"},{"type":"null"}]},"ended_at":{"anyOf":[{"type":"string","description":"ISO 8601, UTC"},{"type":"null"}]},"withdrawn":{"description":"Set when a takedown proved the face was someone else's: the outputs were deleted (status stays completed, outputs is empty). Stop using any copies.","anyOf":[{"type":"object","properties":{"code":{"type":"string","const":"WITHDRAWN_TAKEDOWN"},"message":{"type":"string"},"at":{"type":"string","description":"ISO 8601, UTC"}},"required":["code","message","at"]},{"type":"null"}]},"buyer_message":{"description":"Additive. One neutral human message per outcome for held, denied, failed and cancelled jobs (the same wording for every reason). Branch on the machine codes, show this to people.","anyOf":[{"$ref":"#/components/schemas/BuyerMessage"},{"type":"null"}]},"phase":{"description":"Additive. One stable value for a progress screen: held -> held_for_review, submitted -> running, failed and denied -> failed. `status` keeps the raw state.","type":"string","enum":["queued","held_for_review","running","completed","failed","cancelled"]},"terminal":{"description":"Additive. True once the job will not change again: stop polling.","type":"boolean"},"poll_after_ms":{"description":"Additive. Wait this long before polling again (2000 while queued or running, 30000 while held for review); null when terminal.","anyOf":[{"type":"integer"},{"type":"null"}]}},"required":["job_id","asset_id","asset_name","license_id","pack","pack_name","use_case","prompt","aspect_ratio","batch_size","status","hold","error","gens_charged","outputs","label","consent_version","created_at","submitted_at","completed_at","ended_at"]},"JobStart":{"type":"object","properties":{"job":{"$ref":"#/components/schemas/Job"},"outcome":{"type":"string","enum":["queued","held"]}},"required":["job","outcome"]},"JobListItem":{"type":"object","properties":{"job_id":{"type":"string","pattern":"^job_[a-z2-7]{20}$","description":"Job id: job_ + 20 characters"},"asset_id":{"type":"string","pattern":"^ip_[a-z2-7]{20}$","description":"Asset (likeness) id: ip_ + 20 characters"},"asset_name":{"type":"string"},"pack_name":{"type":"string"},"status":{"type":"string","enum":["held","queued","submitted","completed","failed","denied","cancelled"]},"hold_code":{"type":["string","null"]},"error_code":{"type":["string","null"]},"batch_size":{"anyOf":[{"type":"number","const":1},{"type":"number","const":4}]},"aspect_ratio":{"type":"string","enum":["1:1","4:3","3:4","3:2","2:3","5:4","4:5","16:9","9:16","21:9"]},"outputs":{"type":"integer","minimum":0},"prompt_preview":{"type":"string"},"created_at":{"type":"string","description":"ISO 8601, UTC"},"buyer_message":{"description":"Additive. The neutral human message for held, denied, failed and cancelled jobs.","anyOf":[{"$ref":"#/components/schemas/BuyerMessage"},{"type":"null"}]},"phase":{"description":"Additive. Same as Job.phase.","type":"string","enum":["queued","held_for_review","running","completed","failed","cancelled"]}},"required":["job_id","asset_id","asset_name","pack_name","status","hold_code","error_code","batch_size","aspect_ratio","outputs","prompt_preview","created_at"]},"JobList":{"type":"object","properties":{"jobs":{"type":"array","items":{"$ref":"#/components/schemas/JobListItem"}}},"required":["jobs"]},"UsageJob":{"type":"object","properties":{"job_id":{"type":"string","pattern":"^job_[a-z2-7]{20}$","description":"Job id: job_ + 20 characters"},"created_at":{"type":"string","description":"ISO 8601, UTC"},"completed_at":{"anyOf":[{"type":"string","description":"ISO 8601, UTC"},{"type":"null"}]},"buyer_org_id":{"type":"string","pattern":"^org_[a-z2-7]{20}$","description":"Buyer org id: org_ + 20 characters"},"buyer_org":{"type":"string","description":"The buyer org's display name (never a person)"},"license_id":{"type":"string","pattern":"^lic_[a-z2-7]{20}$","description":"License id: lic_ + 20 characters"},"pack":{"type":"string","enum":["scout","episode"],"description":"Pack template: scout (20 generations / 30 days) or episode (80 / 60)"},"pack_name":{"type":"string"},"use_case":{"type":"string","enum":["fiction_microdrama_stills","commercial_non_sensitive","social_organic"]},"status":{"type":"string","enum":["held","queued","submitted","completed","failed","denied","cancelled"]},"withheld":{"type":"boolean","description":"Generated but never released: the likeness was revoked before delivery"},"outcome":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]},{"type":"null"}]},"batch_size":{"anyOf":[{"type":"number","const":1},{"type":"number","const":4}]},"gens_charged":{"type":"integer","minimum":0},"gens_reserved":{"type":"integer","minimum":0},"prompt_summary":{"type":"string","description":"Redacted (no contact details, links or handles), about 140 characters"},"thumbnails":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"url":{"type":"string","description":"Signed, expires within 1 hour"},"label":{"type":"string"}},"required":["index","url","label"]}},"thumbnails_expire_at":{"anyOf":[{"type":"string","description":"ISO 8601, UTC"},{"type":"null"}]},"gross_alloc":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"fee_alloc":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"net_alloc":{"type":"integer","description":"What this job earned the owner (its share of the license)"},"formatted":{"type":"object","properties":{"gross_alloc":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""},"fee_alloc":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""},"net_alloc":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""}},"required":["gross_alloc","fee_alloc","net_alloc"]}},"required":["job_id","created_at","completed_at","buyer_org_id","buyer_org","license_id","pack","pack_name","use_case","status","withheld","outcome","batch_size","gens_charged","gens_reserved","prompt_summary","thumbnails","thumbnails_expire_at","gross_alloc","fee_alloc","net_alloc","formatted"]},"UsageLicense":{"type":"object","properties":{"license_id":{"type":"string","pattern":"^lic_[a-z2-7]{20}$","description":"License id: lic_ + 20 characters"},"purchased_at":{"type":"string","description":"ISO 8601, UTC"},"buyer_org_id":{"type":"string","pattern":"^org_[a-z2-7]{20}$","description":"Buyer org id: org_ + 20 characters"},"buyer_org":{"type":"string"},"pack":{"type":"string","enum":["scout","episode"],"description":"Pack template: scout (20 generations / 30 days) or episode (80 / 60)"},"pack_name":{"type":"string"},"use_case":{"type":"string","enum":["fiction_microdrama_stills","commercial_non_sensitive","social_organic"]},"territory":{"type":"string","enum":["worldwide","id_only"]},"status":{"type":"string","enum":["active","exhausted","expired","revoked"]},"expires_at":{"type":"string","description":"ISO 8601, UTC"},"revoked_at":{"anyOf":[{"type":"string","description":"ISO 8601, UTC"},{"type":"null"}]},"cap":{"type":"integer","minimum":0},"gens_used":{"type":"integer","minimum":0},"gens_consumed":{"type":"integer","minimum":0},"gens_reserved":{"type":"integer","minimum":0},"gross":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"platform_fee":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"owner_net":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"gross_alloc":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"fee_alloc":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"net_alloc":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"formatted":{"type":"object","properties":{"gross":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""},"platform_fee":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""},"owner_net":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""},"gross_alloc":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""},"fee_alloc":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""},"net_alloc":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""}},"required":["gross","platform_fee","owner_net","gross_alloc","fee_alloc","net_alloc"]}},"required":["license_id","purchased_at","buyer_org_id","buyer_org","pack","pack_name","use_case","territory","status","expires_at","revoked_at","cap","gens_used","gens_consumed","gens_reserved","gross","platform_fee","owner_net","gross_alloc","fee_alloc","net_alloc","formatted"]},"UsageReport":{"type":"object","properties":{"asset_id":{"type":"string","pattern":"^ip_[a-z2-7]{20}$","description":"Asset (likeness) id: ip_ + 20 characters"},"display_name":{"type":"string"},"asset_status":{"type":"string"},"tier":{"type":"string"},"paused_at":{"anyOf":[{"type":"string","description":"ISO 8601, UTC"},{"type":"null"}]},"currency":{"type":"string","enum":["IDR","USD"]},"filters":{"type":"object","properties":{"from":{"type":["string","null"]},"to":{"type":["string","null"]},"buyer_org_id":{"anyOf":[{"type":"string","pattern":"^org_[a-z2-7]{20}$","description":"Buyer org id: org_ + 20 characters"},{"type":"null"}]},"pack":{"anyOf":[{"type":"string","enum":["scout","episode"],"description":"Pack template: scout (20 generations / 30 days) or episode (80 / 60)"},{"type":"null"}]}},"required":["from","to","buyer_org_id","pack"]},"earned":{"type":"object","properties":{"licenses_sold":{"type":"integer","minimum":0},"gross":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"platform_fee":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"owner_net":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"formatted":{"type":"object","properties":{"gross":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""},"platform_fee":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""},"owner_net":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""}},"required":["gross","platform_fee","owner_net"]}},"required":["licenses_sold","gross","platform_fee","owner_net","formatted"],"description":"The money truth: the licenses' ledger rows"},"used":{"type":"object","properties":{"jobs_completed":{"type":"integer","minimum":0},"gens_consumed":{"type":"integer","minimum":0},"gross_alloc":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"fee_alloc":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"net_alloc":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"formatted":{"type":"object","properties":{"gross_alloc":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""},"fee_alloc":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""},"net_alloc":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""}},"required":["gross_alloc","fee_alloc","net_alloc"]}},"required":["jobs_completed","gens_consumed","gross_alloc","fee_alloc","net_alloc","formatted"],"description":"Completed jobs' share of their licenses"},"generations":{"type":"object","properties":{"cap":{"type":"integer","minimum":0},"used":{"type":"integer","minimum":0},"consumed":{"type":"integer","minimum":0},"reserved":{"type":"integer","minimum":0},"remaining":{"type":"integer","minimum":0}},"required":["cap","used","consumed","reserved","remaining"]},"blocked":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"categories":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"label":{"type":"string"},"kind":{"type":"string","enum":["policy","other"]},"count":{"type":"integer","minimum":0}},"required":["code","label","kind","count"]}}},"required":["total","categories"],"description":"Attempts your policy stopped: counts only"},"waiting_now":{"type":"object","properties":{"total":{"type":"integer","minimum":0},"owner_review":{"type":"integer","minimum":0},"staff_review":{"type":"integer","minimum":0}},"required":["total","owner_review","staff_review"]},"licenses":{"type":"array","items":{"$ref":"#/components/schemas/UsageLicense"}},"licenses_truncated":{"type":"boolean"},"jobs":{"type":"array","items":{"$ref":"#/components/schemas/UsageJob"},"description":"One page, newest first"},"next_cursor":{"type":["string","null"]}},"required":["asset_id","display_name","asset_status","tier","paused_at","currency","filters","earned","used","generations","blocked","waiting_now","licenses","licenses_truncated","jobs","next_cursor"]},"PauseResult":{"type":"object","properties":{"asset_id":{"type":"string","pattern":"^ip_[a-z2-7]{20}$","description":"Asset (likeness) id: ip_ + 20 characters"},"status":{"type":"string","const":"paused"},"paused_at":{"anyOf":[{"type":"string","description":"ISO 8601, UTC"},{"type":"null"}]},"changed":{"type":"boolean","description":"false: it was already paused"},"stopped_jobs":{"type":"object","properties":{"cancelled":{"type":"integer","minimum":0,"description":"Held or queued jobs cancelled, generations returned"},"cancel_requested":{"type":"integer","minimum":0,"description":"In-flight jobs a cancel was sent for"}},"required":["cancelled","cancel_requested"]},"note":{"type":"string"}},"required":["asset_id","status","paused_at","changed","stopped_jobs","note"]},"ResumeResult":{"type":"object","properties":{"asset_id":{"type":"string","pattern":"^ip_[a-z2-7]{20}$","description":"Asset (likeness) id: ip_ + 20 characters"},"status":{"type":"string","const":"live"},"paused_at":{"type":"null"},"changed":{"type":"boolean"},"note":{"type":"string"}},"required":["asset_id","status","paused_at","changed","note"]},"MeBuyer":{"type":"object","properties":{"type":{"type":"string","const":"api_key"},"scopes":{"type":"array","prefixItems":[{"type":"string","const":"buyer"}],"items":false,"minItems":1,"maxItems":1},"key":{"type":"object","properties":{"key_id":{"type":"string","pattern":"^key_[a-z2-7]{20}$","description":"API key id: key_ + 20 characters"},"name":{"type":"string"},"prefix":{"type":"string"},"created_at":{"type":"string","description":"ISO 8601, UTC"},"last_used_at":{"anyOf":[{"type":"string","description":"ISO 8601, UTC"},{"type":"null"}]}},"required":["key_id","name","prefix","created_at","last_used_at"]},"org":{"type":"object","properties":{"org_id":{"type":"string","pattern":"^org_[a-z2-7]{20}$","description":"Buyer org id: org_ + 20 characters"},"name":{"type":"string"},"status":{"type":"string","const":"approved"},"distribution_territory":{"type":"string","enum":["worldwide","id_only"]}},"required":["org_id","name","status","distribution_territory"]},"credits":{"type":"object","properties":{"balance":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"currency":{"type":"string","enum":["IDR","USD"]},"formatted":{"type":"string","description":"Display string, e.g. \"Rp3.840.000\""}},"required":["balance","currency","formatted"]},"rate_limit":{"type":"object","properties":{"limit":{"type":"integer"},"window_seconds":{"type":"integer"}},"required":["limit","window_seconds"]}},"required":["type","scopes","key","org","credits","rate_limit"]},"MeOwner":{"type":"object","properties":{"type":{"type":"string","const":"owner_token"},"scopes":{"type":"array","prefixItems":[{"type":"string","const":"owner"}],"items":false,"minItems":1,"maxItems":1},"token":{"type":"object","properties":{"token_id":{"type":"string","pattern":"^otk_[a-z2-7]{20}$","description":"Owner token id: otk_ + 20 characters"},"name":{"type":"string"},"prefix":{"type":"string"},"created_at":{"type":"string","description":"ISO 8601, UTC"},"last_used_at":{"anyOf":[{"type":"string","description":"ISO 8601, UTC"},{"type":"null"}]}},"required":["token_id","name","prefix","created_at","last_used_at"]},"owner":{"type":"object","properties":{"display_name":{"type":["string","null"]}},"required":["display_name"]},"assets":{"type":"array","items":{"type":"object","properties":{"asset_id":{"type":"string","pattern":"^ip_[a-z2-7]{20}$","description":"Asset (likeness) id: ip_ + 20 characters"},"display_name":{"type":"string"},"status":{"type":"string"},"tier":{"type":"string"}},"required":["asset_id","display_name","status","tier"]}},"rate_limit":{"type":"object","properties":{"limit":{"type":"integer"},"window_seconds":{"type":"integer"}},"required":["limit","window_seconds"]}},"required":["type","scopes","token","owner","assets","rate_limit"]},"Me":{"anyOf":[{"$ref":"#/components/schemas/MeBuyer"},{"$ref":"#/components/schemas/MeOwner"}]},"OpenApiDocument":{"type":"object","properties":{"openapi":{"type":"string"},"info":{"type":"object","properties":{"title":{"type":"string"},"version":{"type":"string"}},"required":["title","version"],"additionalProperties":{}},"paths":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["openapi","info","paths"],"additionalProperties":{}},"QuoteRequest":{"type":"object","properties":{"asset_id":{"type":"string","pattern":"^ip_[a-z2-7]{20}$","description":"Asset (likeness) id: ip_ + 20 characters"},"pack":{"type":"string","enum":["scout","episode"],"description":"Pack template: scout (20 generations / 30 days) or episode (80 / 60)"},"units":{"description":"1-10, default 1. One unit = one license.","type":"integer","minimum":1,"maximum":10}},"required":["asset_id","pack"],"additionalProperties":false},"PurchaseRequest":{"type":"object","properties":{"asset_id":{"type":"string","pattern":"^ip_[a-z2-7]{20}$","description":"Asset (likeness) id: ip_ + 20 characters"},"pack":{"type":"string","enum":["scout","episode"],"description":"Pack template: scout (20 generations / 30 days) or episode (80 / 60)"},"use_case":{"type":"string","enum":["fiction_microdrama_stills","commercial_non_sensitive","social_organic"],"description":"Must be in the face's allowed_use_cases"},"units":{"description":"1-10, default 1","type":"integer","minimum":1,"maximum":10}},"required":["asset_id","pack","use_case"],"additionalProperties":false},"StartJobRequest":{"type":"object","properties":{"asset_id":{"type":"string","pattern":"^ip_[a-z2-7]{20}$","description":"Asset (likeness) id: ip_ + 20 characters"},"pack_id":{"description":"The pack's pk_ id from packs[].pack_id (the pack name scout / episode works too). Uses your license of that pack with the most generations left. Send pack_id or license_id.","type":"string"},"license_id":{"description":"A specific license of yours for this face","type":"string","pattern":"^lic_[a-z2-7]{20}$"},"prompt":{"type":"string","minLength":3,"maxLength":2000,"description":"PG-13 at most; nothing in the hard-deny list; no real people other than this face"},"aspect_ratio":{"type":"string","enum":["1:1","4:3","3:4","3:2","2:3","5:4","4:5","16:9","9:16","21:9"]},"batch_size":{"description":"1 (default) or 4 images; each counts against the license cap","anyOf":[{"type":"number","const":1},{"type":"number","const":4}]}},"required":["asset_id","prompt","aspect_ratio"],"additionalProperties":false},"CancelJobResult":{"type":"object","properties":{"job_id":{"type":"string","pattern":"^job_[a-z2-7]{20}$","description":"Job id: job_ + 20 characters"},"status":{"type":"string","const":"cancelled"},"changed":{"type":"boolean","description":"false when it was already cancelled by you (nothing written)"},"generations_returned":{"type":"integer","minimum":0,"description":"Generations given back to the licence (0 for a held job: holds reserve nothing)"},"message":{"type":"string"}},"required":["job_id","status","changed","generations_returned","message"]},"JobRequest":{"type":"object","properties":{"request_id":{"type":"string","pattern":"^jrq_[a-z2-7]{20}$","description":"jrq_…"},"job_id":{"type":"string","pattern":"^job_[a-z2-7]{20}$","description":"Job id: job_ + 20 characters"},"output_id":{"description":"The image it is about (out_…), or null for the whole job","type":["string","null"]},"kind":{"type":"string","enum":["review","problem"]},"category":{"type":"string"},"details":{"type":["string","null"]},"status":{"type":"string","enum":["open","resolved"]},"resolution":{"description":"Our team's answer once resolved","type":["string","null"]},"created_at":{"type":"string"},"resolved_at":{"type":["string","null"]}},"required":["request_id","job_id","output_id","kind","category","details","status","resolution","created_at","resolved_at"]},"JobRequestResponse":{"type":"object","properties":{"request":{"$ref":"#/components/schemas/JobRequest"},"created":{"type":"boolean","description":"false: an open one already existed and is returned"}},"required":["request","created"]},"ReviewRequestBody":{"type":"object","properties":{"category":{"type":"string","enum":["quality","likeness_mismatch","label_missing","other"]},"output_id":{"description":"out_… of one image of this job","type":"string"},"details":{"type":"string","maxLength":1000}},"required":["category"],"additionalProperties":false},"ProblemReportBody":{"type":"object","properties":{"category":{"type":"string","enum":["broken_file","wrong_output","offensive","rights_concern","other"]},"output_id":{"description":"out_… of one image of this job","type":"string"},"details":{"type":"string","maxLength":1000}},"required":["category"],"additionalProperties":false},"Payout":{"type":"object","properties":{"payout_id":{"type":"string","pattern":"^pay_[a-z2-7]{20}$","description":"Payout id: pay_ + 20 characters"},"owner_user_id":{"type":"string","pattern":"^usr_[a-z2-7]{20}$"},"amount_cents":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"amount_minor":{"type":"integer","description":"Same as amount_cents (D10 name): integer minor units of currency"},"currency":{"type":"string","enum":["IDR","USD"]},"formatted":{"type":"string"},"kind":{"type":"string","enum":["request","closure"],"description":"request: the owner asked; closure: the remaining balance paid on account closure (D10 C3, no minimum)"},"status":{"type":"string","enum":["requested","held","approved","paid","failed","cancelled"],"description":"requested -> held (until hold_until) -> approved (two admins) -> paid | failed | cancelled"},"hold_until":{"type":"string","description":"ISO 8601, UTC"},"approvals":{"type":"integer","minimum":0,"maximum":2,"description":"How many admins approved so far (two are needed)"},"paid_at":{"anyOf":[{"type":"string","description":"ISO 8601, UTC"},{"type":"null"}]},"fail_reason":{"type":["string","null"]},"reference":{"description":"Rail reference. stub in V1: no money moves.","type":["string","null"]},"created_at":{"type":"string","description":"ISO 8601, UTC"},"updated_at":{"type":"string","description":"ISO 8601, UTC"}},"required":["payout_id","owner_user_id","amount_cents","amount_minor","currency","formatted","kind","status","hold_until","approvals","paid_at","fail_reason","reference","created_at","updated_at"]},"PayoutResponse":{"type":"object","properties":{"payout":{"$ref":"#/components/schemas/Payout"}},"required":["payout"]},"PayoutList":{"type":"object","properties":{"payouts":{"type":"array","items":{"$ref":"#/components/schemas/Payout"}},"next_cursor":{"description":"Pass as cursor for the next page; null on the last page","type":["string","null"]}},"required":["payouts","next_cursor"]},"EarningsEntry":{"type":"object","properties":{"entry_id":{"type":"string"},"type":{"type":"string","enum":["owner_share","payout"],"description":"owner_share: earned on a license (a negative one is a clawback). payout: paid out."},"amount_cents":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"formatted":{"type":"string"},"asset_id":{"type":["string","null"]},"license_id":{"type":["string","null"]},"payout_id":{"type":["string","null"]},"memo":{"type":["string","null"]},"created_at":{"type":"string","description":"ISO 8601, UTC"}},"required":["entry_id","type","amount_cents","formatted","asset_id","license_id","payout_id","memo","created_at"]},"Earnings":{"type":"object","properties":{"currency":{"type":"string","enum":["IDR","USD"]},"balance_cents":{"type":"integer","description":"Earned minus clawbacks minus paid out (the ledger balance)"},"available_cents":{"type":"integer","description":"What can be requested now: earnings past the hold with no open report, minus paid payouts and payouts in progress"},"pending_cents":{"type":"integer","description":"Payouts requested, held or approved but not paid yet"},"held_cents":{"type":"integer","description":"The part of pending whose payout status is held (waiting for approval)"},"on_hold_cents":{"type":"integer","description":"Earnings younger than hold_days: not payable yet"},"withheld_cents":{"type":"integer","description":"Earnings past the hold, withheld while a report about the likeness is open"},"released_cents":{"type":"integer","description":"Earnings past the hold with no open report, before payouts"},"next_release_at":{"anyOf":[{"type":"string","description":"ISO 8601, UTC"},{"type":"null"}],"description":"When the next on-hold earning becomes payable"},"lifetime_earned_cents":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"paid_out_cents":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"min_payout_cents":{"type":"integer","description":"Integer minor units of the currency (IDR: whole rupiah; D10)"},"hold_days":{"type":"integer","description":"The earnings hold in days (DRAFT, PAYOUT_HOLD_DAYS)"},"formatted":{"type":"object","properties":{"balance":{"type":"string"},"available":{"type":"string"},"pending":{"type":"string"},"held":{"type":"string"},"on_hold":{"type":"string"},"withheld":{"type":"string"},"lifetime_earned":{"type":"string"},"paid_out":{"type":"string"}},"required":["balance","available","pending","held","on_hold","withheld","lifetime_earned","paid_out"]},"entries":{"type":"array","items":{"$ref":"#/components/schemas/EarningsEntry"}},"next_cursor":{"type":["string","null"]}},"required":["currency","balance_cents","available_cents","pending_cents","held_cents","on_hold_cents","withheld_cents","released_cents","next_release_at","lifetime_earned_cents","paid_out_cents","min_payout_cents","hold_days","formatted","entries","next_cursor"]},"PayoutRequest":{"type":"object","properties":{"amount_cents":{"type":"integer","minimum":1,"description":"minor units, IDR rupiah. At least min_payout_cents, at most available_cents."}},"required":["amount_cents"],"additionalProperties":false},"WebhookEndpoint":{"type":"object","properties":{"webhook_id":{"type":"string","pattern":"^whe_[a-z2-7]{20}$","description":"whe_…"},"url":{"type":"string"},"description":{"type":["string","null"]},"events":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["active","disabled"]},"disabled_reason":{"anyOf":[{"type":"string","enum":["manual","failing"]},{"type":"null"}],"description":"failing: 5 deliveries in a row failed every attempt (DRAFT number)"},"disabled_at":{"type":["string","null"]},"consecutive_failures":{"type":"integer","minimum":0},"secret_version":{"type":"integer","minimum":1},"created_at":{"type":"string"},"stats":{"type":"object","properties":{"succeeded":{"type":"integer","minimum":0},"failed":{"type":"integer","minimum":0,"description":"Deliveries that failed every attempt"},"retrying":{"type":"integer","minimum":0,"description":"Deliveries waiting for their next attempt after a failure"},"last_delivery_at":{"type":["string","null"]}},"required":["succeeded","failed","retrying","last_delivery_at"]}},"required":["webhook_id","url","description","events","status","disabled_reason","disabled_at","consecutive_failures","secret_version","created_at","stats"]},"WebhookDelivery":{"type":"object","properties":{"delivery_id":{"type":"string","pattern":"^whd_[a-z2-7]{20}$"},"event_id":{"type":"string","pattern":"^evt_[a-z2-7]{20}$","description":"The webhook-id header of every attempt"},"type":{"type":"string","enum":["job.completed","job.failed","webhook.test"]},"job_id":{"type":["string","null"]},"status":{"type":"string","enum":["pending","succeeded","failed"]},"retrying":{"type":"boolean"},"attempts":{"type":"integer","minimum":0},"last_status_code":{"anyOf":[{"type":"integer"},{"type":"null"}]},"last_error":{"type":["string","null"]},"next_attempt_at":{"type":["string","null"]},"delivered_at":{"type":["string","null"]},"test":{"type":"boolean"},"created_at":{"type":"string"}},"required":["delivery_id","event_id","type","job_id","status","retrying","attempts","last_status_code","last_error","next_attempt_at","delivered_at","test","created_at"]},"CreateWebhookBody":{"type":"object","properties":{"url":{"type":"string","description":"A public https URL"},"events":{"description":"Default: every event","minItems":1,"type":"array","items":{"type":"string","enum":["job.completed","job.failed"]}},"description":{"type":"string","maxLength":200}},"required":["url"],"additionalProperties":false},"CreatedWebhook":{"type":"object","properties":{"webhook":{"$ref":"#/components/schemas/WebhookEndpoint"},"secret":{"type":"string","pattern":"^whsec_","description":"The signing secret (Standard Webhooks). Shown once: store it now."}},"required":["webhook","secret"]},"WebhookList":{"type":"object","properties":{"webhooks":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEndpoint"}}},"required":["webhooks"]},"WebhookStatusChange":{"type":"object","properties":{"webhook":{"$ref":"#/components/schemas/WebhookEndpoint"},"changed":{"type":"boolean"}},"required":["webhook","changed"]},"WebhookTestDelivery":{"type":"object","properties":{"delivery":{"$ref":"#/components/schemas/WebhookDelivery"}},"required":["delivery"]},"WebhookDeliveryList":{"type":"object","properties":{"webhook_id":{"type":"string","pattern":"^whe_[a-z2-7]{20}$","description":"whe_…"},"deliveries":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDelivery"}}},"required":["webhook_id","deliveries"]}},"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","bearerFormat":"sk_live_…","description":"Buyer API key of an approved buyer org (console → API keys). Shown once at creation."},"ownerToken":{"type":"http","scheme":"bearer","bearerFormat":"ot_…","description":"Owner token for the owner's own assets (console → Settings → Owner tokens). Shown once at creation."}}},"x-error-codes":[{"code":"UNAUTHENTICATED","status":401,"retryable":false,"meaning":"No valid credential. details.reason: missing, malformed, unknown, revoked or disabled (the key's creator no longer has access, or the owner account is banned).","action":"Send Authorization: Bearer with a working key or token. A revoked or disabled key never comes back: create a new one in the console."},{"code":"FORBIDDEN","status":403,"retryable":false,"meaning":"The wrong kind of credential for this endpoint. details.required_scope is buyer (an API key) or owner (an owner token).","action":"Call with the credential named in details.required_scope."},{"code":"ACCOUNT_PENDING","status":403,"retryable":false,"meaning":"Your buyer org is still under review (decision D1: the API is for approved orgs). details.status = pending.","action":"Wait for the review decision (we email you). Nothing to retry until then."},{"code":"ACCOUNT_REJECTED","status":403,"retryable":false,"meaning":"Your buyer org was not approved or is suspended (details.status: rejected or suspended).","action":"Stop calling; contact support. Keys of this org don't work."},{"code":"RATE_LIMITED","status":429,"retryable":true,"meaning":"More than 60 requests a minute on this key or token (details.scope = credential), too many failed authentications from your network (details.scope = ip), or the call check slowed this key down because its recent calls look like scraping or policy probing (details.scope = call_check, details.category).","action":"Wait Retry-After seconds (details.retry_after_seconds), then retry the same request."},{"code":"CALL_BLOCKED","status":403,"retryable":false,"meaning":"The call check blocked this key or token for a while: its recent calls look like scraping or enumeration, or like targeting a real person (details.category, details.blocked_for_seconds). Our team reviews every block.","action":"Stop and look at what your integration is doing. Calls are refused until details.blocked_for_seconds pass; contact support if this is a mistake."},{"code":"VALIDATION_FAILED","status":422,"retryable":false,"meaning":"The request is malformed. details.fields names each problem by the field or parameter you sent.","action":"Fix the named fields and send again. Unknown fields and parameters are refused, not ignored."},{"code":"NOT_FOUND","status":404,"retryable":false,"meaning":"No such resource for this credential. Another org's job and another owner's asset look exactly like missing ones.","action":"Check the id (ip_, job_, lic_ …). Don't retry unchanged."},{"code":"IDEMPOTENCY_KEY_REUSED","status":422,"retryable":false,"meaning":"This Idempotency-Key already did a different request in the last 24 hours.","action":"Use a new key for a new request; reuse a key only to retry the identical request."},{"code":"INSUFFICIENT_CREDITS","status":402,"retryable":false,"meaning":"The org's credit balance doesn't cover the purchase. details: balance, required, shortfall (minor units, IDR rupiah).","action":"A member of your org requests a top-up in the console (credits are invoiced), then retry."},{"code":"LICENSE_DENIED","status":403,"retryable":false,"meaning":"No license for this. details.reason: pack_not_offered (details.offered lists the packs), no_active_license or pack_not_found (details.hint = purchase_license), not_found, other_asset, revoked, pack_mismatch.","action":"With hint purchase_license: buy a license (POST /licenses) and start the job again. With pack_not_offered: pick a pack from details.offered."},{"code":"USE_CASE_NOT_ALLOWED","status":403,"retryable":false,"meaning":"The use case isn't allowed for this face (details.allowed_use_cases), is hard-denied (details.reason = hard_denied), the prompt doesn't fit the license's use case, or it goes against one of the owner's limits (details.reason = owner_limit, details.limit = the text; see owner_limits in get_asset_policy).","action":"Choose an allowed use case, or rewrite the prompt to fit the licensed use."},{"code":"TERRITORY_MISMATCH","status":403,"retryable":false,"meaning":"The owner licenses this face for ID-only distribution and your org distributes worldwide.","action":"Choose another face; the territory is the owner's choice."},{"code":"DENY_ADULT","status":403,"retryable":false,"meaning":"The prompt is adult or sexual, or above PG-13 (details.reason = above_pg13).","action":"Rewrite the prompt. The same prompt gets the same answer."},{"code":"DENY_POLITICAL","status":403,"retryable":false,"meaning":"The prompt is political (parties, candidates, elections, campaigns).","action":"Rewrite the prompt. The same prompt gets the same answer."},{"code":"DENY_RELIGIOUS","status":403,"retryable":false,"meaning":"The prompt is religious campaigning.","action":"Rewrite the prompt. The same prompt gets the same answer."},{"code":"DENY_GAMBLING","status":403,"retryable":false,"meaning":"The prompt promotes gambling.","action":"Rewrite the prompt. The same prompt gets the same answer."},{"code":"DENY_LENDING","status":403,"retryable":false,"meaning":"The prompt promotes online lending or loans.","action":"Rewrite the prompt. The same prompt gets the same answer."},{"code":"DENY_CLAIM","status":403,"retryable":false,"meaning":"The prompt makes a medical or financial claim.","action":"Rewrite the prompt. The same prompt gets the same answer."},{"code":"DENY_IMPERSONATION","status":403,"retryable":false,"meaning":"The prompt casts the face as another real person.","action":"The face may appear only as itself or a fictional character."},{"code":"ASSET_PAUSED","status":409,"retryable":false,"meaning":"Future use of this face is paused; new jobs are refused. A pause by the owner ends active licenses with a pro rata credit refund (D10 C4).","action":"Don't retry in a loop. Choose another face, or check get_asset_policy later: the owner may resume."},{"code":"ASSET_REVOKED","status":409,"retryable":false,"meaning":"The owner revoked the likeness. Its licenses are revoked; finished jobs stay yours.","action":"Choose another face. Future use is over."},{"code":"ASSET_NOT_LIVE","status":409,"retryable":false,"meaning":"The face isn't offered right now (details.reason: not_live, not_listed, not_published, listing_expired).","action":"Choose another face."},{"code":"NOT_SOUL_READY","status":409,"retryable":false,"meaning":"The face can't generate: it is Listed (browse and quote only) or needs retraining (details.reason: listed, no_reference, retrain_required).","action":"Quote it if you like; license and generate with a soul_ready face."},{"code":"CONSENT_REQUIRED","status":409,"retryable":false,"meaning":"The owner's likeness consent behind the trained reference is no longer active.","action":"Choose another face."},{"code":"CAP_REACHED","status":409,"retryable":false,"meaning":"The license has fewer generations left than batch_size (details.remaining, cap).","action":"Use batch_size 1, another license, or buy a new one."},{"code":"LICENSE_EXPIRED","status":409,"retryable":false,"meaning":"The license's window ended (details.expired_at).","action":"Buy a new license."},{"code":"INVALID_STATE","status":409,"retryable":false,"meaning":"The asset can't make this change from its current status (details.status), e.g. pausing a revoked face; or a payout request that can't be made (details.reason: insufficient_balance with available_cents, payout_open with payout_id when one is already in progress, or kyc_required).","action":"Read the status (GET /me lists your assets); don't retry unchanged."},{"code":"INTERNAL","status":500,"retryable":true,"meaning":"Unexpected server error.","action":"Retry with backoff. If it persists, contact support with error.request_id."}],"x-job-outcome-codes":[{"code":"GENERATION_FAILED","meaning":"The generation failed on our provider's side. The generations were returned to your license; try again."},{"code":"GENERATION_NSFW","meaning":"This generation couldn't be completed: our provider's content check declined it. The generations were returned to your license. Try a different prompt."},{"code":"GENERATION_TIMEOUT","meaning":"The generation took too long and was stopped. The generations were returned to your license."},{"code":"PROVIDER_ERROR","meaning":"A technical problem stopped this job. The generations were returned to your license; try again."},{"code":"HOLD_EXPIRED","meaning":"Nobody reviewed this request within 72 hours, so it was cancelled. Nothing was charged."},{"code":"OUTPUT_WITHHELD","meaning":"The finished images didn't pass our output check, so they were not released. The generations were returned to your license."},{"code":"ASSET_PAUSED","meaning":"This likeness is currently paused. Nothing was generated and no generations were used."},{"code":"ASSET_REVOKED","meaning":"The owner revoked this likeness. Future use has stopped; nothing was generated from it."},{"code":"ASSET_NOT_LIVE","meaning":"This likeness isn't available right now."},{"code":"NOT_SOUL_READY","meaning":"This likeness can't generate right now (it has no trained character reference in this environment)."},{"code":"CONSENT_REQUIRED","meaning":"The owner's likeness consent for this face is no longer active."},{"code":"LICENSE_DENIED","meaning":"This license can't be used for this job. License a pack of this face first."},{"code":"LICENSE_EXPIRED","meaning":"This license's window has ended."},{"code":"ACCOUNT_PENDING","meaning":"Your buyer account is under review. We will email you when a decision is made."},{"code":"ACCOUNT_REJECTED","meaning":"This buyer account can't generate."},{"code":"CANCELLED_BY_BUYER","meaning":"You cancelled this job before it ran. Nothing was generated and the generations were returned to your license."},{"code":"OWNER_DECLINED","meaning":"The owner declined this request."}],"x-rate-limit":{"limit":60,"window_seconds":60,"per":"api key or owner token","note":"In-memory per server process in phase 1."}}