{"components":{"securitySchemes":{"bearerAuth":{"bearerFormat":"Dexto API key","scheme":"bearer","type":"http"}}},"info":{"description":"Public Dexto infrastructure APIs.","title":"Dexto API","version":"1.0.0"},"openapi":"3.1.0","paths":{"/v1/models":{"get":{"description":"Lists every model currently supported by the Dexto gateway and the ways each model can be accessed.","operationId":"listModels","responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"access_methods":{"minItems":1,"type":"array","items":{"type":"string","enum":["anthropic-api-key","dexto","openai-api-key","openai-chatgpt"]}},"capabilities":{"type":"object","properties":{"input":{"type":"array","items":{"type":"string"}},"maxInputTokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"output":{"type":"array","items":{"type":"string"}},"reasoning":{"type":"boolean"},"supportsToolCall":{"type":"boolean"}},"required":["input","maxInputTokens","output","reasoning","supportsToolCall"],"additionalProperties":false},"created":{"type":"integer","minimum":0,"maximum":9007199254740991},"id":{"type":"string","minLength":1},"object":{"type":"string","const":"model"},"owned_by":{"type":"string","const":"dexto"},"pricing":{"anyOf":[{"type":"object","properties":{"cacheReadPerM":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"cacheWritePerM":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"contextOver200kPerM":{"anyOf":[{"type":"object","properties":{"cacheReadPerM":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"cacheWritePerM":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"inputPerM":{"type":"number","minimum":0},"inputTokensAbove":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"outputPerM":{"type":"number","minimum":0}},"required":["cacheReadPerM","cacheWritePerM","inputPerM","inputTokensAbove","outputPerM"],"additionalProperties":false},{"type":"null"}]},"inputPerM":{"type":"number","minimum":0},"outputPerM":{"type":"number","minimum":0},"reasoningPerM":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]}},"required":["cacheReadPerM","cacheWritePerM","contextOver200kPerM","inputPerM","outputPerM","reasoningPerM"],"additionalProperties":false},{"type":"null"}]}},"required":["access_methods","capabilities","created","id","object","owned_by","pricing"],"additionalProperties":false}},"object":{"type":"string","const":"list"}},"required":["data","object"],"additionalProperties":false}}},"description":"Successful response."},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Invalid JSON or request fields."},"401":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Missing or invalid API key."},"402":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account has insufficient credits."},"403":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account cannot perform this operation."},"404":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The requested resource was not found."},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The request conflicts with existing resource state."},"429":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account exceeded this operation's request rate.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Unexpected Dexto failure."},"502":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The upstream model provider failed."},"503":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"A required Dexto service is temporarily unavailable."}},"security":[{"bearerAuth":[]}],"summary":"List models","tags":["Models"],"x-dexto-rate-limit":{"limit":600,"periodSeconds":60,"policy":"model_catalog_read"}}},"/v1/billing/summary":{"get":{"description":"Returns the caller organization's current credit balance, charged usage for the preceding 30 days, and up to 50 recent model usage events. Organization owners and admins see all members' usage; other members see only usage attributed to them.","operationId":"getBillingSummary","responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"balance_usd":{"type":"number"},"last_30_days":{"type":"object","properties":{"since":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"total_cost_usd":{"type":"number"},"total_usage_events":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["since","total_cost_usd","total_usage_events"],"additionalProperties":false},"recent_model_usage":{"type":"array","items":{"type":"object","properties":{"cost_usd":{"type":"number"},"input_tokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"model":{"type":"string"},"output_tokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"timestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["cost_usd","input_tokens","model","output_tokens","timestamp"],"additionalProperties":false}}},"required":["balance_usd","last_30_days","recent_model_usage"],"additionalProperties":false}}},"description":"Successful response."},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Invalid JSON or request fields."},"401":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Missing or invalid API key."},"402":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account has insufficient credits."},"403":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account cannot perform this operation."},"404":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The requested resource was not found."},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The request conflicts with existing resource state."},"429":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account exceeded this operation's request rate.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Unexpected Dexto failure."},"502":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The upstream model provider failed."},"503":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"A required Dexto service is temporarily unavailable."}},"security":[{"bearerAuth":[]}],"summary":"Get billing summary","tags":["Billing"],"x-dexto-rate-limit":{"limit":120,"periodSeconds":60,"policy":"billing_summary_read"}}},"/v1/chat/completions":{"post":{"description":"Creates an OpenAI-compatible chat completion. Set stream to true to receive server-sent events ending with data: [DONE].","operationId":"createChatCompletion","requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"access_method":{"type":"string","enum":["anthropic-api-key","dexto","openai-api-key","openai-chatgpt"]},"frequency_penalty":{"type":"number"},"include_reasoning":{"type":"boolean"},"max_completion_tokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"max_tokens":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"messages":{"minItems":1,"type":"array","items":{"oneOf":[{"type":"object","properties":{"content":{"anyOf":[{"type":"string"},{"minItems":1,"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"type":{"type":"string","const":"text"}},"required":["text","type"],"additionalProperties":false}}]},"role":{"type":"string","enum":["developer","system"]}},"required":["content","role"],"additionalProperties":false},{"type":"object","properties":{"content":{"anyOf":[{"type":"string"},{"minItems":1,"type":"array","items":{"oneOf":[{"type":"object","properties":{"text":{"type":"string"},"type":{"type":"string","const":"text"}},"required":["text","type"],"additionalProperties":false},{"type":"object","properties":{"image_url":{"type":"object","properties":{"url":{"type":"string","format":"uri"}},"required":["url"],"additionalProperties":false},"type":{"type":"string","const":"image_url"}},"required":["image_url","type"],"additionalProperties":false},{"type":"object","properties":{"file":{"type":"object","properties":{"file_data":{"anyOf":[{"type":"string","format":"uri"},{"type":"string","minLength":1,"pattern":"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"}]},"filename":{"type":"string"}},"required":["file_data"],"additionalProperties":false},"type":{"type":"string","const":"file"}},"required":["file","type"],"additionalProperties":false},{"type":"object","properties":{"input_audio":{"type":"object","properties":{"data":{"type":"string"},"format":{"type":"string","enum":["aac","aiff","flac","m4a","mp3","ogg","pcm16","pcm24","wav"]}},"required":["data","format"],"additionalProperties":false},"type":{"type":"string","const":"input_audio"}},"required":["input_audio","type"],"additionalProperties":false}]}}]},"role":{"type":"string","const":"user"}},"required":["content","role"],"additionalProperties":false},{"type":"object","properties":{"content":{"anyOf":[{"type":"string"},{"type":"null"},{"type":"array","items":{"oneOf":[{"type":"object","properties":{"text":{"type":"string"},"type":{"type":"string","const":"text"}},"required":["text","type"],"additionalProperties":false},{"type":"object","properties":{"refusal":{"type":"string"},"type":{"type":"string","const":"refusal"}},"required":["refusal","type"],"additionalProperties":false}]}}]},"reasoning":{"type":"string"},"reasoning_content":{"type":"string"},"role":{"type":"string","const":"assistant"},"tool_calls":{"type":"array","items":{"type":"object","properties":{"function":{"type":"object","properties":{"arguments":{"type":"string"},"name":{"type":"string","minLength":1}},"required":["arguments","name"],"additionalProperties":false},"id":{"type":"string","minLength":1},"type":{"type":"string","const":"function"}},"required":["function","id","type"],"additionalProperties":false}}},"required":["role"],"additionalProperties":false},{"type":"object","properties":{"content":{"anyOf":[{"type":"string"},{"type":"array","items":{"oneOf":[{"type":"object","properties":{"text":{"type":"string"},"type":{"type":"string","const":"text"}},"required":["text","type"],"additionalProperties":false},{"type":"object","properties":{"data":{"type":"string"},"mediaType":{"type":"string"},"type":{"type":"string","const":"media"}},"required":["data","mediaType","type"],"additionalProperties":false},{"type":"object","properties":{"image":{"type":"string"},"mimeType":{"type":"string"},"type":{"type":"string","const":"image"}},"required":["image","type"],"additionalProperties":false},{"type":"object","properties":{"data":{"type":"string"},"mimeType":{"type":"string"},"type":{"type":"string","const":"file"}},"required":["data","mimeType","type"],"additionalProperties":false},{"type":"object","properties":{"image_url":{"type":"object","properties":{"url":{"type":"string","format":"uri"}},"required":["url"],"additionalProperties":false},"type":{"type":"string","const":"image_url"}},"required":["image_url","type"],"additionalProperties":false}]}}]},"name":{"type":"string","minLength":1},"role":{"type":"string","const":"tool"},"tool_call_id":{"type":"string","minLength":1}},"required":["content","role","tool_call_id"],"additionalProperties":false}]}},"model":{"type":"string","minLength":1},"presence_penalty":{"type":"number"},"parallel_tool_calls":{"type":"boolean"},"prompt_cache_key":{"type":"string"},"reasoning":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}},"reasoning_effort":{"type":"string","minLength":1},"response_format":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"json_object"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"json_schema":{"type":"object","properties":{"description":{"type":"string"},"name":{"type":"string","minLength":1},"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}},"strict":{"type":"boolean","const":true}},"required":["name","schema"],"additionalProperties":false},"type":{"type":"string","const":"json_schema"}},"required":["json_schema","type"],"additionalProperties":false}]},"seed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"service_tier":{"type":"string","enum":["auto","default","fast","priority"]},"stop":{"anyOf":[{"type":"string","minLength":1},{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}]},"stream":{"type":"boolean"},"stream_options":{"type":"object","properties":{"include_usage":{"type":"boolean"}},"additionalProperties":false},"temperature":{"type":"number"},"tool_choice":{"anyOf":[{"type":"string","enum":["auto","none","required"]},{"type":"object","properties":{"function":{"type":"object","properties":{"name":{"type":"string","minLength":1}},"required":["name"],"additionalProperties":false},"type":{"type":"string","const":"function"}},"required":["function","type"],"additionalProperties":false}]},"tools":{"type":"array","items":{"type":"object","properties":{"function":{"type":"object","properties":{"description":{"type":"string"},"name":{"type":"string","minLength":1},"parameters":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}},"required":["name"],"additionalProperties":false},"type":{"type":"string","const":"function"}},"required":["function","type"],"additionalProperties":false}},"top_p":{"type":"number"},"usage":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}},"user":{"type":"string"},"verbosity":{"type":"string","enum":["low","medium","high"]}},"required":["messages","model"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"choices":{"minItems":1,"type":"array","items":{"type":"object","properties":{"finish_reason":{"anyOf":[{"type":"string","enum":["content_filter","length","stop","tool_calls"]},{"type":"null"}]},"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"message":{"type":"object","properties":{"content":{"anyOf":[{"type":"string"},{"type":"null"}]},"reasoning":{"type":"string"},"reasoning_content":{"type":"string"},"role":{"type":"string","const":"assistant"},"tool_calls":{"type":"array","items":{"type":"object","properties":{"function":{"type":"object","properties":{"arguments":{"type":"string"},"name":{"type":"string"}},"required":["arguments","name"],"additionalProperties":false},"id":{"type":"string"},"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"type":{"type":"string","const":"function"}},"required":["function","id","type"],"additionalProperties":false}}},"required":["content","role"],"additionalProperties":false}},"required":["finish_reason","index","message"],"additionalProperties":false}},"created":{"type":"integer","minimum":0,"maximum":9007199254740991},"id":{"type":"string","minLength":1},"model":{"type":"string","minLength":1},"object":{"type":"string","const":"chat.completion"},"service_tier":{"type":"string","enum":["default","priority"]},"usage":{"type":"object","properties":{"completion_tokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"completion_tokens_details":{"type":"object","properties":{"reasoning_tokens":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["reasoning_tokens"],"additionalProperties":false},"cost":{"type":"number","minimum":0},"prompt_tokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"prompt_tokens_details":{"type":"object","properties":{"cache_write_tokens":{"type":"integer","minimum":0,"maximum":9007199254740991},"cached_tokens":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["cached_tokens"],"additionalProperties":false},"total_tokens":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["completion_tokens","prompt_tokens","total_tokens"],"additionalProperties":false}},"required":["choices","created","id","model","object","usage"],"additionalProperties":false}},"text/event-stream":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","description":"Server-sent event wire text. Each event is a data: line containing an OpenAI-compatible JSON chunk. The stream ends with data: [DONE]."}}},"description":"Successful response."},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Invalid JSON or request fields."},"401":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Missing or invalid API key."},"402":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account has insufficient credits."},"403":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account cannot perform this operation."},"404":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The requested resource was not found."},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The request conflicts with existing resource state."},"429":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account exceeded this operation's request rate.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Unexpected Dexto failure."},"502":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The upstream model provider failed."},"503":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"A required Dexto service is temporarily unavailable."}},"security":[{"bearerAuth":[]}],"summary":"Create a chat completion","tags":["Models"],"x-dexto-rate-limit":{"limit":120,"periodSeconds":60,"policy":"chat_completion_create"}}},"/v1/media/models":{"get":{"description":"Lists the reviewed media models currently supported by Dexto, including their accepted input fields and pricing guidance.","operationId":"listMediaModels","responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"description":{"type":"string"},"execution":{"type":"string","enum":["deferred","inline"]},"id":{"type":"string"},"input":{"type":"object","properties":{"fields":{"type":"array","items":{"type":"object","properties":{"accepts_artifact_handles":{"type":"boolean"},"default":{"anyOf":[{"type":"boolean"},{"type":"number"},{"type":"string"}]},"description":{"type":"string"},"enum":{"type":"array","items":{"anyOf":[{"type":"number"},{"type":"string"}]}},"max_length":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max_items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maximum":{"type":"number"},"min_length":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"min_items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"minimum":{"type":"number"},"name":{"type":"string"},"suggestions":{"type":"array","items":{"type":"object","properties":{"description":{"type":"string"},"voice_id":{"type":"string"},"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"type":{"type":"string","enum":["array","boolean","integer","number","string"]}},"required":["description","name","type"],"additionalProperties":false}},"required":{"type":"array","items":{"type":"string"}}},"required":["fields","required"],"additionalProperties":false},"media_kind":{"type":"string","enum":["audio","file","image","video"]},"object":{"type":"string","const":"media.model"},"operation":{"type":"string","enum":["edit","generate"]},"pricing":{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"estimate_mode":{"type":"string","enum":["exact","historical"]},"unit":{"type":"string"},"unit_price_usd":{"type":"number","minimum":0}},"required":["currency","estimate_mode","unit"],"additionalProperties":false},"title":{"type":"string"}},"required":["description","execution","id","input","media_kind","object","pricing","title"],"additionalProperties":false}},"object":{"type":"string","const":"list"}},"required":["data","object"],"additionalProperties":false}}},"description":"Successful response."},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Invalid JSON or request fields."},"401":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Missing or invalid API key."},"402":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account has insufficient credits."},"403":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account cannot perform this operation."},"404":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The requested resource was not found."},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The request conflicts with existing resource state."},"429":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account exceeded this operation's request rate.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Unexpected Dexto failure."},"502":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The upstream model provider failed."},"503":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"A required Dexto service is temporarily unavailable."}},"security":[{"bearerAuth":[]}],"summary":"List media models","tags":["Media"],"x-dexto-rate-limit":{"limit":300,"periodSeconds":60,"policy":"media_catalog_read"}}},"/v1/media/recommendations":{"get":{"description":"Ranks supported Dexto media models for a free-text intent. Results use the same public media.model objects as the catalog list.","operationId":"listMediaRecommendations","parameters":[{"description":"Free-text intent used to rank supported media models.","in":"query","name":"intent","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":2000}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"description":{"type":"string"},"execution":{"type":"string","enum":["deferred","inline"]},"id":{"type":"string"},"input":{"type":"object","properties":{"fields":{"type":"array","items":{"type":"object","properties":{"accepts_artifact_handles":{"type":"boolean"},"default":{"anyOf":[{"type":"boolean"},{"type":"number"},{"type":"string"}]},"description":{"type":"string"},"enum":{"type":"array","items":{"anyOf":[{"type":"number"},{"type":"string"}]}},"max_length":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max_items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maximum":{"type":"number"},"min_length":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"min_items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"minimum":{"type":"number"},"name":{"type":"string"},"suggestions":{"type":"array","items":{"type":"object","properties":{"description":{"type":"string"},"voice_id":{"type":"string"},"value":{"type":"string"}},"required":["value"],"additionalProperties":false}},"type":{"type":"string","enum":["array","boolean","integer","number","string"]}},"required":["description","name","type"],"additionalProperties":false}},"required":{"type":"array","items":{"type":"string"}}},"required":["fields","required"],"additionalProperties":false},"media_kind":{"type":"string","enum":["audio","file","image","video"]},"object":{"type":"string","const":"media.model"},"operation":{"type":"string","enum":["edit","generate"]},"pricing":{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"estimate_mode":{"type":"string","enum":["exact","historical"]},"unit":{"type":"string"},"unit_price_usd":{"type":"number","minimum":0}},"required":["currency","estimate_mode","unit"],"additionalProperties":false},"title":{"type":"string"}},"required":["description","execution","id","input","media_kind","object","pricing","title"],"additionalProperties":false}},"object":{"type":"string","const":"list"}},"required":["data","object"],"additionalProperties":false}}},"description":"Successful response."},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Invalid JSON or request fields."},"401":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Missing or invalid API key."},"402":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account has insufficient credits."},"403":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account cannot perform this operation."},"404":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The requested resource was not found."},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The request conflicts with existing resource state."},"429":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account exceeded this operation's request rate.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Unexpected Dexto failure."},"502":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The upstream model provider failed."},"503":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"A required Dexto service is temporarily unavailable."}},"security":[{"bearerAuth":[]}],"summary":"Recommend media models","tags":["Media"],"x-dexto-rate-limit":{"limit":300,"periodSeconds":60,"policy":"media_catalog_read"}}},"/v1/media/estimates":{"post":{"description":"Validates a media model input and creates an immutable price estimate. Use the returned estimate ID to start generation.","operationId":"createMediaEstimate","requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"model":{"type":"string","minLength":1}},"required":["input","model"],"additionalProperties":false}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"amount_usd":{"type":"number","minimum":0},"confidence":{"type":"string","enum":["exact","historical"]},"expires_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"explanation":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"input":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"model":{"type":"string"},"object":{"type":"string","const":"media.estimate"},"pricing":{"oneOf":[{"type":"object","properties":{"quantity":{"type":"number","minimum":0},"type":{"type":"string","const":"unit"},"unit":{"type":"string"},"unit_price_usd":{"type":"number","minimum":0}},"required":["quantity","type","unit","unit_price_usd"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"historical"}},"required":["type"],"additionalProperties":false}]}},"required":["amount_usd","confidence","expires_at","explanation","id","input","model","object","pricing"],"additionalProperties":false}}},"description":"Created."},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Invalid JSON or request fields."},"401":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Missing or invalid API key."},"402":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account has insufficient credits."},"403":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account cannot perform this operation."},"404":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The requested resource was not found."},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The request conflicts with existing resource state."},"429":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account exceeded this operation's request rate.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Unexpected Dexto failure."},"502":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The upstream model provider failed."},"503":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"A required Dexto service is temporarily unavailable."}},"security":[{"bearerAuth":[]}],"summary":"Create a media estimate","tags":["Media"],"x-dexto-rate-limit":{"limit":60,"periodSeconds":60,"policy":"media_estimate_create"}}},"/v1/media/generations":{"post":{"description":"Starts durable media generation from an unexpired estimate. Reuse the same Idempotency-Key to safely recover a lost response. An account can have at most 5 generations in progress; further starts return 429 (retryable) until one finishes. Provider failures return 502 and are not retried with the same estimate.","operationId":"createMediaGeneration","parameters":[{"in":"header","name":"Idempotency-Key","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"estimate_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["estimate_id"],"additionalProperties":false}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"completed":{"type":"boolean"},"completed_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"error":{"anyOf":[{"type":"object","properties":{"category":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}},"required":["category","message"],"additionalProperties":false},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"media_kind":{"type":"string","enum":["audio","file","image","video"]},"model":{"type":"string"},"object":{"type":"string","const":"media.generation"},"resources":{"type":"array","items":{"type":"object","properties":{"filename":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"id":{"type":"string","minLength":1},"kind":{"type":"string","enum":["audio","binary","image","video"]},"mime_type":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"uri":{"type":"string","minLength":1}},"required":["filename","id","kind","mime_type","uri"],"additionalProperties":false}},"status":{"type":"string","enum":["failed","output_ready","reserved","running","settled","settlement_pending","submitted","submitting","submission_uncertain"]},"updated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["completed","completed_at","created_at","error","id","media_kind","model","object","resources","status","updated_at"],"additionalProperties":false}}},"description":"Successful response."},"202":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"completed":{"type":"boolean"},"completed_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"error":{"anyOf":[{"type":"object","properties":{"category":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}},"required":["category","message"],"additionalProperties":false},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"media_kind":{"type":"string","enum":["audio","file","image","video"]},"model":{"type":"string"},"object":{"type":"string","const":"media.generation"},"resources":{"type":"array","items":{"type":"object","properties":{"filename":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"id":{"type":"string","minLength":1},"kind":{"type":"string","enum":["audio","binary","image","video"]},"mime_type":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"uri":{"type":"string","minLength":1}},"required":["filename","id","kind","mime_type","uri"],"additionalProperties":false}},"status":{"type":"string","enum":["failed","output_ready","reserved","running","settled","settlement_pending","submitted","submitting","submission_uncertain"]},"updated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["completed","completed_at","created_at","error","id","media_kind","model","object","resources","status","updated_at"],"additionalProperties":false}}},"description":"Accepted."},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Invalid JSON or request fields."},"401":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Missing or invalid API key."},"402":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account has insufficient credits."},"403":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account cannot perform this operation."},"404":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The requested resource was not found."},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The request conflicts with existing resource state."},"429":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account exceeded this operation's request rate.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Unexpected Dexto failure."},"502":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The upstream model provider failed."},"503":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"A required Dexto service is temporarily unavailable."}},"security":[{"bearerAuth":[]}],"summary":"Start media generation","tags":["Media"],"x-dexto-rate-limit":{"limit":30,"periodSeconds":60,"policy":"media_generation_create"}},"get":{"description":"Lists the caller's completed media generations with valid Dexto artifacts, newest first. Resource id and kind come from the owned operation; filename and mime_type are null when stored artifact details cannot be loaded.","operationId":"listMediaGenerations","parameters":[{"description":"Maximum number of generations to return. Defaults to 20. Maximum 100.","in":"query","name":"limit","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"integer","minimum":1,"maximum":100}},{"description":"Opaque cursor from a previous response's next_cursor. Returns the generations after it.","in":"query","name":"after","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":512}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"completed":{"type":"boolean"},"completed_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"error":{"anyOf":[{"type":"object","properties":{"category":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}},"required":["category","message"],"additionalProperties":false},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"media_kind":{"type":"string","enum":["audio","file","image","video"]},"model":{"type":"string"},"object":{"type":"string","const":"media.generation"},"resources":{"type":"array","items":{"type":"object","properties":{"filename":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"id":{"type":"string","minLength":1},"kind":{"type":"string","enum":["audio","binary","image","video"]},"mime_type":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"uri":{"type":"string","minLength":1}},"required":["filename","id","kind","mime_type","uri"],"additionalProperties":false}},"status":{"type":"string","enum":["failed","output_ready","reserved","running","settled","settlement_pending","submitted","submitting","submission_uncertain"]},"updated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["completed","completed_at","created_at","error","id","media_kind","model","object","resources","status","updated_at"],"additionalProperties":false}},"has_more":{"type":"boolean"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]},"object":{"type":"string","const":"list"}},"required":["data","has_more","next_cursor","object"],"additionalProperties":false}}},"description":"Successful response."},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Invalid JSON or request fields."},"401":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Missing or invalid API key."},"402":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account has insufficient credits."},"403":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account cannot perform this operation."},"404":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The requested resource was not found."},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The request conflicts with existing resource state."},"429":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account exceeded this operation's request rate.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Unexpected Dexto failure."},"502":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The upstream model provider failed."},"503":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"A required Dexto service is temporarily unavailable."}},"security":[{"bearerAuth":[]}],"summary":"List media generations","tags":["Media"],"x-dexto-rate-limit":{"limit":600,"periodSeconds":60,"policy":"media_generation_read"}}},"/v1/media/generations/{generation_id}":{"get":{"description":"Reads the current status and finalized Dexto artifacts for one generation. Resource id and kind come from the owned operation; filename and mime_type are null when stored artifact details cannot be loaded.","operationId":"getMediaGeneration","parameters":[{"in":"path","name":"generation_id","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"completed":{"type":"boolean"},"completed_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"error":{"anyOf":[{"type":"object","properties":{"category":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}},"required":["category","message"],"additionalProperties":false},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"media_kind":{"type":"string","enum":["audio","file","image","video"]},"model":{"type":"string"},"object":{"type":"string","const":"media.generation"},"resources":{"type":"array","items":{"type":"object","properties":{"filename":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"id":{"type":"string","minLength":1},"kind":{"type":"string","enum":["audio","binary","image","video"]},"mime_type":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"uri":{"type":"string","minLength":1}},"required":["filename","id","kind","mime_type","uri"],"additionalProperties":false}},"status":{"type":"string","enum":["failed","output_ready","reserved","running","settled","settlement_pending","submitted","submitting","submission_uncertain"]},"updated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["completed","completed_at","created_at","error","id","media_kind","model","object","resources","status","updated_at"],"additionalProperties":false}}},"description":"Successful response."},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Invalid JSON or request fields."},"401":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Missing or invalid API key."},"402":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account has insufficient credits."},"403":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account cannot perform this operation."},"404":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The requested resource was not found."},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The request conflicts with existing resource state."},"429":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account exceeded this operation's request rate.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Unexpected Dexto failure."},"502":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The upstream model provider failed."},"503":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"A required Dexto service is temporarily unavailable."}},"security":[{"bearerAuth":[]}],"summary":"Get media generation","tags":["Media"],"x-dexto-rate-limit":{"limit":600,"periodSeconds":60,"policy":"media_generation_read"}}},"/v1/sandboxes":{"get":{"description":"List sandboxes","operationId":"listSandboxes","responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"object":{"type":"string","const":"sandbox"},"primary":{"type":"boolean"},"status":{"type":"string","enum":["error","not_started","paused","running"]},"updated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["created_at","id","object","primary","status","updated_at"],"additionalProperties":false}},"object":{"type":"string","const":"list"}},"required":["data","object"],"additionalProperties":false}}},"description":"Successful response."},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Invalid JSON or request fields."},"401":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Missing or invalid API key."},"402":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account has insufficient credits."},"403":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account cannot perform this operation."},"404":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The requested resource was not found."},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The request conflicts with existing resource state."},"429":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account exceeded this operation's request rate.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Unexpected Dexto failure."},"502":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The upstream model provider failed."},"503":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"A required Dexto service is temporarily unavailable."}},"security":[{"bearerAuth":[]}],"summary":"List sandboxes","tags":["Sandboxes"],"x-dexto-rate-limit":{"limit":300,"periodSeconds":60,"policy":"sandbox_read"}},"post":{"description":"Get or create the caller's primary sandbox. Returns 201 when created and 200 when the existing primary is returned. The sandbox is paused until started.","operationId":"createSandbox","parameters":[{"in":"header","name":"Idempotency-Key","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"object":{"type":"string","const":"sandbox"},"primary":{"type":"boolean"},"status":{"type":"string","enum":["error","not_started","paused","running"]},"updated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["created_at","id","object","primary","status","updated_at"],"additionalProperties":false}}},"description":"Returned the existing primary sandbox."},"201":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"object":{"type":"string","const":"sandbox"},"primary":{"type":"boolean"},"status":{"type":"string","enum":["error","not_started","paused","running"]},"updated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["created_at","id","object","primary","status","updated_at"],"additionalProperties":false}}},"description":"Created the primary sandbox."},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Invalid JSON or request fields."},"401":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Missing or invalid API key."},"402":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account has insufficient credits."},"403":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account cannot perform this operation."},"404":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The requested resource was not found."},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The request conflicts with existing resource state."},"429":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account exceeded this operation's request rate.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Unexpected Dexto failure."},"502":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The upstream model provider failed."},"503":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"A required Dexto service is temporarily unavailable."}},"security":[{"bearerAuth":[]}],"summary":"Create a sandbox","tags":["Sandboxes"],"x-dexto-rate-limit":{"limit":60,"periodSeconds":60,"policy":"sandbox_write"}}},"/v1/sandboxes/{sandbox_id}":{"get":{"description":"Get a sandbox","operationId":"getSandbox","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"object":{"type":"string","const":"sandbox"},"primary":{"type":"boolean"},"status":{"type":"string","enum":["error","not_started","paused","running"]},"updated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["created_at","id","object","primary","status","updated_at"],"additionalProperties":false}}},"description":"Successful response."},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Invalid JSON or request fields."},"401":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Missing or invalid API key."},"402":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account has insufficient credits."},"403":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account cannot perform this operation."},"404":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The requested resource was not found."},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The request conflicts with existing resource state."},"429":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account exceeded this operation's request rate.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Unexpected Dexto failure."},"502":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The upstream model provider failed."},"503":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"A required Dexto service is temporarily unavailable."}},"security":[{"bearerAuth":[]}],"summary":"Get a sandbox","tags":["Sandboxes"],"x-dexto-rate-limit":{"limit":300,"periodSeconds":60,"policy":"sandbox_read"}},"delete":{"description":"Delete a sandbox. Primary sandboxes require delete_primary=true and permanently remove the workspace.","operationId":"deleteSandbox","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"description":"Confirm deletion of the user's primary sandbox. Only the literal value true is accepted.","in":"query","name":"delete_primary","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","const":"true"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"deleted":{"type":"boolean","const":true}},"required":["deleted"],"additionalProperties":false}}},"description":"Successful response."},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Invalid JSON or request fields."},"401":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Missing or invalid API key."},"402":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account has insufficient credits."},"403":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account cannot perform this operation."},"404":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The requested resource was not found."},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The request conflicts with existing resource state."},"429":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account exceeded this operation's request rate.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Unexpected Dexto failure."},"502":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The upstream model provider failed."},"503":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"A required Dexto service is temporarily unavailable."}},"security":[{"bearerAuth":[]}],"summary":"Delete a sandbox","tags":["Sandboxes"],"x-dexto-rate-limit":{"limit":60,"periodSeconds":60,"policy":"sandbox_write"}}},"/v1/sandboxes/{sandbox_id}/start":{"post":{"description":"Start a sandbox","operationId":"startSandbox","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"object":{"type":"string","const":"sandbox"},"primary":{"type":"boolean"},"status":{"type":"string","enum":["error","not_started","paused","running"]},"updated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["created_at","id","object","primary","status","updated_at"],"additionalProperties":false}}},"description":"Successful response."},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Invalid JSON or request fields."},"401":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Missing or invalid API key."},"402":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account has insufficient credits."},"403":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account cannot perform this operation."},"404":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The requested resource was not found."},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The request conflicts with existing resource state."},"429":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account exceeded this operation's request rate.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Unexpected Dexto failure."},"502":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The upstream model provider failed."},"503":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"A required Dexto service is temporarily unavailable."}},"security":[{"bearerAuth":[]}],"summary":"Start a sandbox","tags":["Sandboxes"],"x-dexto-rate-limit":{"limit":60,"periodSeconds":60,"policy":"sandbox_write"}}},"/v1/sandboxes/{sandbox_id}/pause":{"post":{"description":"Pause a sandbox","operationId":"pauseSandbox","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"object":{"type":"string","const":"sandbox"},"primary":{"type":"boolean"},"status":{"type":"string","enum":["error","not_started","paused","running"]},"updated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["created_at","id","object","primary","status","updated_at"],"additionalProperties":false}}},"description":"Successful response."},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Invalid JSON or request fields."},"401":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Missing or invalid API key."},"402":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account has insufficient credits."},"403":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account cannot perform this operation."},"404":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The requested resource was not found."},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The request conflicts with existing resource state."},"429":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account exceeded this operation's request rate.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Unexpected Dexto failure."},"502":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The upstream model provider failed."},"503":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"A required Dexto service is temporarily unavailable."}},"security":[{"bearerAuth":[]}],"summary":"Pause a sandbox","tags":["Sandboxes"],"x-dexto-rate-limit":{"limit":60,"periodSeconds":60,"policy":"sandbox_write"}}},"/v1/sandboxes/{sandbox_id}/files/list":{"post":{"description":"List sandbox files","operationId":"listSandboxFiles","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"depth":{"default":1,"type":"integer","minimum":0,"maximum":20},"path":{"default":"/workspace","type":"string"}},"additionalProperties":false}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"is_directory":{"type":"boolean"},"modified_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"name":{"type":"string"},"path":{"type":"string"},"size":{"type":"number","minimum":0}},"required":["is_directory","modified_at","name","path","size"],"additionalProperties":false}},"object":{"type":"string","const":"list"},"truncated":{"type":"boolean"}},"required":["data","object","truncated"],"additionalProperties":false}}},"description":"Successful response."},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Invalid JSON or request fields."},"401":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Missing or invalid API key."},"402":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account has insufficient credits."},"403":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account cannot perform this operation."},"404":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The requested resource was not found."},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The request conflicts with existing resource state."},"429":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account exceeded this operation's request rate.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Unexpected Dexto failure."},"502":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The upstream model provider failed."},"503":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"A required Dexto service is temporarily unavailable."}},"security":[{"bearerAuth":[]}],"summary":"List sandbox files","tags":["Sandboxes"],"x-dexto-rate-limit":{"limit":300,"periodSeconds":60,"policy":"sandbox_read"}}},"/v1/sandboxes/{sandbox_id}/files/read":{"post":{"description":"Read a sandbox file","operationId":"readSandboxFile","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"max_bytes":{"default":1048576,"type":"integer","exclusiveMinimum":0,"maximum":1048576},"path":{"type":"string"}},"required":["path"],"additionalProperties":false}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"content":{"type":"string"},"encoding":{"type":"string","const":"utf-8"},"path":{"type":"string"},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"size":{"type":"number","minimum":0}},"required":["content","encoding","path","sha256","size"],"additionalProperties":false}}},"description":"Successful response."},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Invalid JSON or request fields."},"401":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Missing or invalid API key."},"402":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account has insufficient credits."},"403":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account cannot perform this operation."},"404":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The requested resource was not found."},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The request conflicts with existing resource state."},"429":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account exceeded this operation's request rate.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Unexpected Dexto failure."},"502":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The upstream model provider failed."},"503":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"A required Dexto service is temporarily unavailable."}},"security":[{"bearerAuth":[]}],"summary":"Read a sandbox file","tags":["Sandboxes"],"x-dexto-rate-limit":{"limit":300,"periodSeconds":60,"policy":"sandbox_read"}}},"/v1/sandboxes/{sandbox_id}/files/write":{"post":{"description":"Write a sandbox file","operationId":"writeSandboxFile","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"content":{"type":"string","maxLength":1048576},"create_directories":{"default":false,"type":"boolean"},"path":{"type":"string"}},"required":["content","path"],"additionalProperties":false}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"bytes_written":{"type":"number","minimum":0},"path":{"type":"string"},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["bytes_written","path","sha256"],"additionalProperties":false}}},"description":"Successful response."},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Invalid JSON or request fields."},"401":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Missing or invalid API key."},"402":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account has insufficient credits."},"403":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account cannot perform this operation."},"404":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The requested resource was not found."},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The request conflicts with existing resource state."},"429":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account exceeded this operation's request rate.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Unexpected Dexto failure."},"502":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The upstream model provider failed."},"503":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"A required Dexto service is temporarily unavailable."}},"security":[{"bearerAuth":[]}],"summary":"Write a sandbox file","tags":["Sandboxes"],"x-dexto-rate-limit":{"limit":60,"periodSeconds":60,"policy":"sandbox_write"}}},"/v1/sandboxes/{sandbox_id}/files/delete":{"post":{"description":"Delete a sandbox file","operationId":"deleteSandboxFile","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"path":{"type":"string"}},"required":["path"],"additionalProperties":false}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"deleted":{"type":"boolean","const":true}},"required":["deleted"],"additionalProperties":false}}},"description":"Successful response."},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Invalid JSON or request fields."},"401":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Missing or invalid API key."},"402":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account has insufficient credits."},"403":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account cannot perform this operation."},"404":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The requested resource was not found."},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The request conflicts with existing resource state."},"429":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account exceeded this operation's request rate.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Unexpected Dexto failure."},"502":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The upstream model provider failed."},"503":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"A required Dexto service is temporarily unavailable."}},"security":[{"bearerAuth":[]}],"summary":"Delete a sandbox file","tags":["Sandboxes"],"x-dexto-rate-limit":{"limit":60,"periodSeconds":60,"policy":"sandbox_write"}}},"/v1/sandboxes/{sandbox_id}/processes":{"post":{"description":"Execute a sandbox process","operationId":"executeSandboxProcess","parameters":[{"in":"path","name":"sandbox_id","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"command":{"type":"string","minLength":1,"maxLength":65536},"cwd":{"default":"/workspace","type":"string"},"timeout_ms":{"default":60000,"type":"integer","exclusiveMinimum":0,"maximum":120000}},"required":["command"],"additionalProperties":false}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"exit_code":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"stderr":{"type":"string"},"stderr_truncated":{"type":"boolean"},"stdout":{"type":"string"},"stdout_truncated":{"type":"boolean"}},"required":["exit_code","stderr","stderr_truncated","stdout","stdout_truncated"],"additionalProperties":false}}},"description":"Successful response."},"400":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Invalid JSON or request fields."},"401":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Missing or invalid API key."},"402":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account has insufficient credits."},"403":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account cannot perform this operation."},"404":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The requested resource was not found."},"409":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The request conflicts with existing resource state."},"429":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The account exceeded this operation's request rate.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"Unexpected Dexto failure."},"502":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"The upstream model provider failed."},"503":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","minLength":1},"details":{"$ref":"#/$defs/__schema0"},"message":{"type":"string"},"requestId":{"type":"string","minLength":1},"retryable":{"type":"boolean"}},"required":["code","message","requestId","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}},"description":"A required Dexto service is temporarily unavailable."}},"security":[{"bearerAuth":[]}],"summary":"Execute a sandbox process","tags":["Sandboxes"],"x-dexto-rate-limit":{"limit":60,"periodSeconds":60,"policy":"sandbox_write"}}}},"servers":[{"url":"https://api.dexto.ai"}]}