Spree Commerce Digital Assets API

The Digital Assets API from Spree Commerce — 2 operation(s) for digital assets.

Operations 5

GET /api/v2/platform/digitals Return a list of Digital Assets #
POST /api/v2/platform/digitals Create a Digital Asset #
GET /api/v2/platform/digitals/{id} Return a Digital Asset #
PATCH /api/v2/platform/digitals/{id} Update a Digital Asset #
DELETE /api/v2/platform/digitals/{id} Delete a Digital Asset #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/spree-commerce-digital-assets-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

spree-commerce-digital-assets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Platform Digital Assets API
  contact:
    name: Vendo Connect Inc.
    url: https://getvendo.com
    email: sales@getvendo.com
  description: Spree Platform API
  version: v2
servers:
- url: http://{defaultHost}
  variables:
    defaultHost:
      default: localhost:3000
tags:
- name: Digital Assets
paths:
  /api/v2/platform/digitals:
    get:
      summary: Return a list of Digital Assets
      tags:
      - Digital Assets
      security:
      - bearer_auth: []
      description: Returns a list of Digital Assets
      operationId: digitals-list
      parameters:
      - name: page
        in: query
        example: 1
        schema:
          type: integer
      - name: per_page
        in: query
        example: 50
        schema:
          type: integer
      - name: include
        in: query
        description: 'Select which associated resources you would like to fetch, see: <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
        example: variant
        schema:
          type: string
      responses:
        '200':
          description: Records returned
          content:
            application/vnd.api+json:
              examples:
                Example:
                  value:
                    data:
                    - id: '15'
                      type: digital
                      attributes:
                        url: /rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--fd5f8cec8849d4ccb3d1b3142c05292c54a61183/thinking-cat.jpg
                        content_type: image/jpeg
                        filename: thinking-cat.jpg
                        byte_size: 18090
                      relationships:
                        variant:
                          data:
                            id: '80'
                            type: variant
                    - id: '16'
                      type: digital
                      attributes:
                        url: /rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--a5cdd34bda2b6ab554834bbebc5eabfe55065258/thinking-cat.jpg
                        content_type: image/jpeg
                        filename: thinking-cat.jpg
                        byte_size: 18090
                      relationships:
                        variant:
                          data:
                            id: '82'
                            type: variant
                    - id: '17'
                      type: digital
                      attributes:
                        url: /rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--86cfdf96a18ded007d9ec0ae05dd122cee26fef5/thinking-cat.jpg
                        content_type: image/jpeg
                        filename: thinking-cat.jpg
                        byte_size: 18090
                      relationships:
                        variant:
                          data:
                            id: '84'
                            type: variant
                    meta:
                      count: 3
                      total_count: 3
                      total_pages: 1
                    links:
                      self: http://www.example.com/api/v2/platform/digitals?page=1&per_page=&include=
                      next: http://www.example.com/api/v2/platform/digitals?include=&page=1&per_page=
                      prev: http://www.example.com/api/v2/platform/digitals?include=&page=1&per_page=
                      last: http://www.example.com/api/v2/platform/digitals?include=&page=1&per_page=
                      first: http://www.example.com/api/v2/platform/digitals?include=&page=1&per_page=
              schema:
                $ref: '#/components/schemas/resources_list'
        '401':
          description: Authentication Failed
          content:
            application/vnd.api+json:
              examples:
                Example:
                  value:
                    error: The access token is invalid
              schema:
                $ref: '#/components/schemas/error'
    post:
      summary: Create a Digital Asset
      tags:
      - Digital Assets
      security:
      - bearer_auth: []
      description: Creates a Digital Asset
      operationId: create-digital
      parameters:
      - name: include
        in: query
        description: 'Select which associated resources you would like to fetch, see: <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
        example: variant
        schema:
          type: string
      responses:
        '201':
          description: Record created
          content:
            application/vnd.api+json:
              examples:
                Example:
                  value:
                    data:
                      id: '24'
                      type: digital
                      attributes:
                        url: /rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBLUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--6cac9cd14eb0139474e42d68585bead023589c85/icon_256x256.jpg
                        content_type: image/png
                        filename: icon_256x256.jpg
                        byte_size: 818
                      relationships:
                        variant:
                          data:
                            id: '94'
                            type: variant
              schema:
                $ref: '#/components/schemas/resource'
        '422':
          description: Invalid request
          content:
            application/vnd.api+json:
              examples:
                Example:
                  value:
                    error: Attachment can't be blank and Variant can't be blank
                    errors:
                      attachment:
                      - can't be blank
                      variant:
                      - can't be blank
              schema:
                $ref: '#/components/schemas/validation_errors'
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/create_digital_params'
  /api/v2/platform/digitals/{id}:
    get:
      summary: Return a Digital Asset
      tags:
      - Digital Assets
      security:
      - bearer_auth: []
      description: Returns a Digital Asset
      operationId: show-digital
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: include
        in: query
        description: 'Select which associated resources you would like to fetch, see: <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
        example: variant
        schema:
          type: string
      responses:
        '200':
          description: Record found
          content:
            application/vnd.api+json:
              examples:
                Example:
                  value:
                    data:
                      id: '28'
                      type: digital
                      attributes:
                        url: /rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBMUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--0b80fde2e739c30ef5390b1ca35d677810a2d02c/thinking-cat.jpg
                        content_type: image/jpeg
                        filename: thinking-cat.jpg
                        byte_size: 18090
                      relationships:
                        variant:
                          data:
                            id: '112'
                            type: variant
              schema:
                $ref: '#/components/schemas/resource'
        '404':
          description: Record not found
          content:
            application/vnd.api+json:
              examples:
                Example:
                  value:
                    error: The resource you were looking for could not be found.
              schema:
                $ref: '#/components/schemas/error'
        '401':
          description: Authentication Failed
          content:
            application/vnd.api+json:
              examples:
                Example:
                  value:
                    error: The access token is invalid
              schema:
                $ref: '#/components/schemas/error'
    patch:
      summary: Update a Digital Asset
      tags:
      - Digital Assets
      security:
      - bearer_auth: []
      description: Updates a Digital Asset
      operationId: update-digital
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: include
        in: query
        description: 'Select which associated resources you would like to fetch, see: <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
        example: variant
        schema:
          type: string
      responses:
        '200':
          description: Record updated
          content:
            application/vnd.api+json:
              examples:
                Example:
                  value:
                    data:
                      id: '36'
                      type: digital
                      attributes:
                        url: /rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBPQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--f87d494de28c18444adcd95623dbd33fd728c466/icon_256x256.jpg
                        content_type: image/png
                        filename: icon_256x256.jpg
                        byte_size: 818
                      relationships:
                        variant:
                          data:
                            id: '134'
                            type: variant
              schema:
                $ref: '#/components/schemas/resource'
        '422':
          description: Invalid request
          content:
            application/vnd.api+json:
              examples:
                Example:
                  value:
                    error: Variant can't be blank
                    errors:
                      variant:
                      - can't be blank
              schema:
                $ref: '#/components/schemas/validation_errors'
        '404':
          description: Record not found
          content:
            application/vnd.api+json:
              examples:
                Example:
                  value:
                    error: The resource you were looking for could not be found.
              schema:
                $ref: '#/components/schemas/error'
        '401':
          description: Authentication Failed
          content:
            application/vnd.api+json:
              examples:
                Example:
                  value:
                    error: The access token is invalid
              schema:
                $ref: '#/components/schemas/error'
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/update_digital_params'
    delete:
      summary: Delete a Digital Asset
      tags:
      - Digital Assets
      security:
      - bearer_auth: []
      description: Deletes a Digital Asset
      operationId: delete-digital
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '204':
          description: Record deleted
        '404':
          description: Record not found
          content:
            application/vnd.api+json:
              examples:
                Example:
                  value:
                    error: The resource you were looking for could not be found.
              schema:
                $ref: '#/components/schemas/error'
        '401':
          description: Authentication Failed
          content:
            application/vnd.api+json:
              examples:
                Example:
                  value:
                    error: The access token is invalid
              schema:
                $ref: '#/components/schemas/error'
