{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/payments-ai/json-schema/payments-ai-public-api-product-image-upload-url-response-schema.json",
  "title": "PublicApiProductImageUploadUrlResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/payments-ai-products-api-openapi.yml#/components/schemas/PublicApiProductImageUploadUrlResponse",
  "type": "object",
  "required": [
    "url",
    "fields",
    "key",
    "expiresIn"
  ],
  "properties": {
    "url": {
      "type": "string",
      "description": "S3 POST endpoint for the multipart/form-data upload."
    },
    "fields": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Form fields to include in the multipart body; the `file` field goes last."
    },
    "key": {
      "type": "string",
      "description": "Storage key to echo back to the confirm step. Bound to the merchant."
    },
    "expiresIn": {
      "type": "integer",
      "format": "int32",
      "description": "Seconds until the upload policy expires."
    }
  }
}