Telemetry

Operations related to post-LLM prompt execution telemetry reporting.

Report execution telemetry details post-LLM call

POST
https://api.prompteasy.eu/v1/executions/{execution}/telemetry

Body

application/json
actual_llm_modelstring

Actual LLM model name used for completion

Example
gpt-4o
prompt_tokensinteger>= 0

Number of prompt/input tokens used

Example
1500
completion_tokensinteger>= 0

Number of output/completion tokens generated

Example
300
cached_prompt_tokensinteger>= 0

Number of cached prompt tokens

Example
500
reasoning_tokensinteger>= 0

Number of reasoning tokens used

Example
100
latency_msinteger>= 0

Total request execution duration in milliseconds

Example
1250
ttft_msinteger>= 0

Time to first token in milliseconds

Example
200
finish_reasonstring

LLM completion finish reason

Example
stop
statusinteger123

Execution status (1 = fetched, 2 = completed, 3 = failed)

Example
2

Parameters

executionstring<uuid>requiredpath

Response

Telemetry recorded successfully

Response fields application/json
messagestringrequired
Example
Telemetry recorded successfully.
execution_idstring<uuid>required
Example
018f0000-0000-7000-8000-000000000002
has_telemetrybooleanrequired
Example
true
statusintegerrequired
Example
2
403Forbidden

Forbidden

404Not Found

Not Found

422Unprocessable EntityValidationError

Unprocessable Entity

Response fields application/json
messagestring
Example
Validation failed
Show child attributes
nameArray<string>

Authorization

ApiKeyAuthapiKey in header
BearerAuthhttp (bearer)