PostResult
Updated at:2025-11-03
API description
Push event messages processed by the ImageOcr and ImageClassify products to the URL set by the app, containing BOS event information and AI processing results.
If the encryption field is configured in the rule, the request will include the Authorization signature to ensure the message is not forged or tampered with.
Note:
- Only the
Status Code: 200 OKcan indicate the message push is successful. Otherwise, it shall be retried.- For overload protection, it supports
Status Code: 429 Too Many Requestsreturn value, and will retry after an interval;
Request
-
Request syntax
Plain Text1http 2POST /?result HTTP/1.1 3Host: <User_Host> 4Date: <Date> 5Content-Type: application/json; charset=utf-8 6Content-Length: <Content_Length> 7Authorization: <AuthorizationString> -
Request parameters
| Field | Types | Description | |
|---|---|---|---|
| version | String | Event version: currently 1.0 |
|
| eventType | String | Event type | |
| eventTime | String | Event occurrence time (in GMT format) | |
| content | Object | Event details | |
| +domain | String | Corresponding domain | |
| +bucket | String | Corresponding bucket | |
| +object | String | Object name | |
| +eTag | String | The eTag of the object. If the object may be overwritten, the eTag is used to determine which version of the object triggers the event. | |
| result | String | For actual events such as imageOcr and imageClassify, refer to AI General Text Recognition and AI General Image Analysis |
Response
Example
-
Request example
Plain Text1http 2POST /?result HTTP/1.1 3Host: BucketName.bj.bcebos.com 4Date: Wed, 12 Sep 2018 06:34:40 GMT 5Content-Type: application/json; charset=utf-8 6Content-Length: 0 7{ 8 "events": [ 9 { 10 "version": "1.0", 11 "eventType": "PutObject", 12 "eventTime": "2009-10-28T22:32:00Z", 13 "content": { 14 "domain": "bj.bcebos.com", 15 "bucket": "bucket-test", 16 "object": "images/test.jpg", 17 "eTag": "977b9623a15e520c663ac5ff6647e881", 18 }, 19 "imageOcr": { 20 "log_id": 153673668620866, 21 "result": { 22 "ocr": { 23 "log_id": 1078286758436670376, 24 "words_result": [ 25 { 26 "words": "MAKE" 27 } 28 ], 29 "words_result_num": 1, 30 "direction": 0 31 } 32 } 33 }, 34 "imageClassify": { 35 "log_id": 6353842115261500790, 36 "result_num": 1, 37 "result": [ 38 { 39 "score": 0.566877, 40 "root": "Image-Portrait", 41 "keyword": "Ponytail" 42 } 43 ] 44 } 45 } 46 ] 47} -
Response example
Plain Text1HTTP/1.1 200 OK 2x-bce-request-id: 4db2b34d-654d-4d8a-b49b-xxxxxx786409 3Date: Wed, 12 Sep 2018 06:34:40 GMT 4Content-Length: 0 5Connection: close 6Server: BceBos
