Search Documentation

Search for a documentation page...

Store API

Read the authenticated store's public profile, theme, and enabled capabilities.

/api/v1/me is the bootstrap endpoint for a storefront: one call returns who the store is, how it should look, and which capabilities are switched on. Most storefronts fetch it once at build or boot and cache the result.

Get Current Store

GET /api/v1/me

Returns a curated, secret-free view of the store behind the API key. It is deliberately an allowlist — API key hashes, deploy credentials, Stripe identifiers, and the merchant's address never cross this endpoint, and a newly added settings field stays private until it is explicitly exposed here.

curl \
-H "Authorization: Bearer your_api_key" \
https://your-store.yns.store/api/v1/me

Response

{
"store": {
"id": "0191abc0-1234-7def-8000-000000000001",
"name": "Acme Candles",
"subdomain": "acme",
"domain": "acmecandles.com",
"domainVerified": true,
"currency": "usd",
"locale": "en-US",
"published": true,
"environment": "live",
"settings": {
"storeName": "Acme Candles",
"storeDescription": "Hand-poured soy candles",
"socials": {},
"freeShippingThreshold": 5000,
"logo": "https://cdn.example.com/logo.svg",
"favicon": "https://cdn.example.com/favicon.ico",
"colors": {},
"enabledTools": {},
"defaultLanguage": "en-US",
"enabledLanguages": {},
"enabledCurrencies": ["usd", "eur"]
}
},
"storeBaseUrl": "https://acmecandles.com",
"publicUrl": "https://yns.store"
}

Top-Level Fields

FieldDescription
storeThe store profile and its public settings
storeBaseUrlThe canonical base URL for this store — custom domain when verified, otherwise the subdomain
publicUrlThe platform root URL

Store Fields

FieldTypeDescription
idstringStore UUID
namestringStore name
subdomainstringThe store's *.yns.store subdomain
domainstring | nullCustom domain, when one is connected
domainVerifiedbooleanWhether the custom domain has passed verification
currencystringBase currency code
localestringStore locale
publishedbooleanWhether the storefront is published
environmentstringlive or test — see test mode

Settings Fields

Everything under settings is safe to render publicly.

GroupFields
IdentitystoreName, storeDescription, socials, logo, ogimage, favicon
Themecolors, buttons, fontFamily, fontFamilyHeadings, fontSizes, pageWidth, cartIcon, productCards, checkoutAppearance
CommercefreeShippingThreshold, freeShippingThresholds, omnibus
CapabilitiesenabledTools — which modules are switched on
LocalizationdefaultLanguage, enabledLanguages, enabledCurrencies
GrowthnewsletterPopup, welcomeOffer, cartRecommendations
BlogblogFilterConfig

Use enabledTools to decide which storefront features to render — a wishlist button, a reviews section, a newsletter popup — so your storefront matches whatever the merchant has enabled in their dashboard.

Use enabledLanguages and enabledCurrencies to drive your language and currency switchers, then pass lang and currency to the catalog endpoints.

Errors

StatusMeaning
404Store not found