Artful Dispatch: custom postcards shipped globally

Artful Dispatch: custom postcards shipped globally · Actions GPT

Artful Dispatch Image Upload

Uploads an image along with an inscription text to a the Artful Dispatch printers. The API will return a link to the image that can be used to finalize the purchase

  • POST /uploadUploadImage

    Upload card data to Artful Dispatch API with an associated inscription text. Recieve a link to finalize your purchase.

Schéma original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "Artful Dispatch Image Upload",
    "description": "Uploads an image along with an inscription text to a the Artful Dispatch printers. The API will return a link to the image that can be used to finalize the purchase",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://v3hto6ua55.execute-api.us-west-2.amazonaws.com/payments_live_prod"
    }
  ],
  "paths": {
    "/upload": {
      "post": {
        "description": "Upload card data to Artful Dispatch API with an associated inscription text. Recieve a link to finalize your purchase.",
        "operationId": "UploadImage",
        "x-openai-isConsequential": false,
        "requestBody": {
          "description": "JSON payload containing the inscription text and the image URL",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "inscription_text": {
                    "type": "string",
                    "description": "Text inscription associated with the image"
                  },
                  "image_url": {
                    "type": "string",
                    "description": "URL of the image to be uploaded. Note: you MUST request that the user right-click the image and select 'Copy Image Address' in order to get the correct URL. The GPTAgent does not have direct access to this URL so the user must copy and paste it to confirm that this is the image they wish to use.",
                    "pattern": "^https://files.oaiusercontent.com"
                  }
                },
                "required": [
                  "inscription_text",
                  "image_url"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Image uploaded successfully"
          },
          "400": {
            "description": "Invalid URL or missing fields"
          },
          "500": {
            "description": "Server error during image download or upload"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {}
  }
}