API reference
Logs
Error and access logs, visitors.
Recent web server errors
GET/api/v1/accounts/{id}/logs/errors
Parameters
| Name | In |
|---|---|
id | path |
domain | query |
lines | query |
source | query |
Responses
- 200 OK
Body
Field Type domainany linesarray of string sourceany - 400 Bad Request: rejected, validation
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
List raw access logs
GET/api/v1/accounts/{id}/logs/raw
Parameters
| Name | In |
|---|---|
id | path |
Responses
- 200 OK
Body
map of any
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
Download a raw access log
GET/api/v1/accounts/{id}/logs/raw/download
Parameters
| Name | In |
|---|---|
id | path |
domain | query |
Responses
- 200 OK
- 400 Bad Request: rejected, validation
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
Save the access log settings
PUT/api/v1/accounts/{id}/logs/settings
Parameters
| Name | In |
|---|---|
id | path |
Request body
| Field | Type |
|---|---|
archive | boolean |
prune | boolean |
Responses
- 200 OK
Body
Field Type settingsHostingLogSettings - 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
Latest visitors of a domain
GET/api/v1/accounts/{id}/logs/visitors
Parameters
| Name | In |
|---|---|
id | path |
domain | query |
Responses
- 200 OK
Body
Field Type domainstring itemsarray of Visitor - 400 Bad Request: rejected, validation
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal