POST/v1/feedback

Submit request feedback

Send free-form feedback, a complete edited output in correction, or both. Use the same API key that made the original model request. Feedback preserves whitespace and Unicode and leaves the original response unchanged. It is stored for judge supervision and does not run a model. Feedback and corrections can be used with the original capture to automatically build evals and fine-tuning datasets.

A complete retained observability capture is required. Capture opt-out, zero data retention and expired content cannot be bypassed. Feedback is deleted when its source capture is deleted. A newly completed request may return feedback_capture_unavailable (409) until capture finishes.

Each call appends an observation. To retry safely, reuse the same Idempotency-Key, target request and payload. The original receipt returns with 200; conflicting reuse returns 409. The JSON body is limited to 2 MiB. Null fields are treated as omitted; at least one non-null field is required. Validated submissions, including retries, are limited to 30 per minute and 16 MiB per UTC day per API key, and 64 MiB per UTC day per organization. UTF-8 feedback and correction bytes count toward the daily allowance, with a minimum of 1 KiB per submission. Quota refusals return feedback_rate_limited (429) with Retry-After. A busy worker returns feedback_busy (429) without that header; retry with backoff.

Authentication: Bearer API key in the Authorization header

Headers

  • request-idstringrequired

    The original model response's x-request-id. Only requests made with this API key can receive feedback.

  • Idempotency-Keystring

    Optional retry identity, unique per API key. Use 1 to 128 visible ASCII characters without spaces.

Request body

  • feedbackstring | null

    Nonblank unstructured feedback, up to 64 KiB in UTF-8. NUL characters are not accepted.

  • correctionstring | null

    Complete replacement output, up to 1 MiB in UTF-8. An empty string means the output should be empty. NUL characters are not accepted.

Responses

  • 200

    The original receipt for an identical retry.

    Response
    • idstringrequired
    • objectstringrequired
    • request_idstringrequired
    • created_atstringrequired
  • 201

    Feedback committed to observability storage.

    Response
    • idstringrequired
    • objectstringrequired
    • request_idstringrequired
    • created_atstringrequired
  • 400

    Invalid request. param names the field; code says why (invalid_parameter, unsupported_parameter, unsupported_capability, refusal, previous_response_not_found). Not charged.

    Response
    • errorobject
      error
      • messagestring

        What went wrong and how to fix it.

      • typestring

        For example invalid_request_error, authentication_error, permission_error, rate_limit_error, insufficient_quota, api_error.

      • codestring

        The stable error code.

      • paramstring | null

        The request field at fault, when there is one.

      • refusal_reasonenum

        Present only on code: refusal.

        "cyber_policy""cbrn""content_policy""recitation""data_inspection""unspecified"
  • 401

    The key is missing, malformed, expired or revoked.

    Response
    • errorobject
      error
      • messagestring

        What went wrong and how to fix it.

      • typestring

        For example invalid_request_error, authentication_error, permission_error, rate_limit_error, insufficient_quota, api_error.

      • codestring

        The stable error code.

      • paramstring | null

        The request field at fault, when there is one.

      • refusal_reasonenum

        Present only on code: refusal.

        "cyber_policy""cbrn""content_policy""recitation""data_inspection""unspecified"
  • 404

    No such resource for this key.

    Response
    • errorobject
      error
      • messagestring

        What went wrong and how to fix it.

      • typestring

        For example invalid_request_error, authentication_error, permission_error, rate_limit_error, insufficient_quota, api_error.

      • codestring

        The stable error code.

      • paramstring | null

        The request field at fault, when there is one.

      • refusal_reasonenum

        Present only on code: refusal.

        "cyber_policy""cbrn""content_policy""recitation""data_inspection""unspecified"
  • 408

    Feedback upload timed out. Retry with the same idempotency key.

  • 409

    Capture unavailable (feedback_capture_unavailable) or conflicting idempotency key (idempotency_conflict).

  • 413

    The JSON body exceeds 2 MiB.

  • 415

    Content-Type must be application/json.

  • 429

    Feedback quota or worker capacity exceeded. Honor Retry-After when present; otherwise retry with backoff.

    Response
    • errorobject
      error
      • messagestring

        What went wrong and how to fix it.

      • typestring

        For example invalid_request_error, authentication_error, permission_error, rate_limit_error, insufficient_quota, api_error.

      • codestring

        The stable error code.

      • paramstring | null

        The request field at fault, when there is one.

      • refusal_reasonenum

        Present only on code: refusal.

        "cyber_policy""cbrn""content_policy""recitation""data_inspection""unspecified"
  • 503

    gateway_unavailable, gateway_draining, unavailable_route or deadline_exceeded. Retry with backoff, honoring Retry-After when present.

    Response
    • errorobject
      error
      • messagestring

        What went wrong and how to fix it.

      • typestring

        For example invalid_request_error, authentication_error, permission_error, rate_limit_error, insufficient_quota, api_error.

      • codestring

        The stable error code.

      • paramstring | null

        The request field at fault, when there is one.

      • refusal_reasonenum

        Present only on code: refusal.

        "cyber_policy""cbrn""content_policy""recitation""data_inspection""unspecified"

Request

curl https://api.experientiallabs.ai/v1/feedback \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -H "request-id: req-original" \
  -H "Idempotency-Key: feedback-edit-1" \
  -d '{"feedback":"The answer used the wrong date.","correction":"The event is on November 24."}'

Response

{
  "id": "00000000-0000-0000-0000-000000000000",
  "object": "feedback",
  "request_id": "string",
  "created_at": "2026-11-19T00:00:00Z"
}

https://api.experientiallabs.ai/v1/feedback