Skip to main content
POST
This endpoint retrieves the LLM call ledger for a project, with the request parameters supplied in the request body rather than the URL query string. It supports the same filters, pagination, sorting, and response formats as the corresponding GET endpoint. Use the POST endpoint when the request parameters must be encrypted. When request encryption is enabled for the Platform Key, send the LlmLedgerQueryBody as an encrypted JWE. When response encryption is enabled, the endpoint also returns the response as an encrypted JWE, including error responses after the API key has been authenticated. The endpoint returns individual LLM calls rather than aggregating calls by conversation turn. You can use dataMode to return either call-level details or, with full, the stored prompt and response payloads when available.

Authorizations

x-api-key
string
header
required

Project-bound API key. Do not send an Authorization header.

Path Parameters

projectId
string
required
Minimum string length: 1

Body

POST form of the GET query parameters: a flat JSON object whose keys are the GET query parameter names. For a Platform Key with request encryption on, send this object encrypted as an EncryptedRequest instead.

fromDate
string<date-time>
required

Same as the fromDate query parameter of the GET operation.

toDate
string<date-time>
required

Same as the toDate query parameter of the GET operation.

limit
integer
default:100

Same as the limit query parameter of the GET operation.

Required range: 1 <= x <= 10000
offset
integer
default:0

Same as the offset query parameter of the GET operation.

Required range: x >= 0
sessionIds

Same as the sessionIds query parameter of the GET operation. Send a JSON array, or a comma-separated string as in the query string.

Maximum array length: 10000
Minimum string length: 1
channel
enum<string>

Same as the channel query parameter of the GET operation.

Available options:
http_async,
slack,
line,
msteams,
whatsapp,
messenger,
instagram,
twilio_sms,
zendesk,
telegram,
genesys,
genesys_open_messaging,
ai4w,
kore_agent_assist,
email,
voice_vxml,
korevg,
audiocodes,
genesys_audio_connector,
voice_pipeline,
voice_realtime,
voice,
voice_twilio,
voice_livekit,
ag_ui,
a2a,
sdk_websocket,
web_debug,
web_chat,
api,
http
source
enum<string>

Same as the source query parameter of the GET operation.

Available options:
runtime,
runtime_internal,
arch,
evals,
pipelines,
guardrails,
knowledge,
studio_test_calls,
channels,
agent_session,
eval,
analytics_pipeline,
analytics_query,
guardrail,
search_ai,
prompt_library,
model_health,
model_admin,
health:credential-store,
sdk_widget_localization
sourceSubtype
enum<string>

Same as the sourceSubtype query parameter of the GET operation.

Available options:
response_generation,
conversation_history_compaction,
ner_gather_llm_extraction,
model_based_pii_entity_recognizer,
model_entity_preview,
llm_backed_validation,
searchai_kb_query_intelligence,
searchai_query_assistance,
routing_pipeline,
pipeline_classifier,
pipeline_tool_filter,
pipeline_merge,
contextual_filler_generation,
tool_result_summarization,
sip_handoff_summary,
semantic_execution,
legacy_nlu_fallback,
general_assistance,
project_assistance,
eval_remediation,
evaluation_suite_generation,
natural_language_analytics_query,
text_to_sql,
guardrails,
studio_test_calls,
widget_copy_translation,
tool_use_iteration,
response_gen,
realtime_response,
conversation_compaction,
nlu_entity_extraction,
kb_classify_rewrite,
field_validation,
agent_building,
eval_suite_creation,
eval_design_time_asset_generation,
nl_to_sql,
nl_query,
query_intelligence,
prompt_test,
prompt_experiment,
credential_health_check,
translation_generation
status
enum<string>

Same as the status query parameter of the GET operation.

Available options:
success,
failed
model
string

Same as the model query parameter of the GET operation.

Minimum string length: 1
provider
string

Same as the provider query parameter of the GET operation.

Minimum string length: 1
environment
enum<string>

Same as the environment query parameter of the GET operation.

Available options:
development,
staging,
production,
working-copy
name
string

Same as the name query parameter of the GET operation.

Minimum string length: 1
channelType
enum<string>

Same as the channelType query parameter of the GET operation.

Available options:
http_async,
slack,
line,
msteams,
whatsapp,
messenger,
instagram,
twilio_sms,
zendesk,
telegram,
genesys,
genesys_open_messaging,
ai4w,
kore_agent_assist,
email,
voice_vxml,
korevg,
audiocodes,
genesys_audio_connector,
voice_pipeline,
voice_realtime,
voice,
voice_twilio,
voice_livekit,
ag_ui,
a2a,
sdk_websocket,
web_debug,
web_chat,
api,
http
attributionName
string

Same as the attributionName query parameter of the GET operation.

Minimum string length: 1
attributionType
string

Same as the attributionType query parameter of the GET operation.

Minimum string length: 1
attributionId
string

Same as the attributionId query parameter of the GET operation.

Minimum string length: 1
attributionScope
string

Same as the attributionScope query parameter of the GET operation.

Minimum string length: 1
dataMode
enum<string>
default:summary

Same as the dataMode query parameter of the GET operation.

Available options:
summary,
full
sortBy
enum<string>
default:timestamp

Same as the sortBy query parameter of the GET operation.

Available options:
timestamp,
latencyMs,
cost,
totalTokens
sortOrder
enum<string>
default:asc

Same as the sortOrder query parameter of the GET operation.

Available options:
asc,
desc

Response

LLM ledger page returned successfully (same body as the GET form).

success
boolean
required

Always true on a successful response.

statusCode
integer
required

HTTP status code returned by the provider — 200 when the call succeeded.

total
integer
required

Total number of calls matching your filters, across all pages.

Required range: x >= 0
limit
integer
required

The page size applied to this response.

Required range: 1 <= x <= 10000
offset
integer
required

The offset applied to this response.

Required range: x >= 0
dataMode
enum<string>
required

The detail level applied to this response, echoing your request.

Available options:
summary,
full
hasMore
boolean
required

Whether more pages are available after this one.

generations
object[]
required

The LLM calls on this page.

attributionMatch
object

Present only when an attributionName filter matched more than one source.