POST
/
organizations
/
{organization_name}
/
log-entries
Query Log Entries
curl --request POST \
  --url https://api.salad.com/api/public/organizations/{organization_name}/log-entries \
  --header 'Content-Type: application/json' \
  --header 'Salad-Api-Key: <api-key>' \
  --data '{
  "end_time": "2023-11-07T05:31:56Z",
  "page_size": 1,
  "query": "<string>",
  "sort_order": "desc",
  "start_time": "2023-11-07T05:31:56Z"
}'
{
  "items": [
    {
      "json_log": {},
      "parent_span_id": "<string>",
      "receive_time": "2023-11-07T05:31:56Z",
      "resource": {
        "labels": {},
        "type": "<string>"
      },
      "severity": "debug",
      "span_Id": "<string>",
      "text_log": "<string>",
      "time": "2023-11-07T05:31:56Z",
      "trace_Id": "<string>"
    }
  ],
  "organization_name": "acme-corp",
  "page_max_time": "2023-11-07T05:31:56Z",
  "page_min_time": "2023-11-07T05:31:56Z"
}
Last Updated: July 1, 2025

Authorizations

Salad-Api-Key
string
header
required

Path Parameters

organization_name
string
required

Your organization name. This identifies the billing context for the API operation and represents a security boundary for SaladCloud resources. The organization must be created before using the API, and you must be a member of the organization.

Required string length: 2 - 63
Examples:

"acme-corp"

Body

application/json

Represents a query for logs

end_time
string<date-time>
required

The end time of the time range

query
string
required

The query string for filtering logs

Maximum length: 20000
start_time
string<date-time>
required

The start time of the time range

page_size
integer

The maximum number of items per page.

Required range: 1 <= x <= 100
Examples:

1

sort_order
enum<string>
default:desc

The sort order of the log entries. asc will sort the log entries in chronological order. desc will sort the log entries in reverse chronological order.

Available options:
desc,
asc

Response

OK

Represents a page of organization logs

items
object[]
required

A collection of log entries

Maximum length: 10000
organization_name
string
required

The organization name.

Required string length: 2 - 63
Examples:

"acme-corp"

page_max_time
string<date-time>
required

The maximum time page boundary. This may be used when getting paginated results.

page_min_time
string<date-time>
required

The minimum time page boundary. This may be used when getting paginated results.