---
title: "Upload a PSD file"
method: POST
path: "/psd/upload"
---

# Upload a PSD file

`POST /psd/upload`

Uploads a PSD file and optionally creates a mockup template.

## Headers

- `Accept` 'application/json', required
- `x-api-key` string, required

## Request body

- object
  - `psd_file_url` string, required — The URL to the PSD file.
  - `psd_name` string — An optional name for the PSD file.
  - `psd_category_id` integer — An optional category ID for the PSD file.
  - `mockup_template` object — Optional settings for creating a mockup template after the PSD upload.
    - `create_after_upload` boolean — Whether to create a mockup template after the PSD upload.
    - `collections` string[] — Optional list of collection UUIDs to associate with the mockup template.
    - `catalog_uuid` string — Optional catalog UUID to add the created mockup to. If not provided, the mockup will be added to the default catalog.

## Response `200`

Successful PSD upload operation.

- object
  - `data` object — Contains the uploaded PSD file details or the created mockup resource.
    - `uuid` string — The UUID of the uploaded PSD file.
    - `name` string — The name of the uploaded PSD file.
  - `success` boolean — Indicates if the PSD upload operation was successful.
  - `message` string — A message about the PSD upload operation.

## Other responses

- `400` — Bad request due to invalid input parameters.
- `401` — Unauthorized request, invalid or missing API key.

---

[API](https://skmtc.dev/dynamicmockups/apis/dynamic-mockups-mockanything-ai-api.md) · [All operations](https://skmtc.dev/dynamicmockups/apis/dynamic-mockups-mockanything-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dynamicmockups/dynamic-mockups-mockanything-ai-api/revisions/5582facc8ca8/schema)
