{"openapi":"3.1.0","info":{"title":"Lance API","version":"1.0.0","description":"Public REST surface for an organization's App Manager — its autonomous App Store Connect operator."},"paths":{"/healthz":{"get":{"tags":["lance.health"],"operationId":"health.get","parameters":[],"security":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["status"],"properties":{"status":{"type":"string","enum":["ok"]}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpApiDecodeError"}}}}}}},"/v1/org/{org_id}/chat":{"post":{"tags":["lance.chat"],"operationId":"lance.chat.chat.post","parameters":[{"name":"org_id","in":"path","schema":{"type":"string","description":"a string matching the pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"required":true,"description":"a string matching the pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}],"security":[{"bearer":[]}],"responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["accepted_at","org_id","bundle_id","thread_id","note"],"properties":{"accepted_at":{"type":"string"},"org_id":{"type":"string"},"bundle_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"thread_id":{"type":"string"},"note":{"type":"string"},"authorize":{"type":"array","items":{"type":"string","enum":["submit_for_review","release","cancel_submission"]}}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["validation_error"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}]}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["unauthorized"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}},"402":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","billing_url"],"properties":{"code":{"type":"string","enum":["payment_required"]},"message":{"type":"string"},"billing_url":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["forbidden"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","retry_after_seconds"],"properties":{"code":{"type":"string","enum":["rate_limited"]},"message":{"type":"string"},"retry_after_seconds":{"type":"number"}},"additionalProperties":false}},"additionalProperties":false}}}},"500":{"description":"Unauthorized","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/InternalError"},{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["internal_error"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}]}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"a string at most 8000 character(s) long","title":"maxLength(8000)","minLength":1,"maxLength":8000},"bundle_id":{"type":"string"},"thread_id":{"type":"string"},"authorize":{"type":"array","items":{"type":"string","enum":["submit_for_review","release","cancel_submission"]},"description":"Structured authorization for irreversible App Store actions this ask requests. The App Manager performs them ONLY when an ask it is working on carries the matching value; without it, it stops at submit-ready and replies with how to authorize. Pass a value only when the human owner approved that action (saying it in the message is not enough). \"submit_for_review\": submit the app's App Store version (and anything staged in the same review submission) to App Review. \"release\": release an approved App Store version to the public (a release request), or start, resume or complete a phased release. \"cancel_submission\": withdraw a review submission that is waiting for or in App Review (App Store Connect then shows the version as Developer Rejected). It covers the operator turn that works on this ask, never a later one (a new or resumed turn needs a new authorized ask), and on an app's thread (bundle_id) that app only. A re-ask that adds authorization is a new ask (where the ask takes an idempotency_key, use a new idempotency_key)."}},"additionalProperties":false}}},"required":true}}},"/v1/org/{org_id}/chat_history":{"get":{"tags":["lance.history"],"operationId":"lance.history.history.get","parameters":[{"name":"org_id","in":"path","schema":{"type":"string","description":"a string matching the pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"required":true,"description":"a string matching the pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},{"name":"limit","in":"query","schema":{"type":"string","description":"a string to be decoded into a number"},"required":false,"description":"a string to be decoded into a number"},{"name":"cursor","in":"query","schema":{"type":"string"},"required":false},{"name":"bundle_id","in":"query","schema":{"type":"string"},"required":false},{"name":"thread_id","in":"query","schema":{"type":"string"},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["messages","next_cursor"],"properties":{"messages":{"type":"array","items":{"type":"object","required":["direction","content","bundle_id","thread_id","created_at"],"properties":{"direction":{"type":"string","enum":["user","agent"]},"content":{"type":"string"},"bundle_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"thread_id":{"type":"string"},"created_at":{"type":"string"},"result":{"anyOf":[{"type":"object","required":["kind","version","build_number","state"],"properties":{"kind":{"type":"string","enum":["build"]},"version":{"anyOf":[{"type":"string"},{"type":"null"}]},"build_number":{"anyOf":[{"type":"number"},{"type":"null"}]},"state":{"type":"string"},"testers":{"type":"array","items":{"type":"object","required":["email","status"],"properties":{"email":{"type":"string"},"status":{"type":"string"}},"additionalProperties":false}},"failure":{"type":"object","required":["error_code"],"properties":{"error_code":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"step":{"anyOf":[{"type":"string"},{"type":"null"}]},"first_error":{"anyOf":[{"type":"string"},{"type":"null"}]},"hint":{"anyOf":[{"type":"string"},{"type":"null"}]},"log_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"log_tail":{"type":"array","items":{"type":"string"}},"next_actions":{"type":"array","items":{"type":"string"}},"source_door":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}},"additionalProperties":false},{"type":"object","required":["kind","fields_changed"],"properties":{"kind":{"type":"string","enum":["metadata"]},"fields_changed":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},{"type":"object","required":["kind","status"],"properties":{"kind":{"type":"string","enum":["task"]},"status":{"type":"string","enum":["completed","failed","blocked"]},"summary":{"type":"string"}},"additionalProperties":false}]},"turn_end":{"type":"string","enum":["no_receipt"]},"grounded":{"type":"boolean"},"tools_completed":{"type":"number"}},"additionalProperties":false}},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["validation_error"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}]}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["unauthorized"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["forbidden"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}},"500":{"description":"Unauthorized","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/InternalError"},{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["internal_error"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}]}}}}}}},"/v1/org/{org_id}/agent_status":{"get":{"tags":["lance.status"],"operationId":"lance.status.status.get","parameters":[{"name":"org_id","in":"path","schema":{"type":"string","description":"a string matching the pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"required":true,"description":"a string matching the pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},{"name":"bundle_id","in":"query","schema":{"type":"string"},"required":false},{"name":"thread_id","in":"query","schema":{"type":"string"},"required":false}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"type":"object","required":["conversations","active_count"],"properties":{"conversations":{"type":"array","items":{"type":"object","required":["bundle_id","thread_id","operator_status","current_task","pending_messages","last_progress_at"],"properties":{"bundle_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"thread_id":{"type":"string"},"operator_status":{"type":"string"},"current_task":{"anyOf":[{"type":"string"},{"type":"null"}]},"pending_messages":{"type":"number"},"last_progress_at":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}},"active_count":{"type":"number"}},"additionalProperties":false},{"type":"object","required":["operator_status","turn_active","current_task","current_tool","step_count","last_progress_at","started_at","error","pending_messages","turn_scheduled","turn_lease_expires_at","agents","hint"],"properties":{"operator_status":{"type":"string"},"turn_active":{"type":"boolean"},"current_task":{"anyOf":[{"type":"string"},{"type":"null"}]},"current_tool":{"anyOf":[{"type":"string"},{"type":"null"}]},"step_count":{"anyOf":[{"type":"number"},{"type":"null"}]},"last_progress_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"pending_messages":{"type":"number"},"turn_scheduled":{"type":"boolean"},"turn_lease_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"stale_presence":{"type":"boolean"},"attempt":{"anyOf":[{"type":"object","required":["id","worker_id","state","outcome","error","started_at","ended_at","total_steps","operation_count","last_operation"],"properties":{"id":{"type":"string"},"worker_id":{"type":"string"},"state":{"type":"string"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"type":"string"},"ended_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"total_steps":{"anyOf":[{"type":"number"},{"type":"null"}]},"operation_count":{"type":"number"},"runtime_bundle_sha256":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_operation":{"anyOf":[{"type":"object","required":["tool_call_id","name","started_at","finished_at","outcome","ok","exit_code"],"properties":{"tool_call_id":{"type":"string"},"name":{"type":"string"},"started_at":{"type":"string"},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}]},"ok":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"exit_code":{"anyOf":[{"type":"number"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"last_tool":{"anyOf":[{"type":"object","required":["name","ok","finished_at"],"properties":{"name":{"type":"string"},"outcome":{"type":"string"},"ok":{"type":"boolean"},"exit_code":{"anyOf":[{"type":"number"},{"type":"null"}]},"finished_at":{"type":"string"}},"additionalProperties":false},{"type":"null"}]},"agents":{"type":"array","items":{"type":"object","required":["kind","participant","status","task","current_tool","step_count","last_progress_at"],"properties":{"kind":{"type":"string","enum":["operator","subagent"]},"participant":{"type":"string"},"status":{"type":"string"},"task":{"anyOf":[{"type":"string"},{"type":"null"}]},"current_tool":{"anyOf":[{"type":"string"},{"type":"null"}]},"step_count":{"anyOf":[{"type":"number"},{"type":"null"}]},"last_progress_at":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}},"hint":{"type":"string"}},"additionalProperties":false}]}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["validation_error"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}]}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["unauthorized"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["forbidden"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}},"500":{"description":"Unauthorized","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/InternalError"},{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["internal_error"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}]}}}}}}},"/v1/org/{org_id}/appstore_teams":{"get":{"tags":["lance.appstore"],"operationId":"lance.appstore.appstore.teams","parameters":[{"name":"org_id","in":"path","schema":{"type":"string","description":"a string matching the pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"required":true,"description":"a string matching the pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["teams"],"properties":{"teams":{"type":"array","items":{"type":"object","required":["team_id","team_name"],"properties":{"team_id":{"type":"string"},"team_name":{"type":"string"}},"additionalProperties":false}}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpApiDecodeError"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["unauthorized"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["forbidden"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}},"500":{"description":"Unauthorized","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/InternalError"},{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["internal_error"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}]}}}}}}},"/v1/org/{org_id}/asc_team/{team_id}/bundles":{"get":{"tags":["lance.appstore"],"operationId":"lance.appstore.appstore.bundles","parameters":[{"name":"org_id","in":"path","schema":{"type":"string","description":"a string matching the pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"required":true,"description":"a string matching the pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},{"name":"team_id","in":"path","schema":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"required":true,"description":"a string at least 1 character(s) long"}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["bundles"],"properties":{"bundles":{"type":"array","items":{"type":"object","required":["bundle_id","app_id","name"],"properties":{"bundle_id":{"type":"string"},"app_id":{"type":"string"},"name":{"type":"string"},"sku":{"type":"string"}},"additionalProperties":false}}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpApiDecodeError"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["unauthorized"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["forbidden"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["team_not_found"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}},"500":{"description":"Unauthorized","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/InternalError"},{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["internal_error"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}]}}}}}}},"/v1/org/{org_id}/asc_team/{team_id}/bundles/{bundle_id}/status":{"get":{"tags":["lance.appstore"],"operationId":"lance.appstore.appstore.bundleStatus","parameters":[{"name":"org_id","in":"path","schema":{"type":"string","description":"a string matching the pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"required":true,"description":"a string matching the pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},{"name":"team_id","in":"path","schema":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"required":true,"description":"a string at least 1 character(s) long"},{"name":"bundle_id","in":"path","schema":{"type":"string"},"required":true}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["checkedAt","app","version","liveVersion","draftId","submissions","ready","errors"],"properties":{"checkedAt":{"type":"string"},"app":{"anyOf":[{"type":"object","required":["id","bundleId","name"],"properties":{"id":{"type":"string"},"bundleId":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"version":{"anyOf":[{"type":"object","required":["id","versionString","state"],"properties":{"id":{"type":"string"},"versionString":{"anyOf":[{"type":"string"},{"type":"null"}]},"state":{"anyOf":[{"type":"string"},{"type":"null"}]},"releaseType":{"anyOf":[{"type":"string"},{"type":"null"}]},"earliestReleaseDate":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"liveVersion":{"anyOf":[{"type":"object","required":["id","versionString","state"],"properties":{"id":{"type":"string"},"versionString":{"anyOf":[{"type":"string"},{"type":"null"}]},"state":{"anyOf":[{"type":"string"},{"type":"null"}]},"releaseType":{"anyOf":[{"type":"string"},{"type":"null"}]},"earliestReleaseDate":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"draftId":{"anyOf":[{"type":"string"},{"type":"null"}]},"submissions":{"type":"array","items":{"type":"object","required":["id","state","submittedDate"],"properties":{"id":{"type":"string"},"state":{"anyOf":[{"type":"string"},{"type":"null"}]},"submittedDate":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}},"ready":{"type":"boolean"},"errors":{"type":"array","items":{"type":"object","required":["resource","attribute","code","detail"],"properties":{"resource":{"type":"string"},"attribute":{"anyOf":[{"type":"string"},{"type":"null"}]},"code":{"type":"string"},"detail":{"type":"string"}},"additionalProperties":false}}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpApiDecodeError"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["unauthorized"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["forbidden"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["team_not_found"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}},"500":{"description":"Unauthorized","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/InternalError"},{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["internal_error"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}]}}}}}}},"/v1/org/{org_id}/asc_team/{team_id}/jwt":{"get":{"tags":["lance.appstore"],"operationId":"lance.appstore.appstore.jwt","parameters":[{"name":"org_id","in":"path","schema":{"type":"string","description":"a string matching the pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"required":true,"description":"a string matching the pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},{"name":"team_id","in":"path","schema":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"required":true,"description":"a string at least 1 character(s) long"}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["fetch_url","fetch_expires_at","token_expires_at","key_id","issuer_id","usage"],"properties":{"fetch_url":{"type":"string"},"fetch_expires_at":{"type":"string"},"token_expires_at":{"type":"string"},"key_id":{"type":"string"},"issuer_id":{"type":"string"},"usage":{"type":"object","required":["bash","python","js","note"],"properties":{"bash":{"type":"string"},"python":{"type":"string"},"js":{"type":"string"},"note":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpApiDecodeError"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["unauthorized"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["forbidden"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["team_not_found"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","retry_after_seconds"],"properties":{"code":{"type":"string","enum":["rate_limited"]},"message":{"type":"string"},"retry_after_seconds":{"type":"number"}},"additionalProperties":false}},"additionalProperties":false}}}},"500":{"description":"Unauthorized","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/InternalError"},{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["internal_error"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}]}}}}}}},"/v1/org/{org_id}/artifacts":{"post":{"tags":["lance.artifacts"],"operationId":"lance.artifacts.artifacts.create","parameters":[{"name":"org_id","in":"path","schema":{"type":"string","description":"a string matching the pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"required":true,"description":"a string matching the pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}],"security":[{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["object_key","put_url","put_expires_at","get_url","get_expires_at","usage"],"properties":{"object_key":{"type":"string"},"put_url":{"type":"string"},"put_expires_at":{"type":"string"},"get_url":{"type":"string"},"get_expires_at":{"type":"string"},"usage":{"type":"string"}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["validation_error"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}]}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["unauthorized"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["forbidden"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}},"500":{"description":"Unauthorized","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/InternalError"},{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["internal_error"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}]}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["filename"],"properties":{"filename":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1}},"additionalProperties":false}}},"required":true}}},"/v1/token/{id}":{"get":{"tags":["lance.token"],"operationId":"token.fetch","parameters":[{"name":"id","in":"path","schema":{"type":"string"},"required":true}],"security":[],"responses":{"200":{"description":"a string","content":{"text/plain":{"schema":{"type":"string"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpApiDecodeError"}}}},"410":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["token_gone"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","retry_after_seconds"],"properties":{"code":{"type":"string","enum":["rate_limited"]},"message":{"type":"string"},"retry_after_seconds":{"type":"number"}},"additionalProperties":false}},"additionalProperties":false}}}},"500":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["internal_error"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}}}}},"/v1/appicon/quota":{"get":{"tags":["lance.appicon"],"operationId":"appicon.quota","parameters":[],"security":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["tier","free_used","free_cap","credits_remaining","credits_per_image","email","user_id"],"properties":{"tier":{"type":"string","enum":["anonymous","email","authed"]},"free_used":{"type":"number"},"free_cap":{"type":"number"},"credits_remaining":{"anyOf":[{"type":"number"},{"type":"null"}]},"credits_per_image":{"type":"number"},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpApiDecodeError"}}}},"500":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["internal_error"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}}}}},"/v1/appicon/register-email":{"post":{"tags":["lance.appicon"],"operationId":"appicon.registerEmail","parameters":[],"security":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["token","email"],"properties":{"token":{"type":"string"},"email":{"type":"string"}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["validation_error"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}]}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","retry_after_seconds"],"properties":{"code":{"type":"string","enum":["rate_limited"]},"message":{"type":"string"},"retry_after_seconds":{"type":"number"}},"additionalProperties":false}},"additionalProperties":false}}}},"500":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["internal_error"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["email","marketing_consent"],"properties":{"email":{"type":"string","description":"a string at most 254 character(s) long","title":"maxLength(254)","minLength":3,"maxLength":254},"marketing_consent":{"type":"boolean"}},"additionalProperties":false}}},"required":true}}},"/v1/appicon/claim-signup-credits":{"post":{"tags":["lance.appicon"],"operationId":"appicon.claimSignupCredits","parameters":[],"security":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["claimed","already_claimed","credits_remaining"],"properties":{"claimed":{"type":"boolean"},"already_claimed":{"type":"boolean"},"credits_remaining":{"anyOf":[{"type":"number"},{"type":"null"}]}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpApiDecodeError"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["unauthorized"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}},"500":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["internal_error"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}}}}},"/v1/appicon/checkout":{"post":{"tags":["lance.appicon"],"operationId":"appicon.checkout","parameters":[],"security":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["checkout_url"],"properties":{"checkout_url":{"type":"string"}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["validation_error"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}]}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["unauthorized"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}},"500":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["internal_error"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["return_url"],"properties":{"return_url":{"type":"string","description":"a string at most 500 character(s) long","title":"maxLength(500)","maxLength":500}},"additionalProperties":false}}},"required":true}}},"/v1/appicon/jobs":{"post":{"tags":["lance.appicon"],"operationId":"appicon.jobCreate","parameters":[],"security":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["job_id","quota","charged_credits"],"properties":{"job_id":{"type":"string"},"quota":{"type":"object","required":["tier","free_used","free_cap","credits_remaining","credits_per_image","email","user_id"],"properties":{"tier":{"type":"string","enum":["anonymous","email","authed"]},"free_used":{"type":"number"},"free_cap":{"type":"number"},"credits_remaining":{"anyOf":[{"type":"number"},{"type":"null"}]},"credits_per_image":{"type":"number"},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},"charged_credits":{"type":"number"}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["validation_error"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}]}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["unauthorized"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}},"402":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","reason","free_used","free_cap","retry_after_seconds","credits_remaining"],"properties":{"code":{"type":"string","enum":["quota_exceeded"]},"message":{"type":"string"},"reason":{"type":"string","enum":["email_required","signin_required","credits_required"]},"free_used":{"type":"number"},"free_cap":{"type":"number"},"retry_after_seconds":{"anyOf":[{"type":"number"},{"type":"null"}]},"credits_remaining":{"anyOf":[{"type":"number"},{"type":"null"}]}},"additionalProperties":false}},"additionalProperties":false}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","retry_after_seconds"],"properties":{"code":{"type":"string","enum":["rate_limited"]},"message":{"type":"string"},"retry_after_seconds":{"type":"number"}},"additionalProperties":false}},"additionalProperties":false}}}},"500":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["internal_error"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["prompt"],"properties":{"prompt":{"type":"string","description":"a string at most 1000 character(s) long","title":"maxLength(1000)","minLength":1,"maxLength":1000},"style":{"type":"string","description":"a string at most 200 character(s) long","title":"maxLength(200)","maxLength":200},"styles":{"type":"array","items":{"type":"string","description":"a string at most 200 character(s) long","title":"maxLength(200)","maxLength":200},"description":"an array of at most 4 item(s)","title":"maxItems(4)","maxItems":4},"count":{"$ref":"#/components/schemas/Int","description":"a number between 1 and 4","title":"between(1, 4)","minimum":1,"maximum":4},"prompt_version":{"type":"string","enum":["v1","v2"]},"reference_images":{"type":"array","items":{"type":"string","description":"a string at most 8000000 character(s) long","title":"maxLength(8000000)","maxLength":8000000},"description":"an array of at most 4 item(s)","title":"maxItems(4)","maxItems":4}},"additionalProperties":false}}},"required":true}}},"/v1/appicon/jobs/{job_id}":{"get":{"tags":["lance.appicon"],"operationId":"appicon.jobGet","parameters":[{"name":"job_id","in":"path","schema":{"type":"string","description":"a string at most 64 character(s) long","title":"maxLength(64)","minLength":8,"maxLength":64},"required":true,"description":"a string at most 64 character(s) long"}],"security":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"type":"object","required":["status"],"properties":{"status":{"type":"string","enum":["running"]}},"additionalProperties":false},{"type":"object","required":["status","model","results","quota","charged_credits"],"properties":{"status":{"type":"string","enum":["done"]},"model":{"type":"string"},"results":{"type":"array","items":{"type":"object","required":["url","image_b64","style","concept","subject","mood"],"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_b64":{"anyOf":[{"type":"string"},{"type":"null"}]},"style":{"anyOf":[{"type":"string"},{"type":"null"}]},"concept":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject":{"anyOf":[{"type":"string"},{"type":"null"}]},"mood":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}},"quota":{"type":"object","required":["tier","free_used","free_cap","credits_remaining","credits_per_image","email","user_id"],"properties":{"tier":{"type":"string","enum":["anonymous","email","authed"]},"free_used":{"type":"number"},"free_cap":{"type":"number"},"credits_remaining":{"anyOf":[{"type":"number"},{"type":"null"}]},"credits_per_image":{"type":"number"},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},"charged_credits":{"type":"number"}},"additionalProperties":false},{"type":"object","required":["status","error"],"properties":{"status":{"type":"string","enum":["failed"]},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}]}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpApiDecodeError"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["not_found"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}},"500":{"description":"Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["internal_error"]},"message":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}}}}}},"components":{"schemas":{"HttpApiDecodeError":{"type":"object","required":["issues","message","_tag"],"properties":{"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}},"message":{"type":"string"},"_tag":{"type":"string","enum":["HttpApiDecodeError"]}},"additionalProperties":false,"description":"The request did not match the expected schema"},"Issue":{"type":"object","required":["_tag","path","message"],"properties":{"_tag":{"type":"string","enum":["Pointer","Unexpected","Missing","Composite","Refinement","Transformation","Type","Forbidden"],"description":"The tag identifying the type of parse issue"},"path":{"type":"array","items":{"$ref":"#/components/schemas/PropertyKey"},"description":"The path to the property where the issue occurred"},"message":{"type":"string","description":"A descriptive message explaining the issue"}},"additionalProperties":false,"description":"Represents an error encountered while parsing a value to match the schema"},"PropertyKey":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"object","required":["_tag","key"],"properties":{"_tag":{"type":"string","enum":["symbol"]},"key":{"type":"string"}},"additionalProperties":false,"description":"an object to be decoded into a globally shared symbol"}]},"Unauthorized":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["Unauthorized"]}},"additionalProperties":false},"InternalError":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["InternalError"]}},"additionalProperties":false},"Int":{"type":"integer","description":"an integer","title":"int"}},"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}}},"security":[],"tags":[{"name":"lance.health","description":"Returns ok when the service is up."},{"name":"lance.chat","description":"Returns 202 immediately; poll GET chat_history for the reply."},{"name":"lance.history","description":"Paginated newest-first message history with optional bundle/thread filters."},{"name":"lance.status","description":"Without filters: org-wide active conversations. With bundle_id and/or thread_id: one conversation's live status."},{"name":"lance.appstore","description":"List teams, bundles, submission readiness, and mint short-lived ASC API tokens."},{"name":"lance.artifacts","description":"Transfer channel for files between agents and operators; objects auto-delete in ~9 hours."},{"name":"lance.token","description":"Public endpoint: the unguessable id IS the secret. Returns the token as text/plain until expiry."},{"name":"lance.appicon","description":"Powers appicon.co's free AI icon generator. Every caller gets 1 free generation per 24h per IP (no email or sign-in needed); beyond that, a `lance_sk_` bearer key unlocks paid generation at 10 credits/image (one-time 40-credit signup bonus via /claim-signup-credits, 500 credits for connecting App Store Connect, or the $10/400 pack). Generation is JOB-based: create a job (the quota ladder answers immediately), then poll it — batches run 45-120s, longer than browsers hold a response open. Results are 1024×1024 PNG masters as durable URLs; resize/packaging happens client-side or via the MCP generate_assets tool."}]}