> ## Documentation Index
> Fetch the complete documentation index at: https://docs.magnific.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get available download formats for resource

> Retrieve a resource by specifying both the resource ID and the format. This endpoint allows for precise downloading of resources in the desired format.



## OpenAPI

````yaml get /v1/resources/{resource-id}/download/{resource-format}
openapi: 3.0.0
info:
  description: >-
    The Magnific API is your gateway to a vast collection of high-quality
    digital resources for your applications and projects. As a leading platform,
    it offers a wide range of graphics, including vectors, photos,
    illustrations, icons, PSD templates, and more, all curated by talented
    designers from around the world.
  title: Magnific API
  version: 1.0.0
servers:
  - description: B2B API Production V1
    url: https://api.magnific.com
security:
  - magnificApiKey: []
paths:
  /v1/resources/{resource-id}/download/{resource-format}:
    get:
      tags:
        - Resources
      summary: Get available download formats for resource
      description: >-
        Retrieve a resource by specifying both the resource ID and the format.
        This endpoint allows for precise downloading of resources in the desired
        format.
      operationId: get_resource_download_formats
      parameters:
        - description: Photo, video or PSD resource ID
          example: 30955
          in: path
          name: resource-id
          required: true
          schema:
            type: integer
        - description: Resource format
          in: path
          name: resource-format
          required: true
          schema:
            enum:
              - psd
              - ai
              - eps
              - atn
              - fonts
              - resources
              - png
              - jpg
              - 3d-render
              - svg
              - mockup
            example: svg
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/download_list'
          description: OK
        '400':
          $ref: '#/components/responses/400-bad-request'
        '401':
          $ref: '#/components/responses/401-unauthorized'
        '403':
          $ref: '#/components/responses/403-forbidden'
        '404':
          $ref: '#/components/responses/404-not-found'
        '429':
          $ref: '#/components/responses/429-too-many-requests'
        '500':
          $ref: '#/components/responses/500-internal-server-error'
