Posium LogoPOSIUM

Submit a new report

Creates a new report entry and associates it with a run

POST
/report
/report

The Authorization access token

Authorization

x-api-key<token>

In: header

Request Body

application/jsonRequired

runIdstring

Optional unique identifier for the test run

event
Required
string

The event name or type

internalboolean

Whether this is an internal event

Default: false

happened_at
Required
string

When the event occurred

Format: "date-time"

data
Required
object

Event-specific data payload

curl -X POST "https://reporter.posium.ai/report" \
  -H "x-api-key: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "runId": "string",
    "event": "string",
    "internal": false,
    "happened_at": "2019-08-24T14:15:22Z",
    "data": {}
  }'

Report successfully created

{
  "message": "Report saved successfully",
  "runId": "string"
}