Skip to main content
POST
/
digital_products
curl -X POST 'https://app.filemonk.io/api/v1/external/digital_products' \
  -H 'X-Auth-Token: fm_api_key_your_key_here' \
  -H 'Content-Type: application/json' \
  -d '{
    "digital_product": {
      "shopify_product_id": 8847261098265,
      "asset_ids": ["a1b2c3d4-e5f6-7890-abcd-ef1234567890"],
      "custom_message": "Thanks for your purchase!"
    }
  }'
{
  "digital_product": {
    "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
    "shopify_product_id": 8847261098265,
    "shopify_variant_id": null,
    "assets": [
      {
        "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
        "type": "external",
        "name": "Photoshop Brushes Pack",
        "filename": "brushes-pack-v2.zip",
        "external_url": "https://cdn.example.com/files/brushes-pack-v2.zip",
        "content_type": "application/zip",
        "byte_size": 0,
        "created_at": "2026-03-01T14:30:00Z"
      }
    ],
    "upsert_always": false,
    "custom_message": "Thanks for your purchase!",
    "preorder_enabled": false,
    "preorder_launch_date": null,
    "preorder_subject": null,
    "preorder_heading": null,
    "preorder_description": null,
    "created_at": "2026-04-08T10:00:00Z",
    "updated_at": "2026-04-08T10:00:00Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.filemonk.io/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Creating a digital product links one or more assets to a Shopify product or variant. When a customer purchases that Shopify product, Filemonk will automatically deliver the linked assets to them. You must provide a shopify_product_id. To link to a specific variant only (rather than all variants of a product), also include shopify_variant_id.
Shopify IDs are numeric integers (e.g. 8847261098265), not GID strings. You can find the numeric ID in your Shopify admin URL or via the Shopify API.

Request body

digital_product
object
required

Response

Returns the created digital product object with all linked assets.
curl -X POST 'https://app.filemonk.io/api/v1/external/digital_products' \
  -H 'X-Auth-Token: fm_api_key_your_key_here' \
  -H 'Content-Type: application/json' \
  -d '{
    "digital_product": {
      "shopify_product_id": 8847261098265,
      "asset_ids": ["a1b2c3d4-e5f6-7890-abcd-ef1234567890"],
      "custom_message": "Thanks for your purchase!"
    }
  }'
{
  "digital_product": {
    "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
    "shopify_product_id": 8847261098265,
    "shopify_variant_id": null,
    "assets": [
      {
        "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
        "type": "external",
        "name": "Photoshop Brushes Pack",
        "filename": "brushes-pack-v2.zip",
        "external_url": "https://cdn.example.com/files/brushes-pack-v2.zip",
        "content_type": "application/zip",
        "byte_size": 0,
        "created_at": "2026-03-01T14:30:00Z"
      }
    ],
    "upsert_always": false,
    "custom_message": "Thanks for your purchase!",
    "preorder_enabled": false,
    "preorder_launch_date": null,
    "preorder_subject": null,
    "preorder_heading": null,
    "preorder_description": null,
    "created_at": "2026-04-08T10:00:00Z",
    "updated_at": "2026-04-08T10:00:00Z"
  }
}