curl --request POST \
  --url https://api.pezzo.ai/api/reporting/v2/request \
  --header 'Content-Type: application/json' \
  --data '{
  "metadata": {
    "provider": "OpenAI",
    "client": "pezzo-ts",
    "clientVersion": "0.4.11",
    "environment": "Production",
    "promptId": "c41jd0s93j000ud7kg7vekhi3"
  },
  "properties": {
    "userId": "someUserId",
    "traceId": "traceId"
  },
  "request": {
    "timestamp": "2021-01-01T00:00:00.000Z",
    "body": {}
  },
  "response": {
    "timestamp": "2021-01-01T00:00:00.000Z",
    "body": {}
  },
  "cacheEnabled": true,
  "cacheHit": true
}'

Body

application/json
metadata
object
required

Metadata

properties
object

Additional properties to be associated with the report

request
object
required
response
object
required
cacheEnabled
boolean
default: false

Whether caching is enabled for the report

cacheHit
boolean
default: false

Whether the report was generated from a cache hit or not