Aller au contenu principal
Version: Plateforme actuelle

API Reference

Upsurge exposes versioned REST endpoints for storefront runtimes and authenticated merchant operations. Use the browser SDK for ordinary storefront capture; call the HTTP API directly for server, native, or custom runtime integrations.

Base URL

https://api.upsur.ge/api/v1

The /api/v1 path is the current HTTP contract. Documentation versions preserve guidance when a breaking platform contract requires a frozen snapshot.

Choose the authentication model​

IntegrationCredentialTypical endpoints
Storefront trackingPublic site ID exchanged for a short-lived runtime tokenEvents, recommendations, public overlay/chatbot configuration, submissions, Smart Search
Trusted server backendScoped secret API keyServer events, catalog push, server-side search, profile imports, authoritative commerce, and partner conversions
Merchant dashboard or trusted merchant clientFirebase ID tokenSites, API keys, team, products, campaigns, workflows, analytics, customers, integrations, media
Platform worker or webhook senderDedicated secret/signatureInternal job processing and workflow webhook delivery; not a customer API

Read Authentication before calling an endpoint directly.

Quick start: track one event​

curl --request POST \
'https://api.upsur.ge/api/v1/events/track' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: upsurge_sk_test_replace_me' \
--data '{
"event_type": "product_view",
"session_id": "session_01JEXAMPLE",
"device_id": "device_01JEXAMPLE",
"properties": {
"product_id": "SKU-TRAIL-123",
"product_name": "Trail Runner",
"product_price": 129.0,
"currency": "USD"
},
"context": {
"page_url": "https://shop.example.com/products/trail-runner",
"user_agent": "custom-storefront/1.0"
}
}'

A new event returns 201, an event_id, a timestamp, and request metadata. See Event ingestion for batching and schemas.

Reference sections​

Admin and worker routes

/api/admin/*, integration job processors, and platform-signed callbacks are operational surfaces, not customer APIs. Do not call them from storefront code or expose their credentials in a browser.

Paramètres des cookies

Choisissez ce qu’Upsurge peut utiliser sur ce site. Vous pouvez modifier ce choix à tout moment depuis le pied de page.

  • Essentiels

    Assurent le fonctionnement du site et mémorisent votre langue.

    Toujours actifs
  • Mesure d’audience

    Nous aide à comprendre quelles pages et fonctionnalités sont utilisées.

  • Personnalisation

    Adapte le contenu et les recommandations à ce que vous consultez.

  • Marketing

    Mesure quelles campagnes amènent des visiteurs sur le site.

Écrire au support

Ou écrivez-nous à hello@upsur.ge