POST
/plugins/errorsSubmit a diagnostics object
Submits a diagnostics object sent by the WakaTime CLI. Include diagnostic details such as the CLI version, platform, logs, or stack trace to provide context for the reported issue.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
A JSON diagnostics object sent by the WakaTime CLI.
architecturestringoptional
Architecture of the environment where the CLI ran.
cli_versionstringoptional
Version of the WakaTime CLI.
idintegeroptional
Integer identifier for the diagnostics object.
logsstringoptional
Diagnostic logs from the CLI.
platformstringoptional
Platform where the CLI ran.
pluginstringoptional
Plugin associated with the diagnostics report.
stacktracestringoptional
Stack trace associated with the diagnostic.
201Returns confirmation that the diagnostics object was created.
Error handling
The schema does not mark any diagnostics fields as required. Use the declared types, including an integer for id and strings for fields such as cli_version and stacktrace.