Skip to main content

API Reference

The Stackfront backend exposes a REST API that the SDK communicates with. You can also call these endpoints directly if you need to integrate outside of the React Native SDK.

Base URL

Authentication

There are two authentication modes depending on the endpoint:

SDK Endpoints (mobile app → Stackfront API)

Merchant Endpoints (Shopify admin → Stackfront API)

Authenticated via Shopify session OAuth token (handled automatically by the Shopify app).

Developer Endpoints (developer dashboard → Stackfront API)

Authenticated via JWT bearer token obtained from the OTP-based auth flow.

Content-Type

All requests and responses use application/json.

Errors

Standard error response format:
HTTP status codes:

Rate Limits

Pagination

List endpoints use page and pageSize query parameters:

Endpoints

SDK Configuration

SDK Push Notifications

SDK Events & Analytics

SDK Loyalty

SDK Reviews

SDK Social Proof

SDK Stories

SDK Integrations

Merchant Auth

Merchant Status & Setup

Merchant Billing

Merchant Branding & Content

Merchant Campaigns & Push

Merchant Analytics

Merchant Abandoned Cart

Merchant Loyalty

Merchant Reviews

Merchant Segments

Merchant Social Proof

Merchant Stories

Merchant Integrations

Developer Auth

Developer Profile & API Keys

Developer Analytics

Developer Billing

Webhooks (Shopify → Stackfront)