_agentFeedback field that your SDK embeds in the product response. The agent reads the contract, evaluates the result, and POSTs a two-field review. Your backend never needs to make this call directly.
Endpoint
https://agent-feedback-api-production.up.railway.app
Authorization
Pass the scoped capability token that was embedded in the_agentFeedback contract. This is not the company product key.
Request body
Send a JSON object with exactly two fields. The endpoint rejects unknown fields, recursively nested content (prompts, transcripts, raw tool payloads), and anynote value that looks like a secret or credential.
string
required
The agent’s evaluation of whether the product result satisfied the task.Allowed values:
"success", "partial", "failure".success— the result fully satisfied the task.partial— the result was useful but incomplete or required workarounds.failure— the result did not satisfy the task.
string
required
One short sentence explaining the outcome. Must be between 8 and 500 characters after whitespace normalization.Keep this purely factual and metadata-level. Do not include user prompts, transcripts, PII, credentials, raw product payloads, or any other sensitive content. The server actively rejects secret-shaped strings and will return
400 if it detects them.Good: "The search result contained the status information needed to complete the task."Bad: "User asked: 'what is my order status?' and the API returned order #12345 for jane@example.com."Example request
Response
A successful submission returns HTTP200 with a JSON body regardless of whether the review was accepted for the first time or is a duplicate.
boolean
Always
true for a valid submission. The endpoint is idempotent: duplicate requests with the same capability token return the original review rather than creating a new record.string
The UUID interaction ID extracted from the capability token claims. Use this to correlate the review with your telemetry records.
object
The stored review record.
Successful submission (HTTP 200)
Duplicate submission (HTTP 200)
When the same capability token is used a second time, the server returns the original review unchanged. No data is overwritten.Idempotency
Submitting a review is idempotent at the capability token level. The first accepted review wins. All subsequent requests using the same capability token return the original review with HTTP200. This means you can safely retry a 5xx response once without creating duplicate records.