查询作业列表

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String QueryJobs

系统规定参数。取值:QueryJobs。

InstanceId String af81a389-91f0-4157-8d82-720edd02b66a

实例id

PageNumber Integer 1

页号

PageSize Integer 10

个数

ScenarioId String b0f35dd1-0337-402e-9c4f-3a6c2426950a

场景id

JobGroupId String 994b8baf-7ef8-480c-b141-b7b6db77c4df

作业组id

StartTime Long 1579068424883

过滤条件,作业开始时间

EndTime Long 1579077794665

过滤条件,作业结束时间

TimeAlignment String start

时间条件按照开始时间还是结束时间查询,有效值为:start、end、job_create

ContactName String 张三

过滤条件,联系人名字

PhoneNumber String 13512345678

过滤条件,联系人电话号码

返回数据

名称 类型 示例值 描述
Code String OK

响应码

HttpStatusCode Integer 200

HTTP状态码

Jobs Struct

作业数据

List Array

作业数组

CallingNumbers List ["057126883106"]

呼出号码列表

Contacts Array

联系人列表

ContactId String db3db762-e421-44c9-9a01-cb423470757c

联系人唯一ID

ContactName String 张三

联系人姓名

Honorific String 张先说

联系人尊称

JobId String 72dcd26b-f12d-4c27-b3af-18f6aed5b160

任务唯一ID

PhoneNumber String 13581588888

电话号码

ReferenceId String 2fa6bac3-06da-4315-82ab-72d6fd3a6f34

关联ID

Role String *

角色

State String Available

状态

Extras Array

业务数据

Key String djrq
Value String 2019-08-21 09:49:59.0
FailureReason String NoAnswer

失败原因

JobGroupId String fce6c599-8ede-40e3-9f78-0928eda7b4e8

任务组唯一ID

JobId String fce6c599-8ede-40e3-9f78-0928eda7b4e8

任务唯一ID

Priority Integer 1

优先级

ReferenceId String d5971d98-7312-4f0e-a918-a17d67133e28

关联ID

ScenarioId String ade80092-03d9-4f4d-ad4f-ab8a247d3150

场景唯一ID

Status String Succeeded

状态

StrategyId String c8a2b7f2-ad1a-4865-b872-d0080d9802d9

策略唯一ID

Summary Array

摘要信息

Category String {}

类别

Content String 5

内容

ConversationDetailId String 098b9b09-9223-4a8b-a422-99726f0457f3

通话记录唯一ID

GroupId String ba1ba502-d044-48c0-b710-0f1f840a7c53

任务唯一ID

JobId String 994b8baf-7ef8-480c-b141-b7b6db77c4df

任务ID

SummaryId String dc67d544-df06-4625-ae48-13e3c9f72d8a

摘要ID

SummaryName String score

摘要名称

TaskId String 9fdf7a81-6781-4ab8-92fb-1d4231ef365e

任务ID

Tasks Array

任务列表

ActualTime Long 1579068424883

实际呼出时间

Brief String 1

总结

CallId String 1528189846043

通话的唯一ID

CalledNumber String 13512345678

被叫号码

CallingNumber String 057126883106

主叫号码

ChatbotId String 1234

机器人ID

Contact Struct

任务的联系人

ContactId String db3db762-e421-44c9-9a01-cb423470757c

联系人唯一ID

ContactName String 张三

联系人姓名

Honorific String 张先生

联系人尊称

JobId String b72425bd-7871-4050-838e-033d80d754b7

任务唯一ID

PhoneNumber String 13512345678

电话号码

ReferenceId String 2fa6bac3-06da-4315-82ab-72d6fd3a6f34

关联ID

Role String *

角色

State String Available

状态

Duration Integer 120

通话时长

JobId String b72425bd-7871-4050-838e-033d80d754b7

任务组唯一ID

PlanedTime Long 1579068424883

计划呼出时间

ScenarioId String ade80092-03d9-4f4d-ad4f-ab8a247d3150

场景唯一ID

Status String Succeeded

状态

TaskId String ff44709e-39a6-43ba-959b-20fcabe3e496

任务ID

PageNumber Integer 1

分页序号

PageSize Integer 10

分页大小

TotalCount Integer 1

对象总数

Message String Success

响应信息

RequestId String 254EB995-DEDF-48A4-9101-9CA5B72FFBCC

请求ID

Success Boolean true

是否成功

示例

请求示例

http(s)://[Endpoint]/?Action=QueryJobs
&InstanceId=af81a389-91f0-4157-8d82-720edd02b66a
&PageNumber=1
&PageSize=10
&<公共请求参数>

正常返回示例

XML 格式

