# Requests format

### Request

&#x20;<mark style="background-color:blue;">GET</mark> or  <mark style="background-color:green;">POST</mark> requests send to project address, e.g.`https://domain.rezonuniversal.com/api/`.

{% hint style="warning" %}
Requests can be sent only from allowed IP addresses
{% endhint %}

Request parameters can be sent as <mark style="background-color:blue;">GET</mark> or  <mark style="background-color:green;">POST</mark> parameters. List of general request parameters:

| key   | The access key <mark style="color:red;">(required)</mark>   | \*\*\*\*\*                                                       |
| ----- | ----------------------------------------------------------- | ---------------------------------------------------------------- |
| token | The access token <mark style="color:red;">(required)</mark> | \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* |
| t     | Type of response                                            | xml / json                                                       |
| lang  | language                                                    | en  / ua / ru / ..                                               |
| ip    | IP address of client                                        |                                                                  |

### Response

The response can be in XML or JSON format. You can control it by `t` parameter (`xml/json`) or by setting http header `Accept: application/json` or `application/xml`

Any response contains a "wrapper" that defines the status of the response and the data

{% tabs %}
{% tab title="JSON" %}

```javascript
{
   "StatusCode": "200",
   "Status": "OK",
   "Body": {
      "Data": [],
   }
}
```

{% endtab %}
{% endtabs %}

#### Fields of response

&#x20;<mark style="background-color:yellow;">StatusCode</mark> - Status of response code *(200 - Success; 400 - Invalid request; 401 - Not authorized; 500 - Internal error etc.)*

&#x20;<mark style="background-color:yellow;">Status</mark> - Status of response

&#x20;<mark style="background-color:yellow;">Body/Data</mark> - Main data

### RPS limit

Currently, all API methods have a limit of 2 RPS (requests per second).

In 1 minute you can send no more than 120 requests.

If this number of requests is exceeded, the system will return an error <mark style="background-color:red;">9003 RPS limit violetes</mark>&#x20;