components:
  schemas:
    resource_properties:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
        attributes:
          type: object
        relationships:
          type: object
      required:
      - id
      - type
      - attributes
      x-internal: false
    create_digital_params:
      type: object
      properties:
        digital[attachment]:
          type: string
          format: binary
        digital[variant_id]:
          type: string
          example: '123'
      required:
      - digital[attachment]
      - digital[variant_id]
      x-internal: false
    resources_list:
      type: object
      properties:
        data:
          type: array
          items:
            allOf:
            - $ref: '#/components/schemas/resource_properties'
        meta:
          type: object
          properties:
            count:
              type: integer
            total_count:
              type: integer
            total_pages:
              type: integer
          required:
          - count
          - total_count
          - total_pages
        links:
          type: object
          properties:
            self:
              type: string
            next:
              type: string
            prev:
              type: string
            last:
              type: string
            first:
              type: string
          required:
          - self
          - next
          - prev
          - last
          - first
      required:
      - data
      - meta
      - links
      x-internal: false
    validation_errors:
      type: object
      properties:
        error:
          type: string
        errors:
          type: object
      required:
      - error
      - errors
      x-internal: false
    resource:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/resource_properties'
      required:
      - data
      x-internal: false
    error:
      type: object
      properties:
        error:
          type: string
      required:
      - error
      x-internal: false
    update_digital_params:
      type: object
      properties:
        digital[attachment]:
          type: string
          format: binary
        digital[variant_id]:
          type: string
          example: '123'
      required:
      - digital[attachment]
      - digital[variant_id]
      x-internal: false
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer