v1

latestOpenAPI 3.0.02026-07-13564.8 KB
Reporting

Report a request

post/reporting/v2/request

Request body

propertiesobject

Additional properties to be associated with the report

cacheEnabledboolean

Whether caching is enabled for the report

cacheHitboolean

Whether the report was generated from a cache hit or not

Example request

{
  "metadata": {
    "client": "pezzo-ts",
    "clientVersion": "0.4.11",
    "environment": "Production",
    "promptId": "c41jd0s93j000ud7kg7vekhi3"
  },
  "properties": {
    "userId": "someUserId",
    "traceId": "traceId"
  },
  "request": {
    "timestamp": "2021-01-01T00:00:00.000Z"
  },
  "response": {
    "timestamp": "2021-01-01T00:00:00.000Z"
  }
}

Response

Report has been reported successfully