查询业务工作流模板
curl --request GET \
--url https://adp.laiye.com/open/agentic_engine/laiye/v1/app/templates \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://adp.laiye.com/open/agentic_engine/laiye/v1/app/templates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://adp.laiye.com/open/agentic_engine/laiye/v1/app/templates"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)HttpResponse<String> response = Unirest.get("https://adp.laiye.com/open/agentic_engine/laiye/v1/app/templates")
.header("X-API-Key", "<api-key>")
.asString();const url = 'https://adp.laiye.com/open/agentic_engine/laiye/v1/app/templates';
const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://adp.laiye.com/open/agentic_engine/laiye/v1/app/templates"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}using RestSharp;
var options = new RestClientOptions("https://adp.laiye.com/open/agentic_engine/laiye/v1/app/templates");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-API-Key", "<api-key>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://adp.laiye.com/open/agentic_engine/laiye/v1/app/templates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"code": "success",
"message": "",
"tips": null,
"data": {
"range": {
"offset": 0,
"size": 20,
"total": 3
},
"list": [
{
"template_key": "finance_payable",
"name": "财务应付",
"description": "识别付款申请、合同、发票、入库、结算和验收材料,完成财务应付审核与业务结果交付。",
"template_version": "1.0.2",
"application_id": "wftp_app_n8q4v2m7x5p1r9t6c3a0b8d2",
"is_added": true,
"application_status": "published",
"can_run": true
},
{
"template_key": "expense_reimbursement",
"name": "费用报销",
"description": "识别报销申请、票据、出差审批、网约车行程和餐饮小票,按差旅或业务招待类型分别审核。",
"template_version": "1.0.1",
"application_id": "wftp_app_h3k9s1v6p4x8q2m7c5t0a9r1",
"is_added": true,
"application_status": "draft",
"can_run": false
},
{
"template_key": "financial_report_extraction",
"name": "金融财报",
"description": "拆分财务报告后,分别抽取基础信息、利润表、资产负债表和现金流量表,并在任务中集中查看结果。",
"template_version": "1.0.26",
"application_id": "wftp_app_y6p2m8q4v1c9t3x7n5r0h2k6",
"is_added": false,
"application_status": null,
"can_run": false
}
]
}
}{
"detail": [
{
"type": "greater_than",
"loc": [
"query",
"limit"
],
"msg": "Input should be greater than 0",
"input": 0,
"ctx": {
"gt": 0
}
}
]
}工作流
查询业务工作流模板
查询业务工作流模板、稳定公开应用 ID 以及当前账号的运行就绪状态。
GET
/
open
/
agentic_engine
/
laiye
/
v1
/
app
/
templates
查询业务工作流模板
curl --request GET \
--url https://adp.laiye.com/open/agentic_engine/laiye/v1/app/templates \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://adp.laiye.com/open/agentic_engine/laiye/v1/app/templates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://adp.laiye.com/open/agentic_engine/laiye/v1/app/templates"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)HttpResponse<String> response = Unirest.get("https://adp.laiye.com/open/agentic_engine/laiye/v1/app/templates")
.header("X-API-Key", "<api-key>")
.asString();const url = 'https://adp.laiye.com/open/agentic_engine/laiye/v1/app/templates';
const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://adp.laiye.com/open/agentic_engine/laiye/v1/app/templates"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}using RestSharp;
var options = new RestClientOptions("https://adp.laiye.com/open/agentic_engine/laiye/v1/app/templates");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-API-Key", "<api-key>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://adp.laiye.com/open/agentic_engine/laiye/v1/app/templates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"code": "success",
"message": "",
"tips": null,
"data": {
"range": {
"offset": 0,
"size": 20,
"total": 3
},
"list": [
{
"template_key": "finance_payable",
"name": "财务应付",
"description": "识别付款申请、合同、发票、入库、结算和验收材料,完成财务应付审核与业务结果交付。",
"template_version": "1.0.2",
"application_id": "wftp_app_n8q4v2m7x5p1r9t6c3a0b8d2",
"is_added": true,
"application_status": "published",
"can_run": true
},
{
"template_key": "expense_reimbursement",
"name": "费用报销",
"description": "识别报销申请、票据、出差审批、网约车行程和餐饮小票,按差旅或业务招待类型分别审核。",
"template_version": "1.0.1",
"application_id": "wftp_app_h3k9s1v6p4x8q2m7c5t0a9r1",
"is_added": true,
"application_status": "draft",
"can_run": false
},
{
"template_key": "financial_report_extraction",
"name": "金融财报",
"description": "拆分财务报告后,分别抽取基础信息、利润表、资产负债表和现金流量表,并在任务中集中查看结果。",
"template_version": "1.0.26",
"application_id": "wftp_app_y6p2m8q4v1c9t3x7n5r0h2k6",
"is_added": false,
"application_status": null,
"can_run": false
}
]
}
}{
"detail": [
{
"type": "greater_than",
"loc": [
"query",
"limit"
],
"msg": "Input should be greater than 0",
"input": 0,
"ctx": {
"gt": 0
}
}
]
}