KV

Creates a new store with an initial key-value pair and returns a shareable link. Reuse existing owner token to group entities under one owner

post/api/kv

Request

  • Base URL: https://brewpage.app
  • URL: https://brewpage.app/api/kv
  • Auth: one of:
    • none
    • API key in header X-Owner-Token

Query parameters

nsstring

Namespace (default public). Custom namespaces are unlisted, accessible to anyone with the URL. Public discovery additionally requires eligibility and no password.

tagsstring

Comma-separated tags

ttlstring

TTL in integer days (1-30); accepts 15, 15d, 15 day or 15 days, case-insensitive. Omitted or blank uses 15 days.

Headers

X-Passwordstring

Access password; protected stores are unlisted. NEW browser links use trusted unlock; programmatic reads use X-Password

X-Owner-Tokenstring

Reuse existing owner token to group entities under one owner. If omitted, a new token is generated

X-Delivery-Modestring

Delivery mode for a new store: path or subdomain

Request body

keystring required

Initial key name

valuestring required

Value for the initial key (max 1 MB)

Response

Store created

idstring required

Unique 10-character alphanumeric store ID

namespacestring required
keystring required
sizeBytesinteger required
linkstring required

Primary URL returned for browser viewing and sharing of the initial key

ownerLinkstring required

API URL for programmatic access (upsert/delete)

expiresAtstring date-time required
tagsstring[] required
ownerTokenstring required

Secret token required for upsert and delete operations. Store it safely -- cannot be recovered

visibilityNoticestring

Human-readable explanation of link access and conditional public-discovery eligibility. Unlisted links are not secret; password protection applies when configured. No guarantee of listing, ranking or search-engine indexing.

managementLinkstring nullable required
routingCohortstring required
deliveryModestring nullable required
requestedDeliveryModestring nullable required
effectiveDeliveryModestring nullable required
deliveryModeMatchedboolean nullable required
accessstring required
modeLockedboolean required
hostingVersioninteger nullable required

Changes

    • breaking

      added the pattern ^\s*(?:\d+\s*(?:[dD]|[dD][aA][yY][sS]?)?)?\s*$ to the query request parameter ttl

    • breaking

      the request property became required

    • breaking

      the request property became required

    • breaking

      removed the media type */* for the response with the status

    • breaking

      removed the media type */* for the response with the status

    • breaking

      removed the media type */* for the response with the status

    • info

      the endpoint scheme security OwnerToken was added to the API

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • breaking

      the response property became nullable for the status

    • breaking

      the response property became nullable for the status

    • breaking

      the response property became nullable for the status