Directadmin does not have a feature to modify DOCROOT per domain hence there is no document root variable in domain's configs. That's why there is no API interface to get it. Document root is built in Apache/NGINX templates (by Directadmin):
Code:
|?DOCROOT=`HOME`/domains/`DOMAIN`/public_html|
and
Code:
|?DOCROOT=`HOME`/domains/`DOMAIN`/private_html|
and for subdomains:
Code:
/|SUB|
is added later.
If you still need to get it via API then you could probably use "API command for running abitrary shell commands as the user - CMD_API_EXEC" to get it from