'1.0', 'info' => [ 'style' => 'RPC', 'product' => 'safconsole', 'version' => '2021-01-12', ], 'directories' => [ [ 'id' => 236784, 'title' => '样本管理', 'type' => 'directory', 'children' => [ 'RevokeFeedback', 'SendFeedback', 'UploadSampleApi', ], ], ], 'components' => [ 'schemas' => [], ], 'apis' => [ 'RevokeFeedback' => [ 'summary' => '用于风险识别服务的社群样本外部删除。', 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '79133', 'abilityTreeNodes' => [ 'FEATUREsafT73ZWM', ], ], 'parameters' => [ [ 'name' => 'SampleType', 'in' => 'formData', 'schema' => [ 'description' => '样本类型。手机号类型样本需传入PHONE,邮箱类型样本需传入EMAIL,账户类型样本需传入ACCOUNT', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'PHONE'."\n", ], ], [ 'name' => 'Value', 'in' => 'formData', 'schema' => [ 'description' => '样本值。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '10000000000', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'description' => '接口状态或POP错误码。取值说明如下:2xx:成功。3xx:重定向。4xx:请求错误。5xx:服务器错误。', 'type' => 'string', 'example' => '200', ], 'Message' => [ 'description' => '返回信息。', 'type' => 'string', 'example' => 'success', ], 'RequestId' => [ 'description' => '公共参数,每个请求的ID都是唯一的,可用于排查和定位问题。', 'type' => 'string', 'example' => '4A91D2D1-AEC9-1658-ABCE-5A39DE66A5C2', ], ], ], ], ], 'errorCodes' => [ 200 => [ [ 'errorCode' => 'NotAuthorized', 'errorMessage' => 'You are not authorized to call the service. The service has expired, the quota for the subscription is reached, or you have not purchased the service.', ], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"4A91D2D1-AEC9-1658-ABCE-5A39DE66A5C2\\"\\n}","type":"json"}]', 'title' => '删除样本外部接口', ], 'SendFeedback' => [ 'summary' => '用于风险识别服务的社群样本外部创建。', 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '79134', 'abilityTreeNodes' => [ 'FEATUREsafT73ZWM', ], ], 'parameters' => [ [ 'name' => 'SampleType', 'in' => 'query', 'schema' => [ 'description' => '样本类型。手机号类型样本需传入PHONE,邮箱类型样本需传入EMAIL,账户类型样本需传入ACCOUNT', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'PHONE', ], ], [ 'name' => 'RiskLabel', 'in' => 'query', 'schema' => [ 'description' => '样本标签。用户自定义,以逗号分隔。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'OTHERS', ], ], [ 'name' => 'Value', 'in' => 'query', 'schema' => [ 'description' => '样本值。', 'type' => 'string', 'required' => true, 'docRequired' => false, 'example' => '10000000000', ], ], [ 'name' => 'Reason', 'in' => 'query', 'schema' => [ 'description' => '风险原因。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'Abnormal transaction behavior.', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'description' => '接口状态或POP错误码。取值说明如下:2xx:成功。3xx:重定向。4xx:请求错误。5xx:服务器错误。', 'type' => 'integer', 'format' => 'int32', 'example' => '200', ], 'Message' => [ 'description' => '返回信息。', 'type' => 'string', 'example' => 'success', ], 'RequestId' => [ 'description' => '公共参数,每个请求的ID都是唯一的,可用于排查和定位问题。', 'type' => 'string', 'example' => '4A91D2D1-AEC9-1658-ABCE-5A39DE66A5C2', ], ], ], ], ], 'errorCodes' => [ 200 => [ [ 'errorCode' => 'NotAuthorized', 'errorMessage' => 'You are not authorized to call the service. The service has expired, the quota for the subscription is reached, or you have not purchased the service.', ], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"4A91D2D1-AEC9-1658-ABCE-5A39DE66A5C2\\"\\n}","type":"json"}]', 'title' => '创建样本外部接口', ], 'UploadSampleApi' => [ 'summary' => '用于风险识别服务的样本上传。', 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'systemTags' => [ 'operationType' => 'create', 'abilityTreeCode' => '207197', 'abilityTreeNodes' => [ 'FEATUREsafT73ZWM', ], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'SampleType', 'in' => 'query', 'schema' => [ 'description' => '样本的类型'."\n" ."\n" .'- 黑名单: block'."\n" ."\n" .'- 白名单: pass', 'type' => 'string', 'required' => true, 'example' => 'block', ], ], [ 'name' => 'DataType', 'in' => 'query', 'schema' => [ 'description' => '样本的数据类型'."\n" ."\n" .'- 手机号: mobile'."\n" .'- 手机号MD5: mobileMd5'."\n" .'- IP: ip'."\n" .'- 设备唯一id: umid'."\n" .'- 账号: accountId'."\n" .'- imei: imei'."\n" .'- imeiMd5: imeiMd5'."\n" .'- oaid: oaid'."\n" .'- oaidMd5: oaidMd5'."\n" .'- androidId: androidId'."\n" .'- androidIdMd5: androidIdMd5', 'type' => 'string', 'required' => true, 'example' => 'ip', ], ], [ 'name' => 'Service', 'in' => 'query', 'schema' => [ 'description' => '生效服务的列表,多个服务用逗号分开'."\n" ."\n" .'- 注册风险识别基础版/增强版: account_abuse'."\n" .'- 营销风险识别基础版/增强版: coupon_abuse'."\n" .'- 登录风险识别基础版/增强版: account_takeover', 'type' => 'string', 'required' => true, 'example' => 'account_abuse,coupon_abuse,account_takeover', ], ], [ 'name' => 'DataValue', 'in' => 'query', 'schema' => [ 'description' => '样本的具体值,以JSON格式传入。一次不要超过1000条。', 'type' => 'string', 'required' => true, 'example' => '["123.124.125.126","123.124.125.127"]', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ 'RequestId' => [ 'title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '4A91D2D1-AEC9-1658-ABCE-5A39DE66A5C2', ], 'Message' => [ 'description' => '返回的错误消息', 'type' => 'string', 'example' => 'null', ], 'Code' => [ 'description' => '返回的请求码', 'type' => 'string', 'example' => '200', ], 'Success' => [ 'description' => '访问是否成功的标志', 'type' => 'string', 'example' => 'true', ], ], ], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4A91D2D1-AEC9-1658-ABCE-5A39DE66A5C2\\",\\n \\"Message\\": \\"null\\",\\n \\"Code\\": \\"200\\",\\n \\"Success\\": \\"true\\"\\n}","type":"json"}]', 'title' => '上传样本接口', ], ], 'endpoints' => [ [ 'regionId' => 'cn-shanghai', 'endpoint' => 'safconsole.cn-shanghai.aliyuncs.com', ], [ 'regionId' => 'cn-hangzhou', 'endpoint' => 'safconsole.cn-hangzhou.aliyuncs.com', ], ], ];