Wakapi unofficial
POST/plugins/errors

Submit 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.

7 body fields

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.

1 status code
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.