You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
API tokens for individual users can be created and managed from the [VPS page](https://hpanel.hostinger.com/vps) of the Hostinger Panel.
16
16
Tokens will have same permissions as the owning user. Optionally, tokens can be set to expire after a certain period of time.
17
17
# Rate Limiting
18
-
To ensure fair usage and prevent abuse, the API enforces rate limits on the number of requests that can be made within a certain time period.
18
+
To ensure fair usage and prevent abuse, the API enforces rate limits on the number of requests that can be made within a certain time period.
19
19
If you exceed the rate limit, you will receive a 429 Too Many Requests response. Rate limit headers are included in the response to help you manage your requests.
20
20
Your IP address might get temporarily blocked if you exceed the rate limit multiple times.
21
21
# Parameters
22
22
All requests sent to API must have the content type `application/json`. `POST`, `PUT`, `PATCH` methods may include a JSON object in the request body. Documentation provides required structure and examples of the object.
23
23
Some endpoints require path parameters. These parameters are included in the URL path and are marked with curly braces.
24
24
# Pagination
25
25
Some endpoints return a large number of items. To make these responses more manageable, the API uses pagination.
26
-
By default, the API returns 50 items per page.
27
-
26
+
By default, the API returns50 items per page.
27
+
28
28
The page number can be specified using the `page` query parameter, for example: `/api/vps/v1/public-keys?page=2`
29
29
# Errors
30
30
The Hostinger API uses standard HTTP status codes to indicate the success or failure of a request.
31
31
In case of an error, the API will return a JSON response with an `error` field, containing a human-readable error message.
32
32
Error responses also contain a `correlation_id` field which can be used to identify the request in case you need to contact support.
33
33
# Change log
34
34
For information on the latest changes to the API, please refer to the [change log](https://github.com/hostinger/api/blob/main/CHANGELOG.md).
35
-
# Support
35
+
# Support
36
36
If you have any questions, feedback or feature requests, please create an [issue](https://github.com/hostinger/api/issues) or [discussion](https://github.com/hostinger/api/discussions) on the repository.
37
37
38
38
For any support take a look at our [Github Repository](https://github.com/hostinger/api/), dedicated to the Hostinger API.
0 commit comments