Skip to main content
organizationId
string
required
Unique identifier for a given Organization.
deploymentId
string
required
Unique identifier for a given TVC Deployment. The deployment must be running in debug mode.
tailLines
number
Limit returned history to the last N lines per replica. If unset or zero, no tail-line limit is applied.
sinceSeconds
string
Return logs newer than this many seconds ago. If unset or zero, no since-time limit is applied. Useful for clients that poll to follow logs.
A successful response returns the following fields:
entries
array
required
Application log entries sorted by platform timestamp.
curl --request POST \
  --url https://api.turnkey.com/public/v1/query/get_tvc_deployment_debug_logs \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header "X-Stamp: <string> (see Authorizations)" \
  --data '{
    "organizationId": "<string>",
    "deploymentId": "<string>",
    "tailLines": "<number>",
    "sinceSeconds": "<string>"
}'
{
  "entries": [
    {
      "line": {
        "content": "<string>",
        "ts": {
          "seconds": "<string>",
          "nanos": "<string>"
        }
      },
      "replicaLabel": "<string>"
    }
  ]
}