# 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;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://api.rezonuniversal.com/general.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
