Download OpenAPI specification:Download
By setting a endpoint URL as a callback_endpoint paramater or subscribe BOT(event hook) in BOT Execution, you can POST your execution result to the endpoint.
This paper compiled the Endpoint implement requirements.
All the multi-byte characters contained in the request payload must be treated as UTF-8 format.
To receive the posted result.
Respond with response code 200 after receiving.
When the callback_endpoint get response code other than 200 series, retry callback post will be executed. The smallest retrying interval is 30 seconds.
Time will be added to bot execution time during the callback post retrying.
content-type required | string Value: "application/json" |
code required | integer Response Code |
job_id required | string Job ID |
bot_id required | string BOT ID |
bot_name required | string BOT Name |
status required | integer [ 0 .. 2 ] Status(0:Succeeded 1:Error 2:Executing) |
start_time required | string <date-time> Execution start time(ISO 8601) |
elapsed_time | integer Elapsed time(in seconds) |
object (datalist_output) An object that represents an output value. | |
message | string Message |
{- "code": 201,
- "job_id": "00000000-0000-0000-0000-000000000000",
- "bot_id": "get_items",
- "bot_name": "GETTING ITEMS BOT",
- "status": 0,
- "start_time": "2019-12-02T05:30:13Z",
- "elapsed_time": 6,
- "output": {
- "Number": "2",
- "Items": [
- {
- "Item name": "Cheese Cake",
- "Price": "500",
- "Image": {
- "type": "files",
- "files": [
- {
- "ref": "jobs/00000000-0000-0000-0000-000000000000/files/00000000-0000-0000-0000-000000000000",
- "meta": {
- "name": "0001.jpg",
- "size": 603956,
- "timestamp": 1513657350000
}
}
]
}, - "Tags": [
- "Cake",
- "Cheese"
]
}, - {
- "Item name": "Gateau Chocolat",
- "Price": "600",
- "Image": {
- "type": "files",
- "files": [
- {
- "ref": "jobs/00000000-0000-0000-0000-000000000000/files/00000000-0000-0000-0000-000000000001",
- "meta": {
- "name": "0002.jpg",
- "size": 694475,
- "timestamp": 1651024763990
}
}
]
}, - "Tags": [
- "Cake",
- "Chocolate"
]
}
]
}
}