API response
The API response is the data received from the server as a result of the requested Cocktail operation
The response may include the success of the requested task, data, error messages, etc
Below is an example of a simple JSON-formatted API response.
Response for successful task completion.
Item | Data type | Content |
---|---|---|
| string |
|
| The type varies depending on the requested task | Contents of the query |
| string | Internal response status |
You can determine the success of the task based on the status.
Item | Data type | Content |
---|---|---|
| string | Value: "" |
message | string | Value: "" |
metadata | string | Value: null |
| The type varies depending on the requested task | Contents of the query |
| string |
|
Response for failed task execution
Item | Data type | Content |
---|---|---|
| string | Internal Response Status Code |
| string | Internal Response Status Message |
| string | Internal Response Status |
API REFERENCE
The API REFERENCE document below contains only the content regarding the "result" value in case of successful task execution.
Last updated