Skip to content

Create Entry

Add content to a feed. Supports multiple content types up to 50MB.

POST/v1/feeds/{feed_id}/entries

Overview

Create a new entry with base64-encoded content. Supports text, JSON, HTML, images, video, audio, and documents. Content can be free or paid.

Authentication: Required
Payment: x402 micropayment required

Request

Path Parameters

ParameterTypeRequired
feed_idstring (UUID)Yes

Body Parameters

ParameterTypeRequiredDescription
content_base64stringYesBase64-encoded content (max 50MB)
mime_typestringYesContent MIME type
titlestringNoEntry title
descriptionstringNoEntry description
tagsstring[]NoArray of tags (max 20)
is_freebooleanNoFree content (default: true)
priceobjectNoPricing for paid content

Request Body

{
  "content_base64": "SGVsbG8sIFdvcmxkIQ==",
  "mime_type": "text/plain",
  "title": "Welcome Post",
  "description": "Welcome to my feed",
  "tags": ["welcome"],
  "is_free": true
}

Response

{
  "id": "entry-uuid",
  "feed_id": "feed-uuid",
  "cid": "bafkreigxyz...",
  "mime_type": "text/plain",
  "title": "Welcome Post",
  "tags": ["welcome"],
  "is_free": true,
  "is_active": true,
  "total_purchases": 0,
  "total_revenue": "0",
  "created_at": 1734192000
}

Code Examples

cURL
curl -X POST https://api.grapevine.fyi/v1/feeds/{feed_id}/entries \
  -H "Content-Type: application/json" \
  -H "x-wallet-address: 0x..." \
  -H "x-signature: 0x..." \
  -H "x-message: ..." \
  -H "x-timestamp: 1234567890" \
  -H "x-chain-id: 8453" \
  -H "X-PAYMENT: ..." \
  -d '{
    "content_base64": "SGVsbG8sIFdvcmxkIQ==",
    "mime_type": "text/plain",
    "title": "Welcome Post",
    "is_free": true
  }'

Supported MIME Types

Text: text/plaintext/markdowntext/html
Data: application/json
Images: image/pngimage/jpegimage/gifimage/webpimage/svg+xml
Video: video/mp4video/quicktimevideo/webm
Audio: audio/mpegaudio/wavaudio/ogg
Documents: application/pdf

Notes

  • Content Limit: 50MB maximum (base64 encoded)
  • Private IPFS Storage: Content stored on Private IPFS, returns cid
  • Entry Limit: 1000 entries per feed
  • Payment: Entry creation requires x402 micropayment

Related