The last lines each of a service's replicas printed, read from its cluster on request. Takes up to 15 seconds.
API key access: read.
apiKeyAuthorizationBearer <pyo_…>An API key from the dashboard's API keys page: Authorization: Bearer pyo_…. Keys can expire, and an expired one gets a 401.
id*stringThe service's id (svc_…).
The lines.
application/jsonA service's recent output.
logs*array<>The last 300 lines of each replica, oldest first.
fetchedAt*integerWhen they were read, in milliseconds since 1970.
int64curl -X GET 'https://your-pyo.example.com/api/v1/services/string/logs'{
"logs": [
{
"at": 0,
"level": "string",
"source": "string",
"message": "string"
}
],
"fetchedAt": 0
}