Logs
An app's log: what its deploys did, oldest first. By default lines are kept 7 days, and at most the newest 10000 per app.
Read
https://api.akter.dev/v1/organizations/{organization}/apps/{app}/logsRead an app's log lines oldest first, a page at a time, optionally only one source, one deploy or the lines since a time. Every page carries nextCursor, the last line read: pass it to read on, now or later, and an empty page means nothing newer yet.
Path parameters
appstringrequiredAn app's name, unique within its organization. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.
organizationstringrequiredAn organization's name, unique across Akter Cloud. 1 to 63 characters: a lowercase letter, then lowercase letters, digits or single hyphens, ending in a letter or digit.
Query parameters
cursorstringThe nextCursor of the previous page.
limitstringAt most this many items, 1 to 100. Defaults to 50.
deploystringOnly the lines about this deploy.
sincestringOnly the lines written at or after this time.
source"deploy" | "computer"What wrote the line: deploy for a deploy's lifecycle, computer for what happened to one of an actor's computers.
Response 200LogPage
itemsLogLine[]requireditems[].atstringrequireditems[].level"info" | "warning" | "error"requireditems[].messagestringrequireditems[].source"deploy" | "computer"requiredWhat wrote the line: deploy for a deploy's lifecycle, computer for what happened to one of an actor's computers.
items[].subjectstringrequiredWhat the line is about: a deploy's id for deploy lines, and <environment>/<Actor>/<key>/<computer> for computer lines.
nextCursorstringPass as cursor for the next page.
Errors
401UnauthorizedError403ForbiddenError404NotFoundError | FeatureNotEnabledError503ActorUnavailableError | AuthUnavailableError | BillingUnavailableError | BuildStorageUnavailableError | ExecUnavailableError