Error Logs

Log a client-side app error (no auth required)

post/api/errors/log

Request

  • Base URL
    https://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.rewritelifestyle.ai/api/errors/log
  • Auth
    none declared

Request body

errorMessagestring required
userIdnumber
errorCodestring
actionstring
screenstring
platformstring
appVersionstring
stackTracestring
metadataobject

Example request

{
  "errorMessage": "Cannot read property of undefined",
  "userId": 42,
  "errorCode": "API_FAILURE",
  "action": "food_log.submit",
  "screen": "FoodLogScreen",
  "platform": "ios",
  "appVersion": "2.1.0",
  "stackTrace": "Error: ...\n  at foo.js:12",
  "metadata": {
    "device": "iPhone 14",
    "osVersion": "17.2"
  }
}

Changes

No recorded changes to this operation across all 34 revisions of this API.