Skip to main content
GET
/
v5
/
agentex
/
deployments
/
{deployment_id}
/
logs
Get Deployment Logs
curl --request GET \
  --url https://api.egp.scale.com/v5/agentex/deployments/{deployment_id}/logs \
  --header 'x-api-key: <api-key>'
{
  "deployment_id": "<string>",
  "has_more": true,
  "lines": [
    {
      "id": "<string>",
      "message": "<string>",
      "timestamp": "2023-11-07T05:31:56Z",
      "log_level": "INFO"
    }
  ],
  "next_cursor": ""
}

Authorizations

x-api-key
string
header
required

Headers

x-selected-account-id
string | null

Path Parameters

deployment_id
string
required

Query Parameters

cursor
string
default:""

Cursor from previous response's next_cursor field

limit
integer
default:100

Maximum number of log lines to return

Required range: 1 <= x <= 500

Response

Successful Response

Response containing structured deployment log lines with cursor-based pagination.

The CLI can poll this endpoint to stream logs incrementally:

  1. First call: no after_id
  2. Subsequent calls: after_id=next_cursor from previous response
  3. Stop polling when has_more is False and the deployment reaches a terminal status
deployment_id
string
required

The deployment ID

has_more
boolean
required

True if there may be more lines beyond this page (len(lines) == limit).

lines
AgentexCloudDeployLog · object[]

Structured log lines

next_cursor
string
default:""

Cursor for the next page. Pass this as the after_id query parameter to get subsequent logs.