GET
/
api
/
public
/
observations
/
{observationId}
{
  "id": "<string>",
  "traceId": "<string>",
  "type": "<string>",
  "name": "<string>",
  "startTime": {},
  "endTime": {},
  "completionStartTime": {},
  "model": "<string>",
  "modelParameters": {
    "property1": "<string>",
    "property2": "<string>"
  },
  "input": null,
  "version": "<string>",
  "metadata": null,
  "output": null,
  "usage": {
    "input": 123,
    "output": 123,
    "total": 123,
    "unit": "<string>",
    "inputCost": 123,
    "outputCost": 123,
    "totalCost": 123
  },
  "level": "<string>",
  "statusMessage": "<string>",
  "parentObservationId": "<string>",
  "promptId": "<string>",
  "usageDetails": {
    "property1": 123,
    "property2": 123
  },
  "costDetails": {
    "property1": 123,
    "property2": 123
  },
  "promptName": "<string>",
  "promptVersion": 123,
  "modelId": "<string>",
  "inputPrice": 123,
  "outputPrice": 123,
  "totalPrice": 123,
  "calculatedInputCost": 123,
  "calculatedOutputCost": 123,
  "calculatedTotalCost": 123,
  "latency": 123,
  "timeToFirstToken": 123
}

Response Description

Below you will see the description of the Get a observation response

id
string
required

Unique identifier of the observation.

traceId
string
required

Identifier of the trace associated with the observation.

type
string
required

Type of the observation.

name
string
required

Name of the observation.

startTime
date-time
required

Start time of the observation in ISO 8601 format.

endTime
date-time
required

End time of the observation in ISO 8601 format.

completionStartTime
date-time

Time when the completion process started in ISO 8601 format.

model
string
required

Name of the model used in the observation.

modelParameters
object

Model parameters associated with the observation.

input
null

Input data for the observation (nullable).

version
string

Version of the observation.

metadata
null

Metadata associated with the observation (nullable).

output
null

Output data from the observation (nullable).

usage
object
required

Usage metrics for the observation.

level
string
required

Log level of the observation (e.g., DEBUG).

statusMessage
string

Status message of the observation.

parentObservationId
string

Parent observation ID, if applicable.

promptId
string

Identifier of the prompt used in the observation.

usageDetails
object

Detailed usage metrics for the observation.

costDetails
object

Detailed cost metrics for the observation.

promptName
string

Name of the prompt used in the observation.

promptVersion
integer

Version of the prompt used in the observation.

modelId
string

Identifier of the model used in the observation.

inputPrice
integer

Price for input usage.

outputPrice
integer

Price for output usage.

totalPrice
integer

Total price for the observation.

calculatedInputCost
integer

Calculated input cost.

calculatedOutputCost
integer

Calculated output cost.

calculatedTotalCost
integer

Calculated total cost for the observation.

latency
integer

Latency of the observation in milliseconds.

timeToFirstToken
integer

Time taken to generate the first token in milliseconds.

Code Response

Exemples of Response Code

200

Request Successful Response

400

Request Failure