API operation · domains group
GET
/domains/{name}/logs/{type}/content
First published 14 Oct 2026
0.2.0Unchanged since publicationGet a domain's access, error or PHP error log as base64
Who may call it
AdministratorResellerCustomer
Token scope, any of
domainsreadallAnswers200 OK
The response contains base64-encoded log content that you can decode and save as a file. If the log exceeds the file manager limit set by files.upload_limit_mb, UrbeStack returns the newest portion starting at a line boundary and sets cut.
Returns 400 for a type other than access, error or php. Returns 404 if the domain or the requested log does not exist. Access to an existing domain is limited to administrators, the domain owner and the owner's reseller. Other callers receive 403.
As a command
Run as root on the serverParameters
namepath ·DomainNameRequiredtypepath ·string, one of access, error, phpRequiredExample
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X GET "$API/domains/example.com/logs/access/content" \ -H "Authorization: Bearer $TOKEN"
Response ·
200 OK{
"content": "text",
"cut": true,
"domain": "example.com",
"exists": true,
"file": "urbestack-panel-20260909T101500Z.json.enc",
"size": 1,
"type": "rebuild"
}Errors
9 errors, each a status and a sentence400--after is a number of bytes, 0 or more400Domain name required400Domain name too long400Invalid domain name400Log type must be access, error or php401Authentication required403Insufficient privileges404<name> has no <type> log yet404Domain '<name>' not foundNo error of this operation matches.
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.2.0 on 14 Oct 2026.
urbestack.com/docs/api/get-domains-name-logs-type-content/