{"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-saf/execute-request":{"post":{"operationId":"cloud_aliyun_saf_execute_request","summary":"Detects risks. This operation supports both public service invocations and custom event invocations","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["ServiceParameters","Service"],"properties":{"endpoint":{"type":"string","enum":["https://saf.ap-south-1.aliyuncs.com","https://saf.ap-southeast-1.aliyuncs.com","https://saf.ap-southeast-3.aliyuncs.com","https://saf.cn-beijing.aliyuncs.com","https://saf.cn-hangzhou.aliyuncs.com","https://saf.cn-hongkong.aliyuncs.com","https://saf.cn-shanghai.aliyuncs.com","https://saf.cn-shenzhen.aliyuncs.com","https://saf.cn-zhangjiakou.aliyuncs.com","https://saf.eu-central-1.aliyuncs.com","https://saf.us-east-1.aliyuncs.com","https://saf.us-west-1.aliyuncs.com"],"default":"https://saf.ap-southeast-1.aliyuncs.com","description":"Regional endpoint, for example https://saf.ap-southeast-1.aliyuncs.com"},"ServiceParameters":{"type":"string","description":"The service input parameters. The value is a JSON string. If you use a custom event, add the eventCode property"},"Service":{"type":"string","description":"The service product code. If you use a custom event, set this parameter to saf_de"}}}}}},"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-saf/execute-request-ml":{"post":{"operationId":"cloud_aliyun_saf_execute_request_ml","summary":"Calls the risk detection API. This API supports only custom event calls and is applicable only to the…","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["ServiceParameters","Service"],"properties":{"endpoint":{"type":"string","enum":["https://saf.ap-south-1.aliyuncs.com","https://saf.ap-southeast-1.aliyuncs.com","https://saf.ap-southeast-3.aliyuncs.com","https://saf.cn-beijing.aliyuncs.com","https://saf.cn-hangzhou.aliyuncs.com","https://saf.cn-hongkong.aliyuncs.com","https://saf.cn-shanghai.aliyuncs.com","https://saf.cn-shenzhen.aliyuncs.com","https://saf.cn-zhangjiakou.aliyuncs.com","https://saf.eu-central-1.aliyuncs.com","https://saf.us-east-1.aliyuncs.com","https://saf.us-west-1.aliyuncs.com"],"default":"https://saf.ap-southeast-1.aliyuncs.com","description":"Regional endpoint, for example https://saf.ap-southeast-1.aliyuncs.com"},"ServiceParameters":{"type":"string","description":"The service input parameters. The value is a JSON-formatted string that contains the complete JSON information. You must add the eventCode…"},"Service":{"type":"string","description":"The service product code. Because this API supports only custom events, set this parameter to saf_de"},"Lang":{"type":"string","description":"The language"}}}}}},"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-saf/execute-request-sg":{"post":{"operationId":"cloud_aliyun_saf_execute_request_sg","summary":"Detects risks. This operation supports both public service invocations and custom event invocations","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["ServiceParameters","Service"],"properties":{"endpoint":{"type":"string","enum":["https://saf.ap-south-1.aliyuncs.com","https://saf.ap-southeast-1.aliyuncs.com","https://saf.ap-southeast-3.aliyuncs.com","https://saf.cn-beijing.aliyuncs.com","https://saf.cn-hangzhou.aliyuncs.com","https://saf.cn-hongkong.aliyuncs.com","https://saf.cn-shanghai.aliyuncs.com","https://saf.cn-shenzhen.aliyuncs.com","https://saf.cn-zhangjiakou.aliyuncs.com","https://saf.eu-central-1.aliyuncs.com","https://saf.us-east-1.aliyuncs.com","https://saf.us-west-1.aliyuncs.com"],"default":"https://saf.ap-southeast-1.aliyuncs.com","description":"Regional endpoint, for example https://saf.ap-southeast-1.aliyuncs.com"},"ServiceParameters":{"type":"string","description":"The service input parameters. The value is a JSON-formatted string that contains the complete JSON information. If you use a custom event,…"},"Service":{"type":"string","description":"The service product code. If you use a custom event, set this parameter to saf_de"},"Lang":{"type":"string","description":"The language"}}}}}},"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-saf/request-decision":{"post":{"operationId":"cloud_aliyun_saf_request_decision","summary":"Detects risks. This operation supports only custom event calls","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"endpoint":{"type":"string","enum":["https://saf.ap-south-1.aliyuncs.com","https://saf.ap-southeast-1.aliyuncs.com","https://saf.ap-southeast-3.aliyuncs.com","https://saf.cn-beijing.aliyuncs.com","https://saf.cn-hangzhou.aliyuncs.com","https://saf.cn-hongkong.aliyuncs.com","https://saf.cn-shanghai.aliyuncs.com","https://saf.cn-shenzhen.aliyuncs.com","https://saf.cn-zhangjiakou.aliyuncs.com","https://saf.eu-central-1.aliyuncs.com","https://saf.us-east-1.aliyuncs.com","https://saf.us-west-1.aliyuncs.com"],"default":"https://saf.ap-southeast-1.aliyuncs.com","description":"Regional endpoint, for example https://saf.ap-southeast-1.aliyuncs.com"},"ServiceParameters":{"type":"string","description":"The service input parameters. The value is a JSON string that contains the complete JSON information"},"EventCode":{"type":"string","description":"The event code"}}}}}},"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-saf/version":{"post":{"operationId":"cloud_aliyun_saf_version","summary":"version","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"endpoint":{"type":"string","enum":["https://saf.ap-south-1.aliyuncs.com","https://saf.ap-southeast-1.aliyuncs.com","https://saf.ap-southeast-3.aliyuncs.com","https://saf.cn-beijing.aliyuncs.com","https://saf.cn-hangzhou.aliyuncs.com","https://saf.cn-hongkong.aliyuncs.com","https://saf.cn-shanghai.aliyuncs.com","https://saf.cn-shenzhen.aliyuncs.com","https://saf.cn-zhangjiakou.aliyuncs.com","https://saf.eu-central-1.aliyuncs.com","https://saf.us-east-1.aliyuncs.com","https://saf.us-west-1.aliyuncs.com"],"default":"https://saf.ap-southeast-1.aliyuncs.com","description":"Regional endpoint, for example https://saf.ap-southeast-1.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"}}}}}}}