DevelopersHow to connect an assistantKeys
Reference/Report/Create

Send a report

POSThttps://api.getwerk.ai/api/v1/account/feedback

Sends a report from the key's person to the people who build Werk.

A report is a text or a voice recording, and may name the project it is about. It is kept in Werk's support inbox; nobody in the project is told.

Authorization

AuthorizationheaderRequired

Authorization: Bearer <key> Authentication

Body

clientRequestIdstring, uuidRequired

An id the caller makes for this request. Sent again with the same request, it returns the first answer and changes nothing twice; sent with a different request, it is refused.

reportedAtstring, date-timeRequired

When the report was written, as an ISO 8601 date and time with Z or an offset.

appVersionstringRequired

The version of the program sending the report.

textstring

The report, in words; a report has text or audio, never both.

audioobject

A voice recording uploaded first with POST /assets, as the report.

Show properties of audioHide properties of audio
assetIdstring, uuidRequired

The recording's upload id.

sourceenum

assistant when an assistant sends the report for the person.

Allowed valuesassistant
projectIdstring, uuid

The project the report is about.

Response

202 The report was received.

feedbackIdstring, uuid

The report's id.

statusenum

Always accepted: the report was received.

Allowed valuesaccepted
reportedAtstring, date-time

When the report says it was written.

Errors

400invalid_queryThe query is not in the form the route takes; the limit is in the unit of the input details.field names (characters for a text, entries for a list, the value for a number).
400invalid_feedback_detailThe feedback detail or the report is not in the form the route takes; the limit is in the unit of the input details.field names (characters for a text, entries for a list, the value for a number).
400invalid_attachmentA file the request names, or the way it names it, is not one the request takes there; the limit is in the unit of the input details.field names (characters for a text, entries for a list, the value for a number).
401session_revokedThe request carries no session the server holds, or its session has ended.
401session_expiredThe session has expired.
404conversation_not_foundThe project the request names, or its chat, is not one the signed-in person is in.
404asset_not_foundThe file the request names is not one the signed-in person can reach where the request names it, or is no longer available.
409session_changedThe session changed while the request was in flight.
409request_conflictThe request id was already used with another request, or the change it asks could not be made to the record it names.
409request_erasedThe request id belongs to a request whose record was erased.
409asset_already_submittedThe uploaded file already went with another request; an upload goes with one request only.
413payload_too_largeThe request body has more bytes than the route takes.
rate_limitedMore requests of this kind were sent than Werk takes within the time it counts them over.
500server_errorThe server could not complete the request, and it is not known whether a write it holds was made.
curl
curl -X POST "https://api.getwerk.ai/api/v1/account/feedback" \
  -H "Authorization: Bearer wk_key_..." \
  -H "Content-Type: application/json" \
  -d '{
    "clientRequestId": "f1e2d3c4-b5a6-4978-8a9b-0c1d2e3f4a90",
    "reportedAt": "2026-11-21T09:05:00-05:00",
    "appVersion": "harbor-sync 1.4.0",
    "text": "The countertop card shows the old due date after I changed it.",
    "source": "assistant",
    "projectId": "2f6c9e41-7a3b-4d58-9c1e-0b8d4f2a6e73"
  }'
TypeScript
const res = await fetch("https://api.getwerk.ai/api/v1/account/feedback", {
  method: "POST",
  headers: {
    Authorization: "Bearer wk_key_...",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "clientRequestId": "f1e2d3c4-b5a6-4978-8a9b-0c1d2e3f4a90",
    "reportedAt": "2026-11-21T09:05:00-05:00",
    "appVersion": "harbor-sync 1.4.0",
    "text": "The countertop card shows the old due date after I changed it.",
    "source": "assistant",
    "projectId": "2f6c9e41-7a3b-4d58-9c1e-0b8d4f2a6e73"
  }),
});
const answer = await res.json();
202JSON
{
  "feedbackId": "b0e4a8c2-7f1d-4b39-85e7-0f6a8d2b4e86",
  "status": "accepted",
  "reportedAt": "2026-11-21T14:05:00.000Z"
}