<Code>OK</Code>
<HttpStatusCode>200</HttpStatusCode>
<Jobs>
    <List>
        <Status>Succeeded</Status>
        <ScenarioId>jr-collection-first-scenario</ScenarioId>
        <Tasks>
            <Status>Succeeded</Status>
            <ChatbotId>419</ChatbotId>
            <PlanedTime>1578638554000</PlanedTime>
            <CalledNumber>135********</CalledNumber>
            <ScenarioId>jr-collection-first-scenario</ScenarioId>
            <EndTime>1578638623000</EndTime>
            <ActualTime>1578638570000</ActualTime>
            <CallId>00001051951578638555</CallId>
            <CreateTime>1578638554000</CreateTime>
            <Conversation>
                <Status>DISTINGUISH</Status>
                <Script/>
                <TaskId>2e5e440e-228a-4b2d-97e4-e8ca93a68bd3</TaskId>
                <ConversationId>2380a728-45c1-45af-853c-fb7669dc512b</ConversationId>
                <Timestamp>1578638570000</Timestamp>
                <Speaker>Contact</Speaker>
            </Conversation>
            <Conversation>
                <Status>DISTINGUISH</Status>
                <Script>您好,***有限公司,请问是王文杰王文杰女士吗</Script>
                <TaskId>2e5e440e-228a-4b2d-97e4-e8ca93a68bd3</TaskId>
                <ConversationId>2b30bd6f-be21-4330-9d2c-a6fd1c4d0128</ConversationId>
                <Timestamp>1578638571000</Timestamp>
                <Speaker>Robot</Speaker>
            </Conversation>
            <Conversation>
                <Status>DISTINGUISH</Status>
                <Script>是的</Script>
                <TaskId>2e5e440e-228a-4b2d-97e4-e8ca93a68bd3</TaskId>
                <ConversationId>bde777f0-44a1-4e10-a405-4f8aa3b885a1</ConversationId>
                <Timestamp>1578638584000</Timestamp>
                <Speaker>Contact</Speaker>
            </Conversation>
            <ContactId>8704619d-61ec-4344-a9f8-06654b795ecf</ContactId>
            <Brief>1</Brief>
            <CallingNumber>1003</CallingNumber>
            <Contact>
                <Role>1</Role>
                <Honorific>王文杰女士</Honorific>
                <ReferenceId>abc</ReferenceId>
                <PhoneNumber>135********</PhoneNumber>
                <Round>0</Round>
                <ContactId>8704619d-61ec-4344-a9f8-06654b795ecf</ContactId>
                <JobUuid>177fbde7-dafa-47b6-b996-6a96d11b44ce</JobUuid>
                <ContactName>王文杰</ContactName>
            </Contact>
            <LastUpdated>1578638623000</LastUpdated>
            <TaskId>2e5e440e-228a-4b2d-97e4-e8ca93a68bd3</TaskId>
            <JobId>177fbde7-dafa-47b6-b996-6a96d11b44ce</JobId>
        </Tasks>
        <Priority>5</Priority>
        <CreateTime>1578638543000</CreateTime>
        <StrategyId>jr-collection-oneday-strategy</StrategyId>
        <Extras>
            <Value>1870.75</Value>
            <Key>capital</Key>
        </Extras>
        <Extras>
            <Value>奥迪A4L</Value>
            <Key>carBrand</Key>
        </Extras>
        <GroupId>finance-collection-first-group</GroupId>
        <Contacts>
            <Role>1</Role>
            <Honorific>王文杰王文杰女士</Honorific>
            <ReferenceId>abc</ReferenceId>
            <PhoneNumber>135********</PhoneNumber>
            <Round>0</Round>
            <Id>8704619d-61ec-4344-a9f8-06654b795ecf</Id>
            <JobUuid>177fbde7-dafa-47b6-b996-6a96d11b44ce</JobUuid>
            <Name>王文杰王文杰</Name>
        </Contacts>
        <SystemPriority>1</SystemPriority>
        <Summary>
            <TaskId>2e5e440e-228a-4b2d-97e4-e8ca93a68bd3</TaskId>
            <Content>yes</Content>
            <SummaryId>11a82ea0-ca18-4c66-8fb2-fa88cbd84784</SummaryId>
            <JobUuid>177fbde7-dafa-47b6-b996-6a96d11b44ce</JobUuid>
            <SummaryName>Connected</SummaryName>
        </Summary>
        <Summary>
            <TaskId>2e5e440e-228a-4b2d-97e4-e8ca93a68bd3</TaskId>
            <Content>yes</Content>
            <SummaryId>b0a4c6b3-bfa7-488e-b77a-394a52932e0d</SummaryId>
            <JobUuid>177fbde7-dafa-47b6-b996-6a96d11b44ce</JobUuid>
            <SummaryName>Connected</SummaryName>
        </Summary>
        <JobId>177fbde7-dafa-47b6-b996-6a96d11b44ce</JobId>
        <CallingNumbers>1003</CallingNumbers>
    </List>
    <PageNumber>1</PageNumber>
    <PageSize>10</PageSize>
    <TotalCount>1</TotalCount>
</Jobs>
<RequestId/>
<Success>true</Success>

JSON 格式

