> For the complete documentation index, see [llms.txt](https://docs.aio.exchange/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aio.exchange/introduction.md).

# Introduction

## Response Format

The default response format for the API:

```json
{
    "data":[],
    "success":true,
    "error":null,
    "timestamp":1678875798,
    "requestId": "abcd1234"
}
```

| Name      | Type         | Description                                                 |
| --------- | ------------ | ----------------------------------------------------------- |
| response  | object       | Contains the result of the API request if there is no error |
| success   | bool         | Whether the request has been successful                     |
| error     | Error Object | contains error object, if any errors                        |
| timestamp | long         | response time in unix time milliseconds                     |
| requestId | string       | reference id related to the current request                 |

Data returned from a specific endpoint will be contained in the response object.

## Error Format

The error object will contain details of the error recorded with error id for the reference.

```
{
      "isError":true,
      "errorId":"3d9fc90d-30c2-4f63-bd40-c0a18c3ab4df",
      "shortErrorMessage":"Error134",
      "message":"Invalid Payload."
   }
```

| Name              | Type   | Description                              |
| ----------------- | ------ | ---------------------------------------- |
| errorId           | string | recorded error id for reference          |
| isError           | bool   | true, if reported error                  |
| shortErrorMessage | string | Error code referencing the type of error |
| message           | string | detail description of the error reported |
