# Prepare funding request matching application Autofill supporting-file upload

`service_requests.prepare_matchmaking_application_autofill_file_upload`

Requires HTTP access to the original bytes. Import from host-provided file input is an alternative when direct transfer is unavailable. Prepare a five-minute upload of an Autofill supporting document. Requires current preparation revision, filename, byte count, SHA-256 and UUID idempotency key. The returned HTTP contract accepts multipart field file with transfer_token as Bearer credential; no separate API key. Limit: 25 MiB. Preparation attaches nothing and does not start Autofill or change answers. The upload receipt and current preparation establish completion. Identical bytes can retry a valid credential; new uploads need a new key and current revision. Uncertain outcomes require preparation verification before another transfer.

[Service requests guide](https://docs.levr.ai/mcp/resources/service_requests.md)

Availability depends on live discovery and your access to the record. Do not infer MCP calls from REST paths.

Operation: write. Required OAuth scopes: mcp.

## Client portal input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "content_sha256": {
      "description": "SHA-256 of the exact file bytes to upload.",
      "pattern": "^[0-9a-f]{64}$",
      "type": "string"
    },
    "expected_preparation_revision": {
      "description": "Read Autofill preparation first and copy its revision.",
      "minimum": 1,
      "type": "integer"
    },
    "filename": {
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "idempotency_key": {
      "format": "uuid",
      "type": "string"
    },
    "organization_slug": {
      "maxLength": 100,
      "minLength": 1,
      "type": "string"
    },
    "provider_slug": {
      "maxLength": 100,
      "minLength": 1,
      "type": "string"
    },
    "service_request_slug": {
      "description": "Stable public identifier for the referenced resource.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "size_bytes": {
      "maximum": 26214400,
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [
    "service_request_slug",
    "expected_preparation_revision",
    "idempotency_key",
    "filename",
    "content_sha256",
    "size_bytes",
    "organization_slug",
    "provider_slug"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "oneOf": [
    {
      "not": {
        "required": [
          "error"
        ]
      },
      "properties": {
        "ok": {
          "const": true
        }
      },
      "required": [
        "data"
      ]
    },
    {
      "not": {
        "required": [
          "data"
        ]
      },
      "properties": {
        "ok": {
          "const": false
        }
      },
      "required": [
        "error"
      ]
    }
  ],
  "properties": {
    "data": {
      "additionalProperties": false,
      "properties": {
        "expires_in_seconds": {
          "type": "integer"
        },
        "instructions": {
          "type": "string"
        },
        "method": {
          "const": "POST",
          "type": "string"
        },
        "transfer_token": {
          "type": "string"
        },
        "url": {
          "format": "uri",
          "type": "string"
        }
      },
      "required": [
        "url",
        "method",
        "transfer_token",
        "expires_in_seconds",
        "instructions"
      ],
      "type": "object"
    },
    "error": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "details": {
          "additionalProperties": true,
          "description": "Optional bounded, agent-safe correction or recovery facts.",
          "type": "object"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    },
    "meta": {
      "additionalProperties": false,
      "properties": {
        "request_id": {
          "type": "string"
        }
      },
      "required": [
        "request_id"
      ],
      "type": "object"
    },
    "ok": {
      "description": "Whether the tool completed successfully.",
      "type": "boolean"
    }
  },
  "required": [
    "ok",
    "meta"
  ],
  "type": "object"
}
```

Check the result, then read the affected record to confirm your change.