{
    "Code": "OK",
    "HttpStatusCode": 200,
    "Jobs": {
        "List":[
            {
        "Status":"Succeeded",
        "ScenarioId":"jr-collection-first-scenario",
        "Tasks":[
            {
                "Status":"Succeeded",
                "ChatbotId":"419",
                "PlanedTime":1578638554000,
                "CalledNumber":"135********",
                "ScenarioId":"jr-collection-first-scenario",
                "EndTime":1578638623000,
                "ActualTime":1578638570000,
                "CallId":"00001051951578638555",
                "CreateTime":1578638554000,
                "Summaries":[

                ],
                "Conversation":[
                    {
                        "Status":"DISTINGUISH",
                        "Script":"",
                        "TaskId":"2e5e440e-228a-4b2d-97e4-e8ca93a68bd3",
                        "ConversationId":"2380a728-45c1-45af-853c-fb7669dc512b",
                        "Timestamp":1578638570000,
                        "Speaker":"Contact"
                    },
                    {
                        "Status":"DISTINGUISH",
                        "Script":"您好,***有限公司,请问是王文杰王文杰女士吗",
                        "TaskId":"2e5e440e-228a-4b2d-97e4-e8ca93a68bd3",
                        "ConversationId":"2b30bd6f-be21-4330-9d2c-a6fd1c4d0128",
                        "Timestamp":1578638571000,
                        "Speaker":"Robot"
                    },
                    {
                        "Status":"DISTINGUISH",
                        "Script":"是的",
                        "TaskId":"2e5e440e-228a-4b2d-97e4-e8ca93a68bd3",
                        "ConversationId":"bde777f0-44a1-4e10-a405-4f8aa3b885a1",
                        "Timestamp":1578638584000,
                        "Speaker":"Contact"
                    }
                ],
                "ContactId":"8704619d-61ec-4344-a9f8-06654b795ecf",
                "Brief":"1",
                "CallingNumber":"1003",
                "Contact":{
                    "Role":"1",
                    "Honorific":"王文杰女士",
                    "ReferenceId":"abc",
                    "PhoneNumber":"135********",
                    "Round":0,
                    "ContactId":"8704619d-61ec-4344-a9f8-06654b795ecf",
                    "JobUuid":"177fbde7-dafa-47b6-b996-6a96d11b44ce",
                    "ContactName":"王文杰"
                },
                "LastUpdated":1578638623000,
                "TaskId":"2e5e440e-228a-4b2d-97e4-e8ca93a68bd3",
                "JobId":"177fbde7-dafa-47b6-b996-6a96d11b44ce"
            }
        ],
        "Priority":5,
        "CreateTime":1578638543000,
        "StrategyId":"jr-collection-oneday-strategy",
        "Extras":[
            {
                "Value":"1870.75",
                "Key":"capital"
            },
            {
                "Value":"奥迪A4L",
                "Key":"carBrand"
            }
        ],
        "GroupId":"finance-collection-first-group",
        "Contacts":[
            {
                "Role":"1",
                "Honorific":"王文杰王文杰女士",
                "ReferenceId":"abc",
                "PhoneNumber":"135********",
                "Round":0,
                "Id":"8704619d-61ec-4344-a9f8-06654b795ecf",
                "JobUuid":"177fbde7-dafa-47b6-b996-6a96d11b44ce",
                "Name":"王文杰王文杰"
            }
        ],
        "SystemPriority":1,
        "Summary":[
            {
                "TaskId":"2e5e440e-228a-4b2d-97e4-e8ca93a68bd3",
                "Content":"yes",
                "SummaryId":"11a82ea0-ca18-4c66-8fb2-fa88cbd84784",
                "JobUuid":"177fbde7-dafa-47b6-b996-6a96d11b44ce",
                "SummaryName":"Connected"
            },
            {
                "TaskId":"2e5e440e-228a-4b2d-97e4-e8ca93a68bd3",
                "Content":"yes",
                "SummaryId":"b0a4c6b3-bfa7-488e-b77a-394a52932e0d",
                "JobUuid":"177fbde7-dafa-47b6-b996-6a96d11b44ce",
                "SummaryName":"Connected"
            }
        ],
        "JobId":"177fbde7-dafa-47b6-b996-6a96d11b44ce",
        "CallingNumbers":[
            "1003"
        ]
    }
        ],
         "PageNumber":1,
        "PageSize":10,
        "TotalCount":1
    },
    "RequestId": "",
    "Success": true
}

错误码

HttpCode 错误码 错误信息 描述
404 NotExist.Instance The specified Instance does not exist. 指定的实例不存在。
404 NotExist.JobGroup The specified JobGroup does not exist. 指定的任务组不存在。
500 InternalError An error occurred while processing your request. Please try again later. Submit a ticket if the error still exists. 内部错误。建议重试,如果多次重试报错请提交工单。
400 InvalidParameter The specified parameter %s is invalid. 参数值校验不通过。请使用请求参数构造规范化的请求字符串。

访问错误中心查看更多错误码。