Please read the introduction to the “JSON API” available at https://www.phpdocx.com/documentation/introduction/json-api.