components:
  schemas:
    download_list:
      example:
        data:
          - signed_url: >-
              https://img.freepik.com/premium-photo/close-up-cat-resting_1048944-9269194.jpg?t=st=1725276607~exp=1725280207~hmac=1538f1b294fc3a19a19e9f02ceeb6594a9a1e36a900de85d47bbd386e27dddbe
            filename: blackboard-template.zip
            url: >-
              https://downloadscdn5.freepik.com/d/1137445/blackboard-template.zip
          - signed_url: >-
              https://img.freepik.com/premium-photo/close-up-cat-resting_1048944-9269194.jpg?t=st=1725276607~exp=1725280207~hmac=1538f1b294fc3a19a19e9f02ceeb6594a9a1e36a900de85d47bbd386e27dddbe
            filename: blackboard-template.zip
            url: >-
              https://downloadscdn5.freepik.com/d/1137445/blackboard-template.zip
      properties:
        data:
          items:
            $ref: '#/components/schemas/download'
          type: array
      required:
        - data
      type: object
    download:
      example:
        signed_url: >-
          https://img.freepik.com/premium-photo/close-up-cat-resting_1048944-9269194.jpg?t=st=1725276607~exp=1725280207~hmac=1538f1b294fc3a19a19e9f02ceeb6594a9a1e36a900de85d47bbd386e27dddbe
        filename: blackboard-template.zip
        url: https://downloadscdn5.freepik.com/d/1137445/blackboard-template.zip
      properties:
        filename:
          description: Filename of the resource
          example: blackboard-template.zip
          minLength: 1
          type: string
        url:
          example: https://downloadscdn5.freepik.com/d/1137445/blackboard-template.zip
          format: uri
          minLength: 1
          type: string
        signed_url:
          description: The signed URL of the resource preview
          example: >-
            https://img.freepik.com/premium-photo/close-up-cat-resting_1048944-9269194.jpg?t=st=1725276607~exp=1725280207~hmac=1538f1b294fc3a19a19e9f02ceeb6594a9a1e36a900de85d47bbd386e27dddbe
          format: uri
          nullable: true
          type: string
      required:
        - filename
        - url
      type: object
    inline_object:
      example:
        message: message
      properties:
        message:
          type: string
      type: object
    inline_object_1:
      properties:
        problem:
          $ref: '#/components/schemas/inline_object_1_problem'
      type: object
    inline_object_2:
      example:
        message: Internal Server Error
      properties:
        message:
          example: Internal Server Error
          type: string
      type: object
    inline_object_1_problem:
      properties:
        message:
          example: Validation error
          type: string
        invalid_params:
          items:
            $ref: '#/components/schemas/inline_object_1_problem_invalid_params_inner'
          type: array
      required:
        - invalid_params
        - message
      type: object
    inline_object_1_problem_invalid_params_inner:
      properties:
        name:
          description: Name of the invalid parameter.
          example: page
          type: string
        field:
          description: Field of the invalid parameter. Mirrors `name`.
          example: page
          type: string
        reason:
          example: Parameter 'page' must be greater than 0
          type: string
      required:
        - field
        - name
        - reason
      type: object
  responses:
    400-bad-request:
      content:
        application/json:
          examples:
            invalid_page:
              summary: Parameter 'page' is not valid
              value:
                message: Parameter 'page' must be greater than 0
            invalid_query:
              summary: Parameter 'query' is not valid
              value:
                message: Parameter 'query' must not be empty
            invalid_filter:
              summary: Parameter 'filter' is not valid
              value:
                message: Parameter 'filter' is not valid
            generic_bad_request:
              summary: Bad Request
              value:
                message: Parameter ':attribute' is not valid
          schema:
            $ref: '#/components/schemas/inline_object'
        application/problem+json:
          examples:
            invalid_page:
              summary: Parameter 'page' is not valid
              value:
                message: Validation error
                invalid_params:
                  - field: page
                    reason: Parameter 'page' must be greater than 0
                  - field: per_page
                    reason: Parameter 'per_page' must be greater than 0
          schema:
            $ref: '#/components/schemas/inline_object_1'
      description: >-
        Bad Request - The server could not understand the request due to invalid
        syntax.
    401-unauthorized:
      content:
        application/json:
          examples:
            invalid_api_key:
              summary: API key is not valid
              value:
                message: Invalid API key
            missing_api_key:
              summary: API key is not provided
              value:
                message: Missing API key
          schema:
            $ref: '#/components/schemas/inline_object'
      description: >-
        Unauthorized - The client must authenticate itself to get the requested
        response.
    403-forbidden:
      content:
        application/json:
          examples:
            user_not_authorized:
              summary: User has not privileges to access some resource
              value:
                message: User is not authorized to access this resource
            user_not_owner:
              summary: Collection author id is different from current user's id
              value:
                message: User is not owner of requested collection
            item_is_premium:
              summary: The user cannot download this item because it is premium
              value:
                message: The user cannot download this item because it is premium
            creator_not_authorized:
              summary: Creator has not privileges to access some resource
              value:
                message: Creator is not authorized to access this resource
            transaction_stats_access_denied:
              summary: >-
                Group admin is not allowed to access the requested transaction
                stats
              value:
                message: Access denied to transaction stats for the current role
            credit_filter_not_allowed:
              summary: >-
                Group admin tried to use a credit-usage filter dimension not
                allowed for their role
              value:
                message: Credit filter not allowed for the current role
          schema:
            $ref: '#/components/schemas/inline_object'
      description: >-
        Forbidden - The client does not have permission to access the requested
        resource.
    404-not-found:
      content:
        application/json:
          examples:
            ai_resource_not_found:
              summary: AI resource with provided id does not exist
              value:
                message: AI resource not found
            collection_not_found:
              summary: Collection with provided id does not exist
              value:
                message: Collection not found
            resource_not_found:
              summary: Resource with provided id does not exist
              value:
                message: Resource not found
            resources_not_found:
              summary: Resources not found
              value:
                message: Resources not found
            user_not_found:
              summary: User with provided id does not exist
              value:
                message: User not found
            video_not_found:
              summary: Video with provided id does not exist
              value:
                message: Video not found
            video_assets_not_found:
              summary: Video with provided id has not associated assets
              value:
                message: Video not found
            icon_not_found:
              summary: Icon with provided id does not exist
              value:
                message: Icon not found
            author_not_found:
              summary: Author with provided id does not exist
              value:
                message: Author not found
            developer_not_found:
              summary: Developer with provided email does not exist
              value:
                message: Developer not found
            country_not_found:
              summary: Country with provided code does not exist
              value:
                message: Country not found
            generic_not_found:
              summary: Not Found
              value:
                message: Not found
          schema:
            $ref: '#/components/schemas/inline_object'
      description: Not Found - The server can not find the requested resource.
    429-too-many-requests:
      content:
        application/json:
          examples:
            generic:
              summary: Generic message for 429 errors
              value:
                message: Too many requests
            download_limit_reached:
              summary: The download limits has been reached.
              value:
                message: >-
                  The user can't download more items because the download limits
                  has been reached.
            edit_limit_reached:
              summary: Free user icon edit limits has been reached.
              value:
                message: Limit for free users reached.
          schema:
            $ref: '#/components/schemas/inline_object'
      description: >-
        Too Many Requests - The client has sent too many requests in a given
        amount of time.
    500-internal-server-error:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/inline_object_2'
      description: >-
        Internal Server Error - The server has encountered a situation it
        doesn't know how to handle.
  securitySchemes:
    magnificApiKey:
      description: >
        Your Magnific API key. Required for authentication. [Learn how to obtain
        an API key](https://docs.magnific.com/quickstart)
      in: header
      name: x-magnific-api-key
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.