---
title: "Download an resource"
method: GET
path: "/v1/resources/{resource-id}/download"
tags: ["Resources"]
---

# Download an resource

`GET /v1/resources/{resource-id}/download`

## Request

- Base URL: `https://api.magnific.com`
- URL: `https://api.magnific.com/v1/resources/{resource-id}/download`
- Auth: API key in header `x-magnific-api-key`

Download a specific resource by providing the resource ID. This endpoint supports downloading various types of resources including vectors, PSDs, photos, and AI-generated content.

## Path parameters

- `resource-id` integer, required

## Query parameters

- `image_size` union
  - 'small' | 'medium' | 'large' | 'original'
  - string

## Headers

- `Accept-Language` string

## Response `200`

OK Response

- DownloadResourceById200Response
  - `data` union, required
    - Download
      - `filename` string, required: Filename of the resource
      - `url` string, uri, required
      - `signed_url` string, uri, nullable: The signed URL of the resource preview
    - AiDownload
      - `filename` string, required: Filename of the resource
      - `url` string, uri, required
      - `signed_url` string, uri, nullable: The signed URL of the resource preview
      - `prompt` string, required: The used prompt to create this resource

## Other responses

- `400`: Bad Request - The server could not understand the request due to invalid syntax.
- `401`: Unauthorized - The client must authenticate itself to get the requested response.
- `403`: Forbidden - The client does not have permission to access the requested resource.
- `404`: Not Found - The server can not find the requested resource.
- `429`: Too Many Requests - The client has sent too many requests in a given amount of time.
- `500`: Internal Server Error - The server has encountered a situation it doesn't know how to handle.
- `503`: Service Unavailable

---

[API](https://skmtc.dev/magnific/apis/magnific-api.md) · [All operations](https://skmtc.dev/magnific/apis/magnific-api/llms.txt) · [OpenAPI document](https://skmtc.dev/magnific/apis/magnific-api/revisions/60711fb082c7?raw)
