Let $q(\mathbf{x}) = q(x_1, \cdots, x_n)$ be a quadratic form with integer coefficients. For $n \geq 3$, is there a reasonable theory for the set of integer solutions to the equation
$$\displaystyle q(\mathbf{x}) = 1?$$
When $n = 2$ this is the well-known theory of Pell equations. Indeed, it is known that $q(\mathbf{x}) = 1$ has a solution in integers if and only if $q$ is $\text{GL}_2(\mathbb{Z})$-equivalent to the principal form $x^2 - dy^2$ for some $d \geq 1$, and if $d$ is not a square, then there will be infinitely many solutions generates by a single fundamental solution.
Obviously, the same type of structure cannot exist for $n \geq 3$ since $q$ is in general geometrically irreducible, unlike the case when $n = 2$. Nevertheless, it would be nice to be able to describe the set of integer solutions in some reasonable way.