{"openapi":"3.1.0","info":{"title":"Sine Agents API","version":"0.1.0","description":"Use an organization API key with agentRun and access to the selected instance. Create the instance and configure models in the Console. Hosted sessions additionally require sandboxRun and current workspace access. The native JSON and live SSE protocol is preserved. Discovery reports runtime capabilities; only operations listed in this Cloud reference are exposed. Request bodies are limited by Cloud to 256 KiB and by the native route to its own smaller limit where applicable."},"components":{"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":["string","null"]}},"required":["type","code","message","param"]}},"required":["error"]},"Agent":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"model":{"type":"string"},"instructions":{"type":["string","null"]},"tools":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"name":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,64}$"},"description":{"type":"string","maxLength":8000},"parameters":{"type":"object","additionalProperties":{}},"defer_loading":{"type":"boolean","enum":[false]}},"required":["type","name","description","parameters"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["mcp"]},"server_label":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$"},"transport":{"type":"object","properties":{"type":{"type":"string","enum":["http"]},"server_url":{"type":"string","maxLength":2048,"format":"uri"},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"required":["type","server_url","headers"],"additionalProperties":false},"allowed_tools":{"type":["array","null"],"items":{"type":"string"}},"connection_origin":{"type":"string","enum":["service"]},"credential_id":{"type":"null"},"request_metadata":{"type":"object","additionalProperties":{}},"required":{"type":"boolean"}},"required":["type","server_label","transport","allowed_tools","connection_origin","credential_id","request_metadata","required"],"additionalProperties":false}]}},"reasoning":{"type":"object","properties":{"effort":{"type":"string","enum":["none"]},"summary":{"type":"null"}},"required":["effort","summary"]},"text":{"type":"object","properties":{"format":{"type":"object","properties":{"type":{"type":"string","enum":["text"]}},"required":["type"]},"verbosity":{"type":"string","enum":["medium"]}},"required":["format","verbosity"]},"multi_agent":{"type":"object","properties":{"enabled":{"type":"boolean"},"max_concurrent_subagents":{"type":["integer","null"],"minimum":1,"maximum":8}},"required":["enabled","max_concurrent_subagents"]},"service_tier":{"type":"string","enum":["auto","default"]},"object":{"type":"string","enum":["agent"]},"created_at":{"type":"number"},"updated_at":{"type":"number"},"metadata":{"type":"object","additionalProperties":{"type":"string","maxLength":512}}},"required":["id","name","model","instructions","tools","reasoning","text","multi_agent","service_tier","object","created_at","updated_at","metadata"]},"PersistedAgentCreate":{"$ref":"#/components/schemas/AgentCreate"},"AgentCreate":{"type":"object","properties":{"model":{"type":"string","minLength":1,"maxLength":200},"instructions":{"type":["string","null"],"maxLength":64000},"tools":{"type":["array","null"],"items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"name":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,64}$"},"description":{"type":"string","maxLength":8000},"parameters":{"type":"object","additionalProperties":{}},"defer_loading":{"type":"boolean","enum":[false]}},"required":["type","name","description","parameters"],"additionalProperties":false},"maxItems":64,"description":"Cloud accepts client function tools only. Hosted bash is configured by the session environment."},"reasoning":{"type":["object","null"],"properties":{"effort":{"type":["string","null"],"enum":["none"]},"summary":{"type":"null"}},"additionalProperties":false},"text":{"type":["object","null"],"properties":{"format":{"type":"object","properties":{"type":{"type":"string","enum":["text"]}},"required":["type"],"additionalProperties":false},"verbosity":{"type":"string","enum":["medium"]}},"additionalProperties":false},"multi_agent":{"type":["object","null"],"properties":{"enabled":{"type":"boolean"},"max_concurrent_subagents":{"type":["integer","null"],"minimum":1,"maximum":8}},"additionalProperties":false},"service_tier":{"type":["string","null"],"enum":["auto","default",null]},"name":{"type":["string","null"],"maxLength":256},"metadata":{"type":["object","null"],"additionalProperties":{"type":"string","maxLength":512}}},"required":["model"],"additionalProperties":false},"Session":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","enum":["agent.session"]},"agent":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"model":{"type":"string"},"instructions":{"type":["string","null"]},"tools":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"name":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,64}$"},"description":{"type":"string","maxLength":8000},"parameters":{"type":"object","additionalProperties":{}},"defer_loading":{"type":"boolean","enum":[false]}},"required":["type","name","description","parameters"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["mcp"]},"server_label":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$"},"transport":{"type":"object","properties":{"type":{"type":"string","enum":["http"]},"server_url":{"type":"string","maxLength":2048,"format":"uri"}},"required":["type","server_url"],"additionalProperties":false},"allowed_tools":{"type":["array","null"],"items":{"type":"string"}},"connection_origin":{"type":"string","enum":["service"]},"credential_id":{"type":"null"},"request_metadata":{"type":"object","additionalProperties":{}},"required":{"type":"boolean"}},"required":["type","server_label","transport","allowed_tools","connection_origin","credential_id","request_metadata","required"],"additionalProperties":false}]}},"reasoning":{"type":"object","properties":{"effort":{"type":"string","enum":["none"]},"summary":{"type":"null"}},"required":["effort","summary"]},"text":{"type":"object","properties":{"format":{"type":"object","properties":{"type":{"type":"string","enum":["text"]}},"required":["type"]},"verbosity":{"type":"string","enum":["medium"]}},"required":["format","verbosity"]},"multi_agent":{"type":"object","properties":{"enabled":{"type":"boolean"},"max_concurrent_subagents":{"type":["integer","null"],"minimum":1,"maximum":8}},"required":["enabled","max_concurrent_subagents"]},"service_tier":{"type":"string","enum":["auto","default"]}},"required":["id","name","model","instructions","tools","reasoning","text","multi_agent","service_tier"]},"created_at":{"type":"number"},"last_active_at":{"type":"number"},"environment":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["none"]}},"required":["type"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["openai_hosted"]},"capability_directories":{"type":"array","items":{"type":"string"},"maxItems":0},"files":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["file_id"]},"file_id":{"type":"string"},"path":{"type":"string"},"size_bytes":{"type":"integer","minimum":0}},"required":["id","type","file_id","path","size_bytes"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["inline"]},"path":{"type":"string"},"size_bytes":{"type":"integer","minimum":0}},"required":["id","type","path","size_bytes"]}]}},"network":{"type":"object","properties":{"access":{"type":"string","enum":["enabled","disabled","restricted"]},"allowed_domains":{"type":"array","items":{"type":"string"}}},"required":["access","allowed_domains"]},"packages":{"type":"object","properties":{"npm":{"type":"array","items":{"type":"string"},"maxItems":0},"python":{"type":"array","items":{"type":"string"},"maxItems":0},"system":{"type":"array","items":{"type":"string"},"maxItems":0}},"required":["npm","python","system"]},"plugins":{"type":"array","items":{},"maxItems":0},"skills":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["skill_reference"]},"skill_id":{"type":"string"},"version":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"}},"required":["type","skill_id","version","name","description"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["inline"]},"name":{"type":"string"},"description":{"type":"string"}},"required":["type","name","description"],"additionalProperties":false}]}}},"required":["id","type","capability_directories","files","network","packages","plugins","skills"]}]},"error":{"type":["string","null"]},"metadata":{"type":"object","additionalProperties":{"type":"string","maxLength":512}},"status":{"type":"string","enum":["idle","in_progress","requires_action","failed"]},"required_actions":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["function_call"]},"turn_id":{"type":"string"},"call_id":{"type":"string"},"name":{"type":"string"},"arguments":{}},"required":["type","turn_id","call_id","name"]}},"usage":{"type":["object","null"],"properties":{"input_tokens":{"type":"number"},"output_tokens":{"type":"number"},"total_tokens":{"type":"number"},"input_tokens_details":{"type":"object","properties":{"cached_tokens":{"type":"number"}},"required":["cached_tokens"]},"output_tokens_details":{"type":"object","properties":{"reasoning_tokens":{"type":"number"}},"required":["reasoning_tokens"]}},"required":["input_tokens","output_tokens","total_tokens","input_tokens_details","output_tokens_details"]},"vault_ids":{"type":"array","items":{"type":"string"}}},"required":["id","object","agent","created_at","last_active_at","environment","error","metadata","status","required_actions","usage","vault_ids"]},"SessionCreate":{"type":"object","properties":{"agent":{"$ref":"#/components/schemas/AgentOverride"},"agent_id":{"type":"string","minLength":1,"pattern":"^agent_[A-Za-z0-9_-]{1,122}$"},"environment":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["none"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"network":{"type":["object","null"],"properties":{"access":{"type":"string","enum":["enabled","disabled","restricted"]},"allowed_domains":{"type":["array","null"],"items":{"type":"string","maxLength":253,"pattern":"^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)*[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$"},"maxItems":256}},"required":["access"],"additionalProperties":false},"files":{"type":["array","null"],"items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["file_id"]},"file_id":{"type":"string","minLength":1,"maxLength":256},"path":{"type":"string","maxLength":1024}},"required":["type","file_id","path"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["inline"]},"data":{"type":"string","maxLength":6990508},"path":{"type":"string","maxLength":1024}},"required":["type","data","path"],"additionalProperties":false}]},"maxItems":50},"env":{"type":["object","null"],"additionalProperties":{"type":"string","maxLength":8192}},"setup_commands":{"type":["array","null"],"items":{"type":"object","properties":{"command":{"type":"string","minLength":1,"maxLength":16000},"cwd":{"anyOf":[{"type":"string","enum":["/workspace"]},{"type":"string","maxLength":1024},{"type":"null"}]}},"required":["command"],"additionalProperties":false},"maxItems":20},"packages":{"type":["object","null"],"properties":{"npm":{"type":["array","null"],"items":{"type":"string"},"maxItems":0},"python":{"type":["array","null"],"items":{"type":"string"},"maxItems":0},"system":{"type":["array","null"],"items":{"type":"string"},"maxItems":0}},"additionalProperties":false},"capability_directories":{"type":["array","null"],"items":{"type":"string"},"maxItems":0},"plugins":{"type":["array","null"],"items":{},"maxItems":0},"skills":{"type":["array","null"],"items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["skill_reference"]},"skill_id":{"type":"string","minLength":1,"maxLength":256},"version":{"type":["string","null"],"pattern":"^(?:latest|[1-9][0-9]*)$"}},"required":["type","skill_id"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["inline"]},"name":{"type":"string","minLength":1,"maxLength":64},"description":{"type":"string","minLength":1,"maxLength":1024},"source":{"type":"object","properties":{"type":{"type":"string","enum":["base64"]},"media_type":{"type":"string","enum":["application/zip"]},"data":{"type":"string","minLength":1,"maxLength":22000000}},"required":["type","media_type","data"],"additionalProperties":false}},"required":["type","name","description","source"],"additionalProperties":false}]},"maxItems":32},"type":{"type":"string","enum":["openai_hosted"]},"environment_template_id":{"type":"string","minLength":1,"maxLength":256}},"required":["type"],"additionalProperties":false}]},"input":{"anyOf":[{"type":"string","minLength":1,"maxLength":64000},{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["message"]},"role":{"type":"string","enum":["user"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["input_text"]},"text":{"type":"string","maxLength":64000}},"required":["type","text"],"additionalProperties":false},"minItems":1,"maxItems":32}},"required":["role","content"],"additionalProperties":false},"minItems":1,"maxItems":32},{"type":"null"}]},"metadata":{"type":["object","null"],"additionalProperties":{"type":"string","maxLength":512}},"stream":{"type":"boolean"},"vault_ids":{"type":["array","null"],"items":{"type":"string"},"maxItems":0},"sine_workspace":{"type":"object","additionalProperties":false,"description":"Cloud workspace selection for an openai_hosted environment. Requires sandboxRun. Omit both IDs for the instance workspace. box_id selects a legacy workspace; independent_box_id selects an explicitly associated independent Box with current access. Selections are mutually exclusive.","properties":{"box_id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"independent_box_id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"path":{"type":"string","default":"/workspace","maxLength":1024,"pattern":"^/workspace(?:/[^/]+)*$","description":"Canonical absolute workspace path. No dot segments, percent signs, backslashes or control characters."}},"not":{"required":["box_id","independent_box_id"]}}},"required":["environment"],"additionalProperties":false,"allOf":[{"if":{"required":["sine_workspace"]},"then":{"properties":{"environment":{"properties":{"type":{"const":"openai_hosted"}}}}}}]},"AgentOverride":{"type":"object","properties":{"model":{"type":"string","minLength":1,"maxLength":200},"instructions":{"type":["string","null"],"maxLength":64000},"tools":{"type":["array","null"],"items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"name":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,64}$"},"description":{"type":"string","maxLength":8000},"parameters":{"type":"object","additionalProperties":{}},"defer_loading":{"type":"boolean","enum":[false]}},"required":["type","name","description","parameters"],"additionalProperties":false},"maxItems":64,"description":"Cloud accepts client function tools only. Hosted bash is configured by the session environment."},"reasoning":{"type":["object","null"],"properties":{"effort":{"type":["string","null"],"enum":["none"]},"summary":{"type":"null"}},"additionalProperties":false},"text":{"type":["object","null"],"properties":{"format":{"type":"object","properties":{"type":{"type":"string","enum":["text"]}},"required":["type"],"additionalProperties":false},"verbosity":{"type":"string","enum":["medium"]}},"additionalProperties":false},"multi_agent":{"type":["object","null"],"properties":{"enabled":{"type":"boolean"},"max_concurrent_subagents":{"type":["integer","null"],"minimum":1,"maximum":8}},"additionalProperties":false},"service_tier":{"type":["string","null"],"enum":["auto","default",null]}},"additionalProperties":false},"Item":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["message"]},"turn_id":{"type":"string"},"role":{"type":"string","enum":["user","assistant"]},"phase":{"type":["string","null"],"enum":["commentary","final_answer",null]},"status":{"type":"string","enum":["in_progress","completed","incomplete"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["input_text","output_text"]},"text":{"type":"string"}},"required":["type","text"]}}},"required":["id","type","turn_id","role","phase","status","content"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["function_call"]},"turn_id":{"type":"string"},"call_id":{"type":"string"},"name":{"type":"string"},"arguments":{},"status":{"type":"string","enum":["in_progress","completed","failed","incomplete"]}},"required":["id","type","turn_id","call_id","name","status"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["function_call_output"]},"turn_id":{"type":"string"},"call_id":{"type":"string"},"output":{},"status":{"type":"string","enum":["in_progress","completed","failed","incomplete"]},"error":{"type":["string","null"]}},"required":["id","type","turn_id","call_id","status","error"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["mcp_call"]},"turn_id":{"type":"string"},"server_label":{"type":"string"},"name":{"type":"string"},"arguments":{},"output":{},"error":{},"status":{"type":"string","enum":["in_progress","completed","failed","incomplete"]}},"required":["id","type","turn_id","server_label","name","status"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["create_subagent_call"]},"agent_id":{"type":"string"},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["output_text"]},"text":{"type":"string"}},"required":["type","text"]}},"model":{"type":["string","null"]},"reasoning_effort":{"type":["string","null"]},"turn_id":{"type":"string"},"status":{"type":"string","enum":["in_progress","completed","incomplete","failed"]}},"required":["id","type","agent_id","content","model","reasoning_effort","turn_id","status"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["command_execution"]},"turn_id":{"type":"string"},"command":{"type":"string"},"cwd":{"type":["string","null"]},"duration_ms":{"type":["number","null"]},"exit_code":{"type":["number","null"]},"output":{"type":["string","null"]},"status":{"type":"string","enum":["in_progress","completed","failed","incomplete"]}},"required":["id","type","turn_id","command","cwd","duration_ms","exit_code","output","status"]}]},"Turn":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","enum":["agent.session.turn"]},"agent_id":{"type":"string"},"session_id":{"type":"string"},"subagent_id":{"type":["string","null"]},"created_at":{"type":"number"},"started_at":{"type":["number","null"]},"completed_at":{"type":["number","null"]},"status":{"type":"string","enum":["queued","in_progress","waiting","completed","failed","cancelled"]},"error":{"type":["object","null"],"properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]},"usage":{"type":["object","null"],"properties":{"input_tokens":{"type":"number"},"output_tokens":{"type":"number"},"total_tokens":{"type":"number"},"input_tokens_details":{"type":"object","properties":{"cached_tokens":{"type":"number"}},"required":["cached_tokens"]},"output_tokens_details":{"type":"object","properties":{"reasoning_tokens":{"type":"number"}},"required":["reasoning_tokens"]}},"required":["input_tokens","output_tokens","total_tokens","input_tokens_details","output_tokens_details"]}},"required":["id","object","agent_id","session_id","subagent_id","created_at","started_at","completed_at","status","error","usage"]},"SessionUpdate":{"type":"object","properties":{"metadata":{"type":["object","null"],"additionalProperties":{"type":"string","maxLength":512}}},"additionalProperties":false},"InputEvents":{"type":"object","properties":{"events":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["agent.session.input.message"]},"input":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["message"]},"role":{"type":"string","enum":["user"]},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["input_text"]},"text":{"type":"string","maxLength":64000}},"required":["type","text"],"additionalProperties":false},"minItems":1,"maxItems":32}},"required":["role","content"],"additionalProperties":false},"minItems":1,"maxItems":32}},"required":["type","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["agent.session.input.cancel"]}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["agent.session.input.tool_result"]},"turn_id":{"type":"string","minLength":1},"call_id":{"type":"string","minLength":1},"success":{"type":"boolean"},"output":{"anyOf":[{"type":"string","maxLength":128000},{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["input_text"]},"text":{"type":"string","maxLength":64000}},"required":["type","text"],"additionalProperties":false},"maxItems":32},{"type":"null"}]},"error":{"type":["string","null"],"maxLength":8000}},"required":["type","turn_id","call_id","success"],"additionalProperties":false}]},"minItems":1,"maxItems":32}},"required":["events"],"additionalProperties":false},"AgentUpdate":{"type":"object","properties":{"model":{"type":"string","minLength":1,"maxLength":200},"instructions":{"type":["string","null"],"maxLength":64000},"tools":{"type":["array","null"],"items":{"type":"object","properties":{"type":{"type":"string","enum":["function"]},"name":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,64}$"},"description":{"type":"string","maxLength":8000},"parameters":{"type":"object","additionalProperties":{}},"defer_loading":{"type":"boolean","enum":[false]}},"required":["type","name","description","parameters"],"additionalProperties":false},"maxItems":64,"description":"Cloud accepts client function tools only. Hosted bash is configured by the session environment."},"reasoning":{"type":["object","null"],"properties":{"effort":{"type":["string","null"],"enum":["none"]},"summary":{"type":"null"}},"additionalProperties":false},"text":{"type":["object","null"],"properties":{"format":{"type":"object","properties":{"type":{"type":"string","enum":["text"]}},"required":["type"],"additionalProperties":false},"verbosity":{"type":"string","enum":["medium"]}},"additionalProperties":false},"multi_agent":{"type":["object","null"],"properties":{"enabled":{"type":"boolean"},"max_concurrent_subagents":{"type":["integer","null"],"minimum":1,"maximum":8}},"additionalProperties":false},"service_tier":{"type":["string","null"],"enum":["auto","default",null]},"name":{"type":["string","null"],"maxLength":256},"metadata":{"type":["object","null"],"additionalProperties":{"type":"string","maxLength":512}}},"additionalProperties":false},"SessionUsage":{"type":"object","properties":{"object":{"type":"string","enum":["sine.session.usage"]},"session_id":{"type":"string"},"attempt_count":{"type":"number"},"running_attempts":{"type":"number"},"incomplete_attempts":{"type":"number"},"untracked_attempts":{"type":"number"},"pending_delivery":{"type":"number"},"complete":{"type":"boolean"},"known_tokens":{"$ref":"#/components/schemas/ObservedTokens"}},"required":["object","session_id","attempt_count","running_attempts","incomplete_attempts","untracked_attempts","pending_delivery","complete","known_tokens"]},"ObservedTokens":{"type":"object","properties":{"input_tokens":{"type":["integer","null"],"minimum":0},"output_tokens":{"type":["integer","null"],"minimum":0},"total_tokens":{"type":["integer","null"],"minimum":0},"cached_tokens":{"type":["integer","null"],"minimum":0},"reasoning_tokens":{"type":["integer","null"],"minimum":0}},"required":["input_tokens","output_tokens","total_tokens","cached_tokens","reasoning_tokens"]},"ModelAttempt":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","enum":["sine.model_attempt"]},"session_id":{"type":"string"},"turn_id":{"type":"string"},"model":{"type":"string"},"backend":{"type":"string","enum":["mock","workers-ai","openai-compatible","gateway"]},"billing_owner":{"type":"string","enum":["agents","gateway"]},"gateway_invocation_id":{"type":"string","maxLength":200},"status":{"type":"string","enum":["running","completed","failed","interrupted","cancelled"]},"started_at":{"type":"number"},"completed_at":{"type":["number","null"]},"reason":{"type":["string","null"]},"tokens":{"$ref":"#/components/schemas/ObservedTokens"},"usage_final":{"type":"boolean"}},"required":["id","object","session_id","turn_id","model","backend","status","started_at","completed_at","reason","tokens","usage_final"]}},"securitySchemes":{"OrganizationApiKey":{"type":"http","scheme":"bearer","bearerFormat":"sc_…","description":"Organization API key with the required product scopes. Create and manage keys in the Sine Cloud Console. The key fixes the organization and may restrict the project."}}},"paths":{"/api/agents/v1/{instanceId}":{"post":{"summary":"Create a reusable agent with function tools","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersistedAgentCreate"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"400":{"description":"Invalid or unsupported request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"401":{"description":"Missing, invalid or revoked organization API key.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"WWW-Authenticate":{"schema":{"type":"string","const":"Bearer"}}}},"402":{"description":"Insufficient funds or execution budget.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"403":{"description":"Product scope, instance, project, workspace or current entitlement denied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"404":{"description":"Resource not found in this scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"409":{"description":"State or idempotency conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"413":{"description":"Request body exceeds the route limit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"429":{"description":"Rate or quota limit reached. Respect Retry-After when supplied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Retry delay when supplied.","schema":{"type":"string"}}}},"501":{"description":"Capability not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"502":{"description":"Runtime response unavailable; read durable session state before attempting more execution.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"503":{"description":"Runtime, deployment, model or billing admission unavailable.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"504":{"description":"Gateway deadline exceeded; execution may have started. Inspect durable state before another submission.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}}},"x-sinecloud-scopes":["agentRun"],"operationId":"agents_post_v1_agents","tags":["Agents"],"description":"Create a reusable agent with function tools","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"description":"An accessible Agents instance from the Console."},{"name":"OpenAI-Beta","in":"header","required":true,"schema":{"type":"string","enum":["agents=v1"]}}],"security":[{"OrganizationApiKey":[]}]},"get":{"summary":"List reusable agents","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"description":"An accessible Agents instance from the Console."},{"schema":{"type":"string","minLength":1},"required":false,"name":"after","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","enum":["asc","desc"],"default":"desc"},"required":false,"name":"order","in":"query"},{"name":"OpenAI-Beta","in":"header","required":true,"schema":{"type":"string","enum":["agents=v1"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Agent"}},"has_more":{"type":"boolean"},"first_id":{"type":["string","null"]},"last_id":{"type":["string","null"]}},"required":["object","data","has_more","first_id","last_id"]}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"400":{"description":"Invalid or unsupported request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"401":{"description":"Missing, invalid or revoked organization API key.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"WWW-Authenticate":{"schema":{"type":"string","const":"Bearer"}}}},"402":{"description":"Insufficient funds or execution budget.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"403":{"description":"Product scope, instance, project, workspace or current entitlement denied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"404":{"description":"Resource not found in this scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"409":{"description":"State or idempotency conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"413":{"description":"Request body exceeds the route limit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"429":{"description":"Rate or quota limit reached. Respect Retry-After when supplied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Retry delay when supplied.","schema":{"type":"string"}}}},"501":{"description":"Capability not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"502":{"description":"Runtime response unavailable; read durable session state before attempting more execution.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"503":{"description":"Runtime, deployment, model or billing admission unavailable.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"504":{"description":"Gateway deadline exceeded; execution may have started. Inspect durable state before another submission.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}}},"x-sinecloud-scopes":["agentRun"],"operationId":"agents_get_v1_agents","tags":["Agents"],"description":"List reusable agents","security":[{"OrganizationApiKey":[]}]}},"/api/agents/v1/{instanceId}/sessions":{"post":{"summary":"Create a none or hosted session","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionCreate"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}},"text/event-stream":{"schema":{"type":"string","description":"OpenAI Agents live SSE; see compatibility documentation for supported events."}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"400":{"description":"Invalid or unsupported request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"401":{"description":"Missing, invalid or revoked organization API key.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"WWW-Authenticate":{"schema":{"type":"string","const":"Bearer"}}}},"402":{"description":"Insufficient funds or execution budget.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"403":{"description":"Product scope, instance, project, workspace or current entitlement denied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"404":{"description":"Resource not found in this scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"409":{"description":"State or idempotency conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"413":{"description":"Request body exceeds the route limit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"429":{"description":"Rate or quota limit reached. Respect Retry-After when supplied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Retry delay when supplied.","schema":{"type":"string"}}}},"501":{"description":"Capability not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"502":{"description":"Runtime response unavailable; read durable session state before attempting more execution.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"503":{"description":"Runtime, deployment, model or billing admission unavailable.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"504":{"description":"Gateway deadline exceeded; execution may have started. Inspect durable state before another submission.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}}},"x-sinecloud-scopes":["agentRun"],"operationId":"agents_post_v1_agents_sessions","tags":["Agents"],"description":"Create a none or hosted session\n\nSet stream=true for SSE, otherwise receive the native session JSON. Keep the same Idempotency-Key for recovery; a changed request with the same key conflicts.","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"description":"An accessible Agents instance from the Console."},{"name":"OpenAI-Beta","in":"header","required":true,"schema":{"type":"string","enum":["agents=v1"]}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string"},"description":"Reuse with the original session creation body when recovering an uncertain response."}],"security":[{"OrganizationApiKey":[]}]},"get":{"summary":"List sessions","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"description":"An accessible Agents instance from the Console."},{"schema":{"type":"string","minLength":1},"required":false,"name":"after","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","enum":["asc","desc"],"default":"desc"},"required":false,"name":"order","in":"query"},{"schema":{"type":"string","minLength":1},"required":false,"name":"agent_id","in":"query"},{"name":"OpenAI-Beta","in":"header","required":true,"schema":{"type":"string","enum":["agents=v1"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Session"}},"has_more":{"type":"boolean"},"first_id":{"type":["string","null"]},"last_id":{"type":["string","null"]}},"required":["object","data","has_more","first_id","last_id"]}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"400":{"description":"Invalid or unsupported request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"401":{"description":"Missing, invalid or revoked organization API key.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"WWW-Authenticate":{"schema":{"type":"string","const":"Bearer"}}}},"402":{"description":"Insufficient funds or execution budget.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"403":{"description":"Product scope, instance, project, workspace or current entitlement denied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"404":{"description":"Resource not found in this scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"409":{"description":"State or idempotency conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"413":{"description":"Request body exceeds the route limit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"429":{"description":"Rate or quota limit reached. Respect Retry-After when supplied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Retry delay when supplied.","schema":{"type":"string"}}}},"501":{"description":"Capability not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"502":{"description":"Runtime response unavailable; read durable session state before attempting more execution.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"503":{"description":"Runtime, deployment, model or billing admission unavailable.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"504":{"description":"Gateway deadline exceeded; execution may have started. Inspect durable state before another submission.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}}},"x-sinecloud-scopes":["agentRun"],"operationId":"agents_get_v1_agents_sessions","tags":["Agents"],"description":"List sessions\n\nRead persisted session state and observed usage to recover an interrupted or uncertain execution.","security":[{"OrganizationApiKey":[]}]}},"/api/agents/v1/{instanceId}/sessions/{session_id}":{"get":{"summary":"Retrieve a session","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"description":"An accessible Agents instance from the Console."},{"schema":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9_-]{1,128}$","maxLength":128},"required":true,"name":"session_id","in":"path"},{"name":"OpenAI-Beta","in":"header","required":true,"schema":{"type":"string","enum":["agents=v1"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"400":{"description":"Invalid or unsupported request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"401":{"description":"Missing, invalid or revoked organization API key.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"WWW-Authenticate":{"schema":{"type":"string","const":"Bearer"}}}},"402":{"description":"Insufficient funds or execution budget.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"403":{"description":"Product scope, instance, project, workspace or current entitlement denied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"404":{"description":"Resource not found in this scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"409":{"description":"State or idempotency conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"413":{"description":"Request body exceeds the route limit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"429":{"description":"Rate or quota limit reached. Respect Retry-After when supplied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Retry delay when supplied.","schema":{"type":"string"}}}},"501":{"description":"Capability not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"502":{"description":"Runtime response unavailable; read durable session state before attempting more execution.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"503":{"description":"Runtime, deployment, model or billing admission unavailable.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"504":{"description":"Gateway deadline exceeded; execution may have started. Inspect durable state before another submission.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}}},"x-sinecloud-scopes":["agentRun"],"operationId":"agents_get_v1_agents_sessions_session_id","tags":["Agents"],"description":"Retrieve a session\n\nRead persisted session state and observed usage to recover an interrupted or uncertain execution.","security":[{"OrganizationApiKey":[]}]},"post":{"summary":"Update session metadata","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"description":"An accessible Agents instance from the Console."},{"schema":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9_-]{1,128}$","maxLength":128},"required":true,"name":"session_id","in":"path"},{"name":"OpenAI-Beta","in":"header","required":true,"schema":{"type":"string","enum":["agents=v1"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionUpdate"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"400":{"description":"Invalid or unsupported request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"401":{"description":"Missing, invalid or revoked organization API key.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"WWW-Authenticate":{"schema":{"type":"string","const":"Bearer"}}}},"402":{"description":"Insufficient funds or execution budget.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"403":{"description":"Product scope, instance, project, workspace or current entitlement denied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"404":{"description":"Resource not found in this scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"409":{"description":"State or idempotency conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"413":{"description":"Request body exceeds the route limit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"429":{"description":"Rate or quota limit reached. Respect Retry-After when supplied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Retry delay when supplied.","schema":{"type":"string"}}}},"501":{"description":"Capability not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"502":{"description":"Runtime response unavailable; read durable session state before attempting more execution.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"503":{"description":"Runtime, deployment, model or billing admission unavailable.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"504":{"description":"Gateway deadline exceeded; execution may have started. Inspect durable state before another submission.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}}},"x-sinecloud-scopes":["agentRun"],"operationId":"agents_post_v1_agents_sessions_session_id","tags":["Agents"],"description":"Update session metadata","security":[{"OrganizationApiKey":[]}]},"delete":{"summary":"Delete a session","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"description":"An accessible Agents instance from the Console."},{"schema":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9_-]{1,128}$","maxLength":128},"required":true,"name":"session_id","in":"path"},{"name":"OpenAI-Beta","in":"header","required":true,"schema":{"type":"string","enum":["agents=v1"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","enum":["agent.session.deleted"]},"deleted":{"type":"boolean","enum":[true]}},"required":["id","object","deleted"]}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"400":{"description":"Invalid or unsupported request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"401":{"description":"Missing, invalid or revoked organization API key.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"WWW-Authenticate":{"schema":{"type":"string","const":"Bearer"}}}},"402":{"description":"Insufficient funds or execution budget.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"403":{"description":"Product scope, instance, project, workspace or current entitlement denied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"404":{"description":"Resource not found in this scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"409":{"description":"State or idempotency conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"413":{"description":"Request body exceeds the route limit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"429":{"description":"Rate or quota limit reached. Respect Retry-After when supplied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Retry delay when supplied.","schema":{"type":"string"}}}},"501":{"description":"Capability not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"502":{"description":"Runtime response unavailable; read durable session state before attempting more execution.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"503":{"description":"Runtime, deployment, model or billing admission unavailable.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"504":{"description":"Gateway deadline exceeded; execution may have started. Inspect durable state before another submission.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}}},"x-sinecloud-scopes":["agentRun"],"operationId":"agents_delete_v1_agents_sessions_session_id","tags":["Agents"],"description":"Delete a session","security":[{"OrganizationApiKey":[]}]}},"/api/agents/v1/{instanceId}/sessions/{session_id}/events":{"get":{"summary":"Subscribe to live events (no replay)","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"description":"An accessible Agents instance from the Console."},{"schema":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9_-]{1,128}$","maxLength":128},"required":true,"name":"session_id","in":"path"},{"name":"OpenAI-Beta","in":"header","required":true,"schema":{"type":"string","enum":["agents=v1"]}}],"responses":{"200":{"description":"Success","content":{"text/event-stream":{"schema":{"type":"string","description":"OpenAI Agents live SSE; see compatibility documentation for supported events."}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"400":{"description":"Invalid or unsupported request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"401":{"description":"Missing, invalid or revoked organization API key.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"WWW-Authenticate":{"schema":{"type":"string","const":"Bearer"}}}},"402":{"description":"Insufficient funds or execution budget.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"403":{"description":"Product scope, instance, project, workspace or current entitlement denied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"404":{"description":"Resource not found in this scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"409":{"description":"State or idempotency conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"413":{"description":"Request body exceeds the route limit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"429":{"description":"Rate or quota limit reached. Respect Retry-After when supplied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Retry delay when supplied.","schema":{"type":"string"}}}},"501":{"description":"Capability not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"502":{"description":"Runtime response unavailable; read durable session state before attempting more execution.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"503":{"description":"Runtime, deployment, model or billing admission unavailable.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"504":{"description":"Gateway deadline exceeded; execution may have started. Inspect durable state before another submission.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}}},"x-sinecloud-scopes":["agentRun"],"operationId":"agents_get_v1_agents_sessions_session_id_events","tags":["Agents"],"description":"Subscribe to live events (no replay)\n\nEvents are live text/event-stream without replay. A reconnect does not recover missed events; inspect session items and turns.\n\nRead persisted session state and observed usage to recover an interrupted or uncertain execution.","security":[{"OrganizationApiKey":[]}]},"post":{"summary":"Submit input, cancel, or client tool results","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"description":"An accessible Agents instance from the Console."},{"schema":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9_-]{1,128}$","maxLength":128},"required":true,"name":"session_id","in":"path"},{"name":"OpenAI-Beta","in":"header","required":true,"schema":{"type":"string","enum":["agents=v1"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputEvents"}}},"required":true},"responses":{"204":{"description":"Success","headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"400":{"description":"Invalid or unsupported request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"401":{"description":"Missing, invalid or revoked organization API key.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"WWW-Authenticate":{"schema":{"type":"string","const":"Bearer"}}}},"402":{"description":"Insufficient funds or execution budget.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"403":{"description":"Product scope, instance, project, workspace or current entitlement denied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"404":{"description":"Resource not found in this scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"409":{"description":"State or idempotency conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"413":{"description":"Request body exceeds the route limit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"429":{"description":"Rate or quota limit reached. Respect Retry-After when supplied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Retry delay when supplied.","schema":{"type":"string"}}}},"501":{"description":"Capability not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"502":{"description":"Runtime response unavailable; read durable session state before attempting more execution.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"503":{"description":"Runtime, deployment, model or billing admission unavailable.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"504":{"description":"Gateway deadline exceeded; execution may have started. Inspect durable state before another submission.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}}},"x-sinecloud-scopes":["agentRun"],"operationId":"agents_post_v1_agents_sessions_session_id_events","tags":["Agents"],"description":"Submit input, cancel, or client tool results\n\nSubmit native input events. Cancel-only event submissions remain available during a billing hold.","security":[{"OrganizationApiKey":[]}]}},"/api/agents/v1/{instanceId}/sessions/{session_id}/items":{"get":{"summary":"List saved items","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"description":"An accessible Agents instance from the Console."},{"schema":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9_-]{1,128}$","maxLength":128},"required":true,"name":"session_id","in":"path"},{"schema":{"type":"string","minLength":1},"required":false,"name":"after","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","enum":["asc","desc"],"default":"desc"},"required":false,"name":"order","in":"query"},{"name":"OpenAI-Beta","in":"header","required":true,"schema":{"type":"string","enum":["agents=v1"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"has_more":{"type":"boolean"},"first_id":{"type":["string","null"]},"last_id":{"type":["string","null"]}},"required":["object","data","has_more","first_id","last_id"]}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"400":{"description":"Invalid or unsupported request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"401":{"description":"Missing, invalid or revoked organization API key.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"WWW-Authenticate":{"schema":{"type":"string","const":"Bearer"}}}},"402":{"description":"Insufficient funds or execution budget.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"403":{"description":"Product scope, instance, project, workspace or current entitlement denied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"404":{"description":"Resource not found in this scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"409":{"description":"State or idempotency conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"413":{"description":"Request body exceeds the route limit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"429":{"description":"Rate or quota limit reached. Respect Retry-After when supplied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Retry delay when supplied.","schema":{"type":"string"}}}},"501":{"description":"Capability not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"502":{"description":"Runtime response unavailable; read durable session state before attempting more execution.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"503":{"description":"Runtime, deployment, model or billing admission unavailable.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"504":{"description":"Gateway deadline exceeded; execution may have started. Inspect durable state before another submission.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}}},"x-sinecloud-scopes":["agentRun"],"operationId":"agents_get_v1_agents_sessions_session_id_items","tags":["Agents"],"description":"List saved items\n\nRead persisted session state and observed usage to recover an interrupted or uncertain execution.","security":[{"OrganizationApiKey":[]}]}},"/api/agents/v1/{instanceId}/sessions/{session_id}/turns":{"get":{"summary":"List turns","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"description":"An accessible Agents instance from the Console."},{"schema":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9_-]{1,128}$","maxLength":128},"required":true,"name":"session_id","in":"path"},{"schema":{"type":"string","minLength":1},"required":false,"name":"after","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","enum":["asc","desc"],"default":"desc"},"required":false,"name":"order","in":"query"},{"name":"OpenAI-Beta","in":"header","required":true,"schema":{"type":"string","enum":["agents=v1"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Turn"}},"has_more":{"type":"boolean"},"first_id":{"type":["string","null"]},"last_id":{"type":["string","null"]}},"required":["object","data","has_more","first_id","last_id"]}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"400":{"description":"Invalid or unsupported request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"401":{"description":"Missing, invalid or revoked organization API key.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"WWW-Authenticate":{"schema":{"type":"string","const":"Bearer"}}}},"402":{"description":"Insufficient funds or execution budget.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"403":{"description":"Product scope, instance, project, workspace or current entitlement denied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"404":{"description":"Resource not found in this scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"409":{"description":"State or idempotency conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"413":{"description":"Request body exceeds the route limit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"429":{"description":"Rate or quota limit reached. Respect Retry-After when supplied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Retry delay when supplied.","schema":{"type":"string"}}}},"501":{"description":"Capability not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"502":{"description":"Runtime response unavailable; read durable session state before attempting more execution.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"503":{"description":"Runtime, deployment, model or billing admission unavailable.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"504":{"description":"Gateway deadline exceeded; execution may have started. Inspect durable state before another submission.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}}},"x-sinecloud-scopes":["agentRun"],"operationId":"agents_get_v1_agents_sessions_session_id_turns","tags":["Agents"],"description":"List turns\n\nRead persisted session state and observed usage to recover an interrupted or uncertain execution.","security":[{"OrganizationApiKey":[]}]}},"/api/agents/v1/{instanceId}/sessions/{session_id}/turns/{turn_id}":{"get":{"summary":"Retrieve a turn","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"description":"An accessible Agents instance from the Console."},{"schema":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9_-]{1,128}$","maxLength":128},"required":true,"name":"session_id","in":"path"},{"schema":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9_-]{1,128}$","maxLength":128},"required":true,"name":"turn_id","in":"path"},{"name":"OpenAI-Beta","in":"header","required":true,"schema":{"type":"string","enum":["agents=v1"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Turn"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"400":{"description":"Invalid or unsupported request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"401":{"description":"Missing, invalid or revoked organization API key.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"WWW-Authenticate":{"schema":{"type":"string","const":"Bearer"}}}},"402":{"description":"Insufficient funds or execution budget.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"403":{"description":"Product scope, instance, project, workspace or current entitlement denied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"404":{"description":"Resource not found in this scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"409":{"description":"State or idempotency conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"413":{"description":"Request body exceeds the route limit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"429":{"description":"Rate or quota limit reached. Respect Retry-After when supplied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Retry delay when supplied.","schema":{"type":"string"}}}},"501":{"description":"Capability not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"502":{"description":"Runtime response unavailable; read durable session state before attempting more execution.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"503":{"description":"Runtime, deployment, model or billing admission unavailable.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"504":{"description":"Gateway deadline exceeded; execution may have started. Inspect durable state before another submission.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}}},"x-sinecloud-scopes":["agentRun"],"operationId":"agents_get_v1_agents_sessions_session_id_turns_turn_id","tags":["Agents"],"description":"Retrieve a turn\n\nRead persisted session state and observed usage to recover an interrupted or uncertain execution.","security":[{"OrganizationApiKey":[]}]}},"/api/agents/v1/{instanceId}/{agent_id}":{"get":{"summary":"Retrieve a reusable agent","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"description":"An accessible Agents instance from the Console."},{"schema":{"type":"string","minLength":1,"pattern":"^agent_[A-Za-z0-9_-]{1,122}$","maxLength":128},"required":true,"name":"agent_id","in":"path"},{"name":"OpenAI-Beta","in":"header","required":true,"schema":{"type":"string","enum":["agents=v1"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"400":{"description":"Invalid or unsupported request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"401":{"description":"Missing, invalid or revoked organization API key.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"WWW-Authenticate":{"schema":{"type":"string","const":"Bearer"}}}},"402":{"description":"Insufficient funds or execution budget.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"403":{"description":"Product scope, instance, project, workspace or current entitlement denied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"404":{"description":"Resource not found in this scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"409":{"description":"State or idempotency conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"413":{"description":"Request body exceeds the route limit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"429":{"description":"Rate or quota limit reached. Respect Retry-After when supplied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Retry delay when supplied.","schema":{"type":"string"}}}},"501":{"description":"Capability not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"502":{"description":"Runtime response unavailable; read durable session state before attempting more execution.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"503":{"description":"Runtime, deployment, model or billing admission unavailable.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"504":{"description":"Gateway deadline exceeded; execution may have started. Inspect durable state before another submission.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}}},"x-sinecloud-scopes":["agentRun"],"operationId":"agents_get_v1_agents_agent_id","tags":["Agents"],"description":"Retrieve a reusable agent","security":[{"OrganizationApiKey":[]}]},"post":{"summary":"Update a reusable agent","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"description":"An accessible Agents instance from the Console."},{"schema":{"type":"string","minLength":1,"pattern":"^agent_[A-Za-z0-9_-]{1,122}$","maxLength":128},"required":true,"name":"agent_id","in":"path"},{"name":"OpenAI-Beta","in":"header","required":true,"schema":{"type":"string","enum":["agents=v1"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUpdate"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"400":{"description":"Invalid or unsupported request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"401":{"description":"Missing, invalid or revoked organization API key.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"WWW-Authenticate":{"schema":{"type":"string","const":"Bearer"}}}},"402":{"description":"Insufficient funds or execution budget.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"403":{"description":"Product scope, instance, project, workspace or current entitlement denied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"404":{"description":"Resource not found in this scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"409":{"description":"State or idempotency conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"413":{"description":"Request body exceeds the route limit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"429":{"description":"Rate or quota limit reached. Respect Retry-After when supplied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Retry delay when supplied.","schema":{"type":"string"}}}},"501":{"description":"Capability not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"502":{"description":"Runtime response unavailable; read durable session state before attempting more execution.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"503":{"description":"Runtime, deployment, model or billing admission unavailable.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"504":{"description":"Gateway deadline exceeded; execution may have started. Inspect durable state before another submission.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}}},"x-sinecloud-scopes":["agentRun"],"operationId":"agents_post_v1_agents_agent_id","tags":["Agents"],"description":"Update a reusable agent","security":[{"OrganizationApiKey":[]}]},"delete":{"summary":"Delete a reusable agent","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"description":"An accessible Agents instance from the Console."},{"schema":{"type":"string","minLength":1,"pattern":"^agent_[A-Za-z0-9_-]{1,122}$","maxLength":128},"required":true,"name":"agent_id","in":"path"},{"name":"OpenAI-Beta","in":"header","required":true,"schema":{"type":"string","enum":["agents=v1"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","enum":["agent.deleted"]},"deleted":{"type":"boolean","enum":[true]}},"required":["id","object","deleted"]}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"400":{"description":"Invalid or unsupported request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"401":{"description":"Missing, invalid or revoked organization API key.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"WWW-Authenticate":{"schema":{"type":"string","const":"Bearer"}}}},"402":{"description":"Insufficient funds or execution budget.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"403":{"description":"Product scope, instance, project, workspace or current entitlement denied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"404":{"description":"Resource not found in this scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"409":{"description":"State or idempotency conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"413":{"description":"Request body exceeds the route limit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"429":{"description":"Rate or quota limit reached. Respect Retry-After when supplied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Retry delay when supplied.","schema":{"type":"string"}}}},"501":{"description":"Capability not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"502":{"description":"Runtime response unavailable; read durable session state before attempting more execution.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"503":{"description":"Runtime, deployment, model or billing admission unavailable.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"504":{"description":"Gateway deadline exceeded; execution may have started. Inspect durable state before another submission.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}}},"x-sinecloud-scopes":["agentRun"],"operationId":"agents_delete_v1_agents_agent_id","tags":["Agents"],"description":"Delete a reusable agent","security":[{"OrganizationApiKey":[]}]}},"/api/agents/v1/{instanceId}/sessions/{session_id}/usage":{"get":{"summary":"Retrieve observed session usage, including after session deletion","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"description":"An accessible Agents instance from the Console."},{"schema":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9_-]{1,128}$","maxLength":128},"required":true,"name":"session_id","in":"path"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionUsage"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"400":{"description":"Invalid or unsupported request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"401":{"description":"Missing, invalid or revoked organization API key.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"WWW-Authenticate":{"schema":{"type":"string","const":"Bearer"}}}},"402":{"description":"Insufficient funds or execution budget.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"403":{"description":"Product scope, instance, project, workspace or current entitlement denied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"404":{"description":"Resource not found in this scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"409":{"description":"State or idempotency conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"413":{"description":"Request body exceeds the route limit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"429":{"description":"Rate or quota limit reached. Respect Retry-After when supplied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Retry delay when supplied.","schema":{"type":"string"}}}},"501":{"description":"Capability not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"502":{"description":"Runtime response unavailable; read durable session state before attempting more execution.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"503":{"description":"Runtime, deployment, model or billing admission unavailable.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"504":{"description":"Gateway deadline exceeded; execution may have started. Inspect durable state before another submission.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}}},"x-sinecloud-scopes":["agentRun"],"operationId":"agents_get_sine_v1_sessions_session_id_usage","tags":["Agents"],"description":"Retrieve observed session usage, including after session deletion\n\nRead persisted session state and observed usage to recover an interrupted or uncertain execution.","security":[{"OrganizationApiKey":[]}]}},"/api/agents/v1/{instanceId}/sessions/{session_id}/attempts":{"get":{"summary":"List durable model attempts, including interrupted attempts","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"description":"An accessible Agents instance from the Console."},{"schema":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9_-]{1,128}$","maxLength":128},"required":true,"name":"session_id","in":"path"},{"schema":{"type":"string","minLength":1},"required":false,"name":"after","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","enum":["asc","desc"],"default":"desc"},"required":false,"name":"order","in":"query"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/ModelAttempt"}},"has_more":{"type":"boolean"},"first_id":{"type":["string","null"]},"last_id":{"type":["string","null"]}},"required":["object","data","has_more","first_id","last_id"]}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"400":{"description":"Invalid or unsupported request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"401":{"description":"Missing, invalid or revoked organization API key.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"WWW-Authenticate":{"schema":{"type":"string","const":"Bearer"}}}},"402":{"description":"Insufficient funds or execution budget.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"403":{"description":"Product scope, instance, project, workspace or current entitlement denied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"404":{"description":"Resource not found in this scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"409":{"description":"State or idempotency conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"413":{"description":"Request body exceeds the route limit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"429":{"description":"Rate or quota limit reached. Respect Retry-After when supplied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Retry delay when supplied.","schema":{"type":"string"}}}},"501":{"description":"Capability not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"502":{"description":"Runtime response unavailable; read durable session state before attempting more execution.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"503":{"description":"Runtime, deployment, model or billing admission unavailable.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"504":{"description":"Gateway deadline exceeded; execution may have started. Inspect durable state before another submission.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}}},"x-sinecloud-scopes":["agentRun"],"operationId":"agents_get_sine_v1_sessions_session_id_attempts","tags":["Agents"],"description":"List durable model attempts, including interrupted attempts\n\nRead persisted session state and observed usage to recover an interrupted or uncertain execution.","security":[{"OrganizationApiKey":[]}]}},"/api/agents/v1/{instanceId}/models":{"get":{"summary":"List models available to this instance","parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"description":"An accessible Agents instance from the Console."},{"schema":{"type":"string","maxLength":200},"required":false,"name":"search","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":24},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","maxLength":2048},"required":false,"name":"cursor","in":"query"},{"schema":{"type":"string","enum":["true","false"]},"required":false,"name":"tools","in":"query"}],"responses":{"200":{"description":"Model capabilities, availability and pagination","content":{"application/json":{"schema":{"type":"object","properties":{"models":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[^\\u0000-\\u0020\\u007f]+$"},"name":{"type":"string","minLength":1,"maxLength":300},"billingMode":{"type":"string","enum":["managed","byok"]},"capabilities":{"type":"object","properties":{"operations":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"maxItems":64},"streaming":{"type":"boolean"},"toolCall":{"type":"boolean"},"reasoning":{"type":"boolean"},"structuredOutput":{"type":"boolean"},"temperature":{"type":"boolean"},"attachment":{"type":"boolean"},"inputModalities":{"type":"array","items":{"type":"string","minLength":1,"maxLength":64},"maxItems":24},"outputModalities":{"type":"array","items":{"type":"string","minLength":1,"maxLength":64},"maxItems":24},"contextWindow":{"type":"integer","exclusiveMinimum":0},"maxInputTokens":{"type":"integer","exclusiveMinimum":0},"maxOutputTokens":{"type":"integer","exclusiveMinimum":0}},"required":["operations"],"additionalProperties":false},"price":{"type":"object","properties":{"currency":{"type":"string","maxLength":30},"input":{"anyOf":[{"type":"string","maxLength":80},{"type":"number","minimum":0}]},"output":{"anyOf":[{"type":"string","maxLength":80},{"type":"number","minimum":0}]},"unit":{"type":"string","maxLength":100},"display":{"type":"string","maxLength":500}},"additionalProperties":false},"available":{"type":"boolean"},"unavailableReason":{"type":"string","maxLength":500}},"required":["id","name","billingMode","capabilities","available"],"additionalProperties":false},"maxItems":100},"nextCursor":{"type":["string","null"],"maxLength":2048}},"required":["models","nextCursor"],"additionalProperties":false}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"401":{"description":"Missing, invalid or revoked organization API key.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"WWW-Authenticate":{"schema":{"type":"string","const":"Bearer"}}}},"402":{"description":"Insufficient funds or execution budget.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"403":{"description":"Product scope, instance, project, workspace or current entitlement denied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"413":{"description":"Request body exceeds the route limit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"429":{"description":"Rate or quota limit reached. Respect Retry-After when supplied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Retry delay when supplied.","schema":{"type":"string"}}}},"502":{"description":"Runtime response unavailable; read durable session state before attempting more execution.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"503":{"description":"Runtime, deployment, model or billing admission unavailable.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"504":{"description":"Gateway deadline exceeded; execution may have started. Inspect durable state before another submission.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}}},"x-sinecloud-scopes":["agentRun"],"operationId":"agents_get_sine_v1_models","tags":["Agents"],"description":"List models available to this instance","security":[{"OrganizationApiKey":[]}]}},"/api/agents/v1/{instanceId}/capabilities":{"get":{"summary":"Read runtime capabilities","description":"Runtime capability discovery is informational. Native files, skills, subagent and environment management URLs mentioned by this response are not exposed by the Cloud customer gateway.","responses":{"200":{"description":"Current runtime configuration and capability flags","content":{"application/json":{"schema":{"type":"object","properties":{"stage":{"type":"string","const":"skills-subagents-preview"},"protocol":{"type":"string","const":"agents=v1"},"harness":{"type":"string","const":"flue"},"model_backend":{"type":"string","enum":["mock","workers-ai","openai-compatible"]},"model_gateway":{"type":"object","properties":{"protocol":{"type":"string","const":"sine.model-gateway.v1"},"configured":{"type":"boolean"}},"required":["protocol","configured"],"additionalProperties":false},"model_catalog":{"type":"object","properties":{"protocol":{"type":"string","const":"sine.models.v1"},"path":{"type":"string","const":"/sine/v1/models"},"gateway":{"type":"boolean"}},"required":["protocol","path","gateway"],"additionalProperties":false},"models":{"type":"array","items":{"type":"string"}},"environments":{"type":"array","items":{"type":"string","enum":["none","openai_hosted"]}},"tools":{"type":"array","items":{"type":"string","const":"function"}},"hosted_tools":{"type":"array","items":{"type":"string","const":"bash"}},"skills":{"type":"object","properties":{"api":{"type":"boolean","const":true},"versions":{"type":"boolean","const":true},"inline":{"type":"boolean","const":true},"activation":{"type":"boolean","const":true}},"required":["api","versions","inline","activation"],"additionalProperties":false},"subagents":{"type":"object","properties":{"api":{"type":"boolean","const":true},"native_flue":{"type":"boolean","const":true},"isolated_history":{"type":"boolean","const":true},"cancellation":{"type":"boolean","const":true},"max_concurrent":{"type":"number","const":8}},"required":["api","native_flue","isolated_history","cancellation","max_concurrent"],"additionalProperties":false},"files":{"type":"object","properties":{"r2":{"type":"boolean","const":true},"api":{"type":"string","const":"/v1/files"},"purposes":{"type":"array","items":{"type":"string","const":"user_data"}},"max_bytes":{"type":"number","const":16777216},"environment_files":{"type":"boolean","const":true},"artifacts":{"type":"boolean","const":true}},"required":["r2","api","purposes","max_bytes","environment_files","artifacts"],"additionalProperties":false},"workspace":{"type":"object","properties":{"default":{"type":"string","const":"cloudflare-computer"},"available":{"type":"boolean"},"preview":{"type":"boolean","const":true},"network":{"type":"array","items":{"type":"string","enum":["enabled","disabled","restricted"]}},"templates":{"type":"boolean","const":true},"env":{"type":"boolean","const":true},"setup_commands":{"type":"boolean","const":true},"storage":{"type":"string","const":"session_do_sqlite"},"linux_sandbox":{"type":"string","const":"planned"}},"required":["default","available","preview","network","templates","env","setup_commands","storage","linux_sandbox"],"additionalProperties":false},"queues":{"type":"object","properties":{"events":{"type":"boolean"}},"required":["events"],"additionalProperties":false},"input":{"type":"array","items":{"type":"string","const":"input_text"}},"event_replay":{"type":"boolean","const":false},"usage":{"type":"object","properties":{"attempts":{"type":"boolean","const":true},"pull":{"type":"boolean","const":true},"delivery":{"type":"string","enum":["service_binding","unconfigured"]}},"required":["attempts","pull","delivery"],"additionalProperties":false},"billing":{"type":"object","properties":{"protocol":{"type":"string","const":"sine.billing.v1"},"execution_limits":{"type":"string","const":"sine.limits.v1"},"admission":{"type":"string","enum":["configured","unconfigured"]},"backend":{"type":"string","enum":["mock","workers-ai","openai-compatible"]},"gateway":{"type":"object","properties":{"protocol":{"type":"string","const":"sine.model-gateway.v1"},"owner":{"type":"string","const":"gateway"}},"required":["protocol","owner"],"additionalProperties":false}},"required":["protocol","execution_limits","admission","backend"],"additionalProperties":false},"pending":{"type":"array","items":{"type":"string","enum":["hosted_environment_configuration","self_hosted","vaults","webhooks"]}}},"required":["stage","protocol","harness","model_backend","model_gateway","model_catalog","models","environments","tools","hosted_tools","skills","subagents","files","workspace","queues","input","event_replay","usage","billing","pending"],"additionalProperties":false}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"401":{"description":"Missing, invalid or revoked organization API key.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"WWW-Authenticate":{"schema":{"type":"string","const":"Bearer"}}}},"402":{"description":"Insufficient funds or execution budget.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"403":{"description":"Product scope, instance, project, workspace or current entitlement denied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"413":{"description":"Request body exceeds the route limit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"429":{"description":"Rate or quota limit reached. Respect Retry-After when supplied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Retry delay when supplied.","schema":{"type":"string"}}}},"502":{"description":"Runtime response unavailable; read durable session state before attempting more execution.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"503":{"description":"Runtime, deployment, model or billing admission unavailable.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"504":{"description":"Gateway deadline exceeded; execution may have started. Inspect durable state before another submission.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}}},"x-sinecloud-scopes":["agentRun"],"operationId":"agents_get_sine_v1_capabilities","tags":["Agents"],"parameters":[{"name":"instanceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"description":"An accessible Agents instance from the Console."}],"security":[{"OrganizationApiKey":[]}]}},"/api/agents/v1":{"get":{"operationId":"agents_listInstances","tags":["Agents"],"summary":"List Agents instances","description":"Lists the Agents instances this key can use within its organization and optional project restriction. Cloud owns the product directory and pagination; no runtime call is made, so a suspended or expired instance remains visible with its saved status. Use an instance ID from this page as the {instanceId} path value. Only owner or admin keys are allowed.","x-sinecloud-scopes":["agentRun"],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50},"description":"Maximum instances per page."},{"name":"cursor","in":"query","schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,512}$"},"description":"Unmodified nextCursor from the previous page."}],"responses":{"200":{"description":"Agents instance page visible to this key.","content":{"application/json":{"schema":{"type":"object","required":["object","data","nextCursor"],"properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"type":"object","required":["id","status","businessProjectId","expiresAt","createdAt"],"properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"status":{"type":"string","enum":["provisioning","active","suspended","expired"]},"businessProjectId":{"type":["string","null"]},"expiresAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"}}}},"nextCursor":{"type":["string","null"]}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}},"401":{"description":"Missing, invalid or revoked organization API key.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}},"WWW-Authenticate":{"schema":{"type":"string","const":"Bearer"}}}},"403":{"description":"Product scope, instance, project, workspace or current entitlement denied.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["type","code","message","param"],"properties":{"type":{"type":"string","enum":["authentication_error","invalid_request_error","server_error"]},"code":{"type":"string"},"message":{"type":"string"},"param":{"type":"null"}}}}}}},"headers":{"X-Request-Id":{"description":"Request trace identifier.","schema":{"type":"string"}}}}},"security":[{"OrganizationApiKey":[]}]}}},"servers":[{"url":"https://sinecloud.dev"}],"x-sinecloud-source":{"repository":"https://github.com/fei-bai-inc/sine-agents","revision":"d8565a8facc736eeb043051181c8d2aa00f1bd47","sha256":"ea0ed9b410cb3547c83b1dc7f333e4f06c9c0c32fe3c5b7267b22a32d38ef9e8"},"tags":[{"name":"Agents","description":"Agent configuration, sessions, live events, model discovery and observed usage."}],"security":[{"OrganizationApiKey":[]}]}