Get your free beta license ↗
API operation · domains group
GET

/domains/{name}/logs/{type}/content

First published 14 Oct 20260.2.0Unchanged since publication

Get a domain's access, error or PHP error log as base64

Who may call it
AdministratorResellerCustomer
Token scope, any of
domainsreadall
Answers200 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 server

Parameters

namepath ·DomainNameRequired
typepath ·string, one of access, error, phpRequired

Example

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 sentence
400--after is a number of bytes, 0 or more
400Domain name required
400Domain name too long
400Invalid domain name
400Log type must be access, error or php
401Authentication required
403Insufficient privileges
404<name> has no <type> log yet
404Domain '<name>' not found
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/