> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mireye.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# POST /v1/reports

> Report wrong data or an error on Mireye's side, with the request ID of the call.

Tell us when a value is wrong, data is missing, or a call failed on our side.
People at Mireye read every report.

Over MCP, the same thing is the `mireye_report_problem` tool, with the same
inputs and the same result.

## What to report

| `category` | Use it when |
| - | - |
| `wrong_data` | A value is incorrect. For example, the owner differs from the county record. |
| `unexpected_error` | A call failed in a way it should not have. |
| `missing_coverage` | Data is absent where it should exist. |
| `other` | Anything else about the data or the API. |

Report an error when its `next_action` is `contact_support`. Don't report errors whose
`next_action` says to retry, fix the request or ask the user: a `429` means wait and
retry, and a `402` means the account owner has to act. See
[Retries](https://docs.mireye.ai/api-reference/retries.md).

## Request

```json theme={null}
{
  "request_id": "req_0123456789ab",
  "category": "wrong_data",
  "fields": ["owner_name"],
  "expected": "Owner should be ACME LLC per the county assessor site."
}
```

| Field | Required | Notes |
| - | - | - |
| `category` | Yes | One of the four above. |
| `request_id` | No, but send it | The `X-Request-ID` of the call you are reporting. It lets us find that exact call. Over MCP, an error that asks you to report it carries its own `request_id`. |
| `operation_id` | No | The `operation_id` of a paid call, as its result or error returned it. Use it when the call returned no request ID, as hosted MCP results don't. |
| `fields` | No | Up to 50 field names the report is about. |
| `expected` | No | Up to 2 KB of plain text: what you expected, and where the right value comes from. |

* Authenticate as for any other call: your API key, or sign in.
* Other keys are refused with `422 report_invalid`. Don't send contact details:
  we know which account filed the report.
* Text in `expected` is read by people. Write it as plain text.

## Response

`201 Created`:

```json theme={null}
{"report_id": "rpt_5f0c2d9e8a7b4c1d9e0f1a2b3c4d5e6f", "duplicate": false}
```

* Keep `report_id` if you want to follow up.
* Reporting the same `request_id` or `operation_id` again returns the first
  `report_id` with `"duplicate": true` and status `200`. Nothing new is stored.
* A report that names neither is stored every time it is sent.
* The response does not say whether the `request_id` was found. Report the ID you
  were given; we match it to your own calls.

## Limits

* A report does not use your request rate limit, so you can report even while
  you are being rate limited.
* A daily limit applies per account. Over it, you get `429 report_limit_reached`.
  `Retry-After` is the number of seconds until midnight UTC.

## Errors

| Code | HTTP | What to do |
| - | - | - |
| `report_invalid` | 422 | Fix the request. `errors` says which field was wrong. Not retryable. |
| `report_limit_reached` | 429 | Wait for `Retry-After` (midnight UTC), then send it again. |
| `report_unavailable` | 503 | The report was not saved. Back off and send it again. |


## OpenAPI

````yaml POST /v1/reports
openapi: 3.1.0
info:
  description: >-
    Provenance-tagged geospatial data for US coordinates. POST /v1/fetch for
    deterministic field values (POST /v1/fetch/batch for up to 25 locations at
    once); POST /v1/search and POST /v1/enrich for parcels; GET /v1/meta/fields
    for the catalog.
  title: Mireye Earth
  version: 0.20.0
servers:
  - description: Production
    url: https://api.mireye.com
security: []
paths:
  /v1/reports:
    post:
      tags:
        - reports
      summary: Report a problem
      description: >-
        Report wrong data or an error on Mireye's side, with the request_id of
        the

        call. 201 with a new report_id; 200 with the existing one when this
        account

        already reported that request_id. A daily limit applies. People at
        Mireye

        read every report.
      operationId: create_problem_report_v1_reports_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProblemReportRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemReportResponse'
          description: This account already reported the same request_id.
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemReportResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: report_invalid
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: report_limit_reached
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: report_unavailable
components:
  schemas:
    ProblemReportRequest:
      additionalProperties: false
      description: One report. Only ``category`` is required.
      properties:
        category:
          description: >-
            What went wrong: wrong_data (a value is incorrect), unexpected_error
            (an error that should not have happened), missing_coverage (data is
            absent where it should exist), or other.
          enum:
            - wrong_data
            - unexpected_error
            - missing_coverage
            - other
          title: Category
          type: string
        expected:
          anyOf:
            - maxLength: 2048
              minLength: 1
              type: string
            - type: 'null'
          description: >-
            Optional. Up to 2 KB of plain text: what you expected instead, and
            where the correct value comes from. People at Mireye read it.
          title: Expected
        fields:
          anyOf:
            - items:
                maxLength: 128
                minLength: 1
                type: string
              maxItems: 50
              type: array
            - type: 'null'
          description: Optional. Up to 50 names of the fields the report is about.
          title: Fields
        operation_id:
          anyOf:
            - maxLength: 67
              minLength: 67
              pattern: ^op_[0-9a-f]{64}$
              type: string
            - type: 'null'
          description: >-
            The operation_id of the call you are reporting, as its result or
            error returned it. Optional; use it when the call returned no
            request ID.
          title: Operation Id
        request_id:
          anyOf:
            - maxLength: 128
              minLength: 1
              type: string
            - type: 'null'
          description: >-
            The request ID of the call you are reporting: its X-Request-ID
            response header, or the request_id an error names. Optional; send it
            when you have one, since it lets us find the exact call.
          title: Request Id
      required:
        - category
      title: ProblemReportRequest
      type: object
    ProblemReportResponse:
      properties:
        duplicate:
          description: >-
            True when this account already reported the same request_id or
            operation_id: the existing report_id is returned and nothing new is
            stored.
          title: Duplicate
          type: boolean
        report_id:
          description: The report's id. Quote it if you follow up.
          title: Report Id
          type: string
      required:
        - report_id
        - duplicate
      title: ProblemReportResponse
      type: object
    ErrorResponse:
      properties:
        detail:
          $ref: '#/components/schemas/ErrorDetail'
      required:
        - detail
      title: ErrorResponse
      type: object
    ErrorDetail:
      additionalProperties: true
      properties:
        action_url:
          anyOf:
            - type: string
            - type: 'null'
          description: The page where that person can act on this error.
          title: Action Url
        agent_instruction:
          anyOf:
            - type: string
            - type: 'null'
          description: What an agent should do, in plain words.
          title: Agent Instruction
        error:
          description: Stable machine-readable code; branch on this.
          title: Error
          type: string
        message:
          description: Human-readable explanation; wording may change.
          title: Message
          type: string
        next_action:
          anyOf:
            - enum:
                - retry_after
                - retry_with_backoff
                - fix_request
                - ask_user
                - stop
                - contact_support
              type: string
            - type: 'null'
          description: >-
            What to do next: retry_after, retry_with_backoff, fix_request,
            ask_user, stop or contact_support.
          title: Next Action
        retry_after_s:
          anyOf:
            - type: integer
            - type: 'null'
          description: Seconds to wait before retrying; equals Retry-After.
          title: Retry After S
        retryable:
          anyOf:
            - type: boolean
            - type: 'null'
          description: Whether retrying can succeed.
          title: Retryable
        user_message:
          anyOf:
            - type: string
            - type: 'null'
          description: A short sentence to show the person the agent works for.
          title: User Message
      required:
        - error
        - message
      title: ErrorDetail
      type: object

````