{
  "openapi": "3.0.1",
  "info": {
    "title": "Design File Converter: Figma, PSD, DWG, IDML, RAW to PDF, PNG",
    "description": "Convert files that are hard to open without paid desktop software: InDesign IDML/INDD, AutoCAD DWG/DXF, Lottie animations, Photoshop PSD/PSB, GIMP XCF, Krita, Figma .fig, Illustrator AI, EPS, SVG and camera RAW photos into PDF, PNG, JPG, WebP, SVG, MP4, GIF or WebM.",
    "version": "0.1",
    "x-build-id": "qOaBaUZJV4cAUNZjl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/shatrix~design-file-converter/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-shatrix-design-file-converter",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/shatrix~design-file-converter/runs": {
      "post": {
        "operationId": "runs-sync-shatrix-design-file-converter",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/shatrix~design-file-converter/run-sync": {
      "post": {
        "operationId": "run-sync-shatrix-design-file-converter",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "files": {
            "title": "File URLs",
            "type": "array",
            "description": "Links to the files to convert (up to 100). Leave this and the upload empty to try a built-in sample drawing for free. Supported: InDesign .idml/.indd, CAD .dwg/.dxf, Lottie .json/.lottie, images .psd/.psb/.xcf/.kra/.ora/.pdn/.tif/.exr, Figma .fig, vector .ai/.eps/.svg/.emf/.wmf/.afdesign, camera RAW .dng/.cr2/.cr3/.arw/.nef/.raf/.rw2/.orf/.pef/.srw.",
            "items": {
              "type": "string"
            }
          },
          "file": {
            "title": "Upload a file",
            "type": "string",
            "description": "Or upload one file (or give its URL) here."
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "auto",
              "pdf",
              "png",
              "jpg",
              "webp",
              "svg",
              "mp4",
              "gif",
              "webm"
            ],
            "type": "string",
            "description": "auto picks: PDF for InDesign and CAD, MP4 for Lottie, JPG for RAW, PNG for everything else. Possible per input: InDesign pdf/png/jpg/webp; CAD pdf/svg/png/jpg/webp; Lottie mp4/gif/webm/png (one frame); layered images png/jpg/webp; Figma png/jpg/webp/svg/pdf (one file per frame); vector pdf/svg/png/jpg/webp; RAW jpg/png/webp.",
            "default": "auto"
          },
          "scale": {
            "title": "Scale",
            "minimum": 0.1,
            "maximum": 8,
            "type": "number",
            "description": "Pixels per point for images made from InDesign pages, vector art and Figma frames (2 = sharp, retina-ready).",
            "default": 2
          },
          "allPages": {
            "title": "All pages",
            "type": "boolean",
            "description": "For InDesign files converted to images: one image per page. Off: the first page only.",
            "default": true
          },
          "quality": {
            "title": "JPG/WebP quality",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "1-100. Empty uses each engine's default."
          },
          "maxSize": {
            "title": "RAW long edge (px)",
            "minimum": 16,
            "maximum": 20000,
            "type": "integer",
            "description": "For camera RAW photos: the long edge of the output in pixels. Empty keeps the full size."
          },
          "frameTime": {
            "title": "Lottie frame time (s)",
            "minimum": 0,
            "type": "number",
            "description": "For Lottie to PNG: which moment to draw, in seconds. Empty draws the middle of the animation."
          },
          "transparent": {
            "title": "Transparent Lottie background",
            "type": "boolean",
            "description": "For Lottie to WebM, GIF or PNG: keep the background transparent. MP4 can't be transparent.",
            "default": false
          },
          "cadBlackAndWhite": {
            "title": "CAD in black and white",
            "type": "boolean",
            "description": "For DWG/DXF: plot every line and text in black on white (monochrome plot style) on an A3 page in the drawing's orientation, instead of the drawing's screen colours.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}