{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://zieapi.vercel.app"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/cloud:aliyun-appflow/create-flow":{"post":{"operationId":"cloud_aliyun_appflow_create_flow","summary":"Creates a flow","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["FlowName"],"properties":{"endpoint":{"type":"string","enum":["https://appflow.cn-hangzhou.aliyuncs.com"],"default":"https://appflow.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://appflow.cn-hangzhou.aliyuncs.com"},"FlowId":{"type":"string","description":"The ID of the flow. This parameter is required when you update a flow or create a new flow version"},"FlowName":{"type":"string","description":"The name of the flow"},"FlowDesc":{"type":"string","description":"The description of the flow"},"FlowTemplate":{"type":"string","description":"The content of the template"},"TemplateId":{"type":"string","description":"The ID of the template. Specify this parameter when you create a flow from a template in the Template Center"},"Parameters":{"type":"string","description":"The parameters for the template. You can specify up to 200 parameters. This parameter is optional. If you use this parameter, you must…"},"Tag":{"type":"string","description":"The object tags to which the rule applies. You can specify multiple tags (JSON-encoded)"},"LaunchStatus":{"type":"string","description":"The publication status of the flow: True for published, False for unpublished"}}}}}},"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-appflow/create-user-auth-config":{"post":{"operationId":"cloud_aliyun_appflow_create_user_auth_config","summary":"Creates a user authentication credential","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["ConnectorId","AuthConfigName","AuthConfig"],"properties":{"endpoint":{"type":"string","enum":["https://appflow.cn-hangzhou.aliyuncs.com"],"default":"https://appflow.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://appflow.cn-hangzhou.aliyuncs.com"},"ConnectorId":{"type":"string","description":"The connector ID"},"ConnectorVersion":{"type":"string","description":"The connector version"},"AuthConfigName":{"type":"string","description":"The credential name"},"AuthType":{"type":"string","description":"The credential type"},"AuthConfig":{"type":"string","description":"The authentication information"},"Tag":{"type":"string","description":"The tag used for categorization or identification (JSON-encoded)"}}}}}},"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-appflow/delete-flow":{"post":{"operationId":"cloud_aliyun_appflow_delete_flow","summary":"Deletes a connection flow","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["FlowId"],"properties":{"endpoint":{"type":"string","enum":["https://appflow.cn-hangzhou.aliyuncs.com"],"default":"https://appflow.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://appflow.cn-hangzhou.aliyuncs.com"},"FlowId":{"type":"string","description":"The ID of the connection flow"},"FlowVersion":{"type":"integer","description":"The version of the connection flow"}}}}}},"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-appflow/delete-user-auth-config":{"post":{"operationId":"cloud_aliyun_appflow_delete_user_auth_config","summary":"Deletes a user authentication credential","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["ConnectorId","AuthConfigId"],"properties":{"endpoint":{"type":"string","enum":["https://appflow.cn-hangzhou.aliyuncs.com"],"default":"https://appflow.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://appflow.cn-hangzhou.aliyuncs.com"},"ConnectorId":{"type":"string","description":"The connector ID"},"ConnectorVersion":{"type":"string","description":"The connector name"},"AuthConfigId":{"type":"string","description":"The credential ID"}}}}}},"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-appflow/disable-flow":{"post":{"operationId":"cloud_aliyun_appflow_disable_flow","summary":"Disables a flow","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["FlowId"],"properties":{"endpoint":{"type":"string","enum":["https://appflow.cn-hangzhou.aliyuncs.com"],"default":"https://appflow.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://appflow.cn-hangzhou.aliyuncs.com"},"FlowId":{"type":"string","description":"The flow ID"},"FlowVersion":{"type":"integer","description":"The flow version"}}}}}},"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-appflow/enable-flow":{"post":{"operationId":"cloud_aliyun_appflow_enable_flow","summary":"Enables a flow","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["FlowId"],"properties":{"endpoint":{"type":"string","enum":["https://appflow.cn-hangzhou.aliyuncs.com"],"default":"https://appflow.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://appflow.cn-hangzhou.aliyuncs.com"},"FlowId":{"type":"string","description":"The ID of the flow"},"FlowVersion":{"type":"integer","description":"The version of the flow"}}}}}},"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-appflow/generate-user-session-token":{"post":{"operationId":"cloud_aliyun_appflow_generate_user_session_token","summary":"Generates a logon session token","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["UserId"],"properties":{"endpoint":{"type":"string","enum":["https://appflow.cn-hangzhou.aliyuncs.com"],"default":"https://appflow.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://appflow.cn-hangzhou.aliyuncs.com"},"ChatbotId":{"type":"string","description":"The ID of the AI assistant"},"IntegrateId":{"type":"string","description":"The integration ID"},"UserId":{"type":"string","description":"The user ID"},"UserName":{"type":"string","description":"The nickname of the user"},"UserAvatar":{"type":"string","description":"The profile picture of the user (URL)"},"ExpireSecond":{"type":"integer","description":"The expiration time. Unit: seconds. Default value: 86400 (24 hours)"},"ExtraInfo":{"type":"string","description":"The extra information in JSON string format. Example: { \"phone\": \"phone number\", \"dept\":[\"Department 1\",\"Department 2\"]}"}}}}}},"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-appflow/get-flow":{"post":{"operationId":"cloud_aliyun_appflow_get_flow","summary":"Retrieves the details of a connection flow","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["FlowId"],"properties":{"endpoint":{"type":"string","enum":["https://appflow.cn-hangzhou.aliyuncs.com"],"default":"https://appflow.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://appflow.cn-hangzhou.aliyuncs.com"},"FlowId":{"type":"string","description":"The connection flow ID"},"FlowVersion":{"type":"string","description":"The connection flow version"}}}}}},"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-appflow/get-user-auth-config":{"post":{"operationId":"cloud_aliyun_appflow_get_user_auth_config","summary":"Retrieves the details of a user authentication credential","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["ConnectorId","AuthConfigId"],"properties":{"endpoint":{"type":"string","enum":["https://appflow.cn-hangzhou.aliyuncs.com"],"default":"https://appflow.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://appflow.cn-hangzhou.aliyuncs.com"},"ConnectorId":{"type":"string","description":"The connection flow ID"},"ConnectorVersion":{"type":"string","description":"The connection flow version"},"AuthConfigId":{"type":"string","description":"The credential ID"}}}}}},"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-appflow/invoke-action":{"post":{"operationId":"cloud_aliyun_appflow_invoke_action","summary":"Invokes a connector action","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["ConnectorId","ActionId"],"properties":{"endpoint":{"type":"string","enum":["https://appflow.cn-hangzhou.aliyuncs.com"],"default":"https://appflow.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://appflow.cn-hangzhou.aliyuncs.com"},"ConnectorId":{"type":"string","description":"The connector ID"},"ConnectorVersion":{"type":"string","description":"The connector version"},"ActionId":{"type":"string","description":"The action ID"},"ActionVersion":{"type":"string","description":"The action version"},"Body":{"type":"string","description":"The request body for the action (JSON-encoded)"},"Headers":{"type":"string","description":"The request header parameters for the action (JSON-encoded)"},"Query":{"type":"string","description":"The query parameters for the action (JSON-encoded)"},"Path":{"type":"string","description":"The path parameters for the action (JSON-encoded)"},"AuthConfig":{"type":"string","description":"The authentication information for the action (JSON-encoded)"},"Stream":{"type":"string","description":"Specifies whether to use streaming output"}}}}}},"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-appflow/launch-flow":{"post":{"operationId":"cloud_aliyun_appflow_launch_flow","summary":"Publishes a connection flow","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["FlowId"],"properties":{"endpoint":{"type":"string","enum":["https://appflow.cn-hangzhou.aliyuncs.com"],"default":"https://appflow.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://appflow.cn-hangzhou.aliyuncs.com"},"FlowId":{"type":"string","description":"The ID of the connection flow"},"FlowVersion":{"type":"integer","description":"The version of the connection flow"},"FlowName":{"type":"string","description":"The name of the connection flow"},"FlowDesc":{"type":"string","description":"The description of the connection flow"},"FlowTemplate":{"type":"string","description":"The template of the connection flow"}}}}}},"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-appflow/list-flows":{"post":{"operationId":"cloud_aliyun_appflow_list_flows","summary":"Queries the list of connector flows","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"endpoint":{"type":"string","enum":["https://appflow.cn-hangzhou.aliyuncs.com"],"default":"https://appflow.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://appflow.cn-hangzhou.aliyuncs.com"},"MaxResults":{"type":"string","description":"The maximum number of results"},"NextToken":{"type":"string","description":"The pagination token"},"Filter":{"type":"string","description":"The filter conditions (JSON-encoded)"},"Tag":{"type":"string","description":"Specifies the tags of the objects to which the rule applies. You can specify multiple tags (JSON-encoded)"}}}}}},"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-appflow/list-user-auth-configs":{"post":{"operationId":"cloud_aliyun_appflow_list_user_auth_configs","summary":"Retrieves a list of user authentication credentials","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["ConnectorId"],"properties":{"endpoint":{"type":"string","enum":["https://appflow.cn-hangzhou.aliyuncs.com"],"default":"https://appflow.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://appflow.cn-hangzhou.aliyuncs.com"},"MaxResults":{"type":"string","description":"The maximum number of entries"},"NextToken":{"type":"string","description":"The pagination token"},"ConnectorId":{"type":"string","description":"The connector ID"},"ConnectorVersion":{"type":"string","description":"The connector version"},"AuthType":{"type":"string","description":"The authentication type"},"Filter":{"type":"string","description":"The query conditions (JSON-encoded)"},"Tag":{"type":"string","description":"标签，用于分类或标识 (JSON-encoded)"}}}}}},"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-appflow/update-flow":{"post":{"operationId":"cloud_aliyun_appflow_update_flow","summary":"Updates a connection flow","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["FlowId"],"properties":{"endpoint":{"type":"string","enum":["https://appflow.cn-hangzhou.aliyuncs.com"],"default":"https://appflow.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://appflow.cn-hangzhou.aliyuncs.com"},"FlowId":{"type":"string","description":"The ID of the connection flow"},"FlowVersion":{"type":"string","description":"The version of the connection flow"},"FlowName":{"type":"string","description":"The name of the connection flow"},"FlowDesc":{"type":"string","description":"The description of the connection flow"},"FlowTemplate":{"type":"string","description":"The template of the connection flow"},"Enabled":{"type":"string","description":"Specifies whether the connection flow is enabled"}}}}}},"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-appflow/update-user-auth-config":{"post":{"operationId":"cloud_aliyun_appflow_update_user_auth_config","summary":"Updates user authentication credentials","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["ConnectorId","AuthConfigId"],"properties":{"endpoint":{"type":"string","enum":["https://appflow.cn-hangzhou.aliyuncs.com"],"default":"https://appflow.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://appflow.cn-hangzhou.aliyuncs.com"},"ConnectorId":{"type":"string","description":"The connector ID"},"ConnectorVersion":{"type":"string","description":"The connector name"},"AuthConfigId":{"type":"string","description":"The credential ID"},"AuthConfigName":{"type":"string","description":"The credential name"},"AuthConfig":{"type":"string","description":"The authentication information for action invocation"}}}}}},"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-appflow/withdraw-flow":{"post":{"operationId":"cloud_aliyun_appflow_withdraw_flow","summary":"Takes a connection flow offline","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["FlowId"],"properties":{"endpoint":{"type":"string","enum":["https://appflow.cn-hangzhou.aliyuncs.com"],"default":"https://appflow.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://appflow.cn-hangzhou.aliyuncs.com"},"FlowId":{"type":"string","description":"The ID of the connection flow"},"FlowVersion":{"type":"integer","description":"The version of the connection flow"}}}}}},"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-appflow/version":{"post":{"operationId":"cloud_aliyun_appflow_version","summary":"version","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"endpoint":{"type":"string","enum":["https://appflow.cn-hangzhou.aliyuncs.com"],"default":"https://appflow.cn-hangzhou.aliyuncs.com","description":"Regional endpoint, for example https://appflow.cn-hangzhou.aliyuncs.com"}}}}}},"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"}}}}}}}