{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://apizie.tech"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/cloud:aliyun-ossagent/chat":{"post":{"operationId":"cloud_aliyun_ossagent_chat","summary":"Streams chat messages","description":"POST /api/chat/stream","tags":["cloud"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"messages":{"type":"array","description":"The messages"},"sessionId":{"type":"string","description":"The ID of the Q&A session"},"env":{"type":"string","description":"The name of the dedicated environment for the agent"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-ossagent/confirm":{"post":{"operationId":"cloud_aliyun_ossagent_confirm","summary":"Confirms a tool call","description":"POST /api/chat/confirm","tags":["cloud"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"confirmed":{"type":"string","description":"Specifies whether the tool execution is approved"},"phase":{"type":"string","description":"The current execution phase"},"reason":{"type":"string","description":"The reason for invoking or not invoking the tool"},"sessionId":{"type":"string","description":"The ID of the chat session"},"toolCalls":{"type":"array","description":"The tool invocations"},"env":{"type":"string","description":"The dedicated environment name for the agent"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-ossagent/get-session-content":{"get":{"operationId":"cloud_aliyun_ossagent_get_session_content","summary":"Retrieves the detailed content of a session. You can only query sessions generated by the current account","description":"GET /api/oss/agent/get_session_content.json","tags":["cloud"],"parameters":[{"name":"sessionId","in":"query","required":false,"description":"The session ID","schema":{"type":"string","description":"The session ID"},"example":"UUID"},{"name":"env","in":"query","required":false,"description":"The dedicated environment name of the agent","schema":{"type":"string","description":"The dedicated environment name of the agent"},"example":"poc"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-ossagent/interrupt":{"post":{"operationId":"cloud_aliyun_ossagent_interrupt","summary":"Terminates a chat session","description":"POST /api/chat/interrupt/{sessionId}","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["sessionId"],"properties":{"sessionId":{"type":"string","description":"The session ID"},"env":{"type":"string","description":"The name of the dedicated environment for the agent"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-ossagent/version":{"post":{"operationId":"cloud_aliyun_ossagent_version","summary":"version","description":"POST /","tags":["cloud"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}