Guides
GET STARTED
Standard response

Standard response

If the request is successful, the API will return OK (HTTP status code 200) and a JSON object, otherwise, it will return an HTTP status code that indicates the error and a JSON object that contains the error details.


code    number    Required
The business code, 0 indicates success, otherwise indicates error. In most cases, the error code will be equal to the HTTP status code (e.g. 400, 401, 404, 500, etc). Or else, it will be a custom error code defined by the API.

message    string    Required
The error message, if the request is successful, the message will be "Success" otherwise it will be the error details.

data    object    Optional
The response data object only available when the request is successful (HTTP status code 200 and business code 0). The data object will be different for each API.

The following JSON object is an example of a successful response:

{
  "code": 0,
  "message": "Success",
  "data": {
    "presets": [
      {
        "presetId": "002",
        "thumbnail": "https://seawaveprod.blob.core.windows.net/bvbiz/vmake/admin/web/ai-fashion-model/4d3bf91c-a90e-42a1-9d90-2785517a0a8a.jpeg"
      },
      {
        "presetId": "003",
        "thumbnail": "https://seawaveprod.blob.core.windows.net/bvbiz/vmake/admin/web/ai-fashion-model/7c62b5a5-220d-438b-a88f-1773fd1632b1.jpeg"
      }
    ]
  }
}