/projects/{project_id}/branches/{branch_id}/logs/fieldsList branch log fieldsLists the low-cardinality log fields observed on this branch whose distinct values can be discovered with the log field-values endpoint.
The set is computed per branch and grows as new fields are observed, so treat it as data rather than a fixed list: discover a field here, then pass it as field_name to the field-values endpoint.
Note: This endpoint is currently in Private Beta.
Parameters
project_idstringpathrequiredThe Neon project ID
branch_idstringpathrequiredThe Neon branch ID
Responses
fieldsarray of stringrequiredLog field names observed on this branch, each usable as `field_name` on the log field-values endpoint. Computed per branch rather than fixed by this specification, so clients should not assume a particular set.
Show child attributes
{
"fields": [
"string"
]
}codestringrequiredmessagestringrequiredreasonstringrequiredMachine-readable reason why logs cannot be read: - `branch_not_found`: the project or branch does not exist, or the caller does not have access to it. - `telemetry_not_enabled`: the branch exists but is not collecting telemetry, so it has no logs to serve.
{
"code": "LOGS_NOT_AVAILABLE",
"message": "string",
"reason": "branch_not_found"
}codestringrequiredmessagestringrequiredError message
request_idstringUnique identifier for the request, useful for debugging. You can set this value manually by including an `X-Request-ID` header in the request. If not provided, the value will be generated automatically.
{
"code": "",
"message": "string",
"request_id": "string"
}