LogoStow
  • Browse
  • Pricing
  • Sell on Stow
  • Blog

Getting Started

  • Introduction

Registry Item Spec

  • Overview
  • Registry Types
  • Preview Media
  • Token Price
  • Subtype
  • Industry
  • Framework
  • UI Libraries

Publishing Items

  • Stow CLI

API

  • Overview
  • Projects
  • Registry Items

Registry Items

Upload and update registry items (blocks) within a project. This is the same endpoint used by the Stow CLI when you run stow push.

Upsert a registry item

POST https://stow.build/api/registry/items

Creates a new registry item or updates an existing one. If an item with the same name already exists in the project it will be replaced.

Request body

FieldTypeRequiredDescription
projectSlugstringYesSlug of the project to publish to.
registryItemobjectYesThe full registry item object. See the registry item spec for all supported fields.

Registry item fields

Use the registry item spec for the full schema, field requirements, and framework-specific guidance, including supported framework values such as React, Vue, and Svelte.

Example request

curl -X POST https://stow.build/api/registry/items \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "projectSlug": "my-project",
    "registryItem": {
      "name": "hero-section",
      "type": "registry:block",
      "title": "Hero Section",
      "description": "A responsive hero section with gradient background.",
      "files": [
        {
          "path": "blocks/hero-section.tsx",
          "type": "registry:block",
          "content": "export default function HeroSection() { ... }"
        }
      ],
      "dependencies": ["framer-motion"],
      "meta": {
        "stow": {
          "framework": "React",
          "tokenPrice": 5,
          "isVisible": true,
          "previewUrl": "https://example.com/preview/hero"
        }
      }
    }
  }'

Success response

Returns 200 OK with an empty body on success. If the item did not previously exist it is created; if it did it is replaced.

Thumbnails

If you provide a meta.stow.thumbnailUrl, the image at that URL will be fetched and stored. The URL must return an image content type (PNG, JPEG, WebP, GIF, or SVG).

If you only provide a meta.stow.previewUrl and no thumbnail, a screenshot of the preview URL will be generated automatically.

Error responses

StatusErrorCause
400API key is required.The x-api-key header is missing or empty.
400Validation errorThe request body failed schema validation. The error message contains details about which fields are invalid.
401Unauthorized.The API key is invalid or does not have access to the specified project.
400Failed to fetch thumbnailUrl.The thumbnailUrl could not be downloaded or returned a non-image content type.
500Internal server error.An unexpected error occurred. Try again later.

On This Page

Upsert a registry itemRequest bodyRegistry item fieldsExample requestSuccess responseThumbnailsError responses
Stow LogoStow

The marketplace for premium UI components and blocks. Build faster with ready to use designs.

Company

  • About

Product

  • Pricing
  • Sell on Stow

Resources

  • Blog
  • Creator Documentation

Discover

  • Explore
  • All Products
  • Shadcn
  • React
  • Vue
  • Svelte

© Stow. All rights reserved.

Terms of UsePrivacy Policy
2026