API documentation

A list of all publicly available methods for interacting with the API.

What methods are supported?

90% of the site's functionality is available for the public API; the other part is not available because it may be tied to the frontend or blocked for security reasons.

HTTP Headers

X-CSRF-Token

CSRF token, required only if used as a frontend.

Locale

Answer language, currently supported: en, ru, uk, pl

Authorization

Authorization, the token must be preceded by: API-Token

SP-Referral

Referral code required for discount (if no user has been created).

sp-site

The site from which the token is used (used for internal analytics; you can specify the name of your project).

sp-comefrom

Label where the user came from (eg Google Search)

Respond

{
	"data": { // The data returned by the method
		"user": ....
	},
	"good": true, // Request success (sometimes 200 may return false)
	"timestamp": 1731493828, // Request start time (when the server started processing data)
	"cause": { // Who executed this method + token signature (you can check the user
		"type": "api",
		"user_id": 1,
		"token_id": 75,
		"token_sign": "63992323944b77852d3b2b901498fc57"
	}
}