Phygrid Developers
Browse Topics
Rest API / Phygrid Developers

Rest API

Today, Grid Signals client libraries support only javascript and NodeJS based projects. We are planning to expand it to support more languages, like python.

Meanwhile, you can directly use the Grid Signals REST API.

Base urls

Grid Signals has multiple instances based on data residency. Below are the base urls:

  • AU: https://signal-au.omborigrid.com/api
  • EU: https://signal-eu.omborigrid.com/api
  • IN: https://signal-in.omborigrid.com/api
  • UAE: https://signal-uae.omborigrid.com/api
  • US: https://signal-us.omborigrid.com/api

API endpoints

When sending events to the endpoints, the keys should be parsed and shortened based on the Key Table

Creating a Session

route: /event

KeyTypeDescriptionRequiredOptions
sessionIdstringVersion 4 UUID stringyes
sessionCreatedstringDate string format session creation date timeyes
tenantIdstringTenant id in the Grid Consoleyes
environmentstringApplication environmentyes
dataResidencystringThe region where to store the datayes"EU", "UAE", "IN", "US", "AU"
countrystringTenant base country (Abbrev.)yes
spaceIdstringThe id of the Space where the device or any entity is locatedyes
appIdstringThe id of the gridapp which is running on a deviceyes
appVersionstring

List of Product Type IDs applicable to this product as a reference from ProductTypes Database

yes
installationIdstringThe id of the installation in Grid Consoleyes
installationVersionstringBuild id of the installationyes
deviceIdstring

Id of the device in the console. If deviceId is not passed, virtual deviceId is created

no
clientIdstringBrowser based device ID for mobile pwa appsno
locationAccuracynumberGeographic coordinates accuracyno
latitudenumberGeographic latitude of the device or requestorno-90 to 90
longitudenumberGeographic longitude of the device or requestorno-180 to 180

Sending a Client Information

For mobile pwa apps, you need to send client data to Grid Signals

route: /client

KeyTypeDescriptionRequiredOptions
tenantIdstringTenant id in the Grid Consoleyes
clientIdstringBrowser based device ID for mobile pwa appsyes
clientCreatedstringDate string format session creation date timeyes
clientUserAgentstringBrowser user-agentyes
dataResidencystringThe region where to store the datayes"EU", "UAE", "IN", "US", "AU"
countrystringTenant base country (Abbrev.)yes
locationAccuracynumberGeographic coordinates accuracyno
latitudenumberGeographic latitude of the device or requestorno-90 to 90
longitudenumberGeographic longitude of the device or requestorno-180 to 180
clientScreenWidthnumberDevice screen widthno
clientScreenHeightnumberDevice screen heightno
clientScreenColorDepthnumberDevice screen color depthno
clientScreenPixelDepthnumberDevice screen pixel depthno

Sending an Event

route: /event

KeyTypeDescriptionRequired
sessionIdstringVersion 4 UUID stringyes
tenantIdstringTenant id in the Grid Consoleyes
eventTypestringEvent type (Example: TEST_EVENT)yes
eventTimestringDate string format of when the event was triggeredyes
interactionbooleanFlag if the event is user triggered eventyes
dataResidencystringThe region where to store the datayes
productIdstringProduct id related to the eventno
categoryIdstringCategory id related to the eventno
clientIdstringBrowser based device ID for mobile pwa appsno
int1numberInteger type field related to the eventno
int2numberInteger type field related to the eventno
int3numberInteger type field related to the eventno
int4numberInteger type field related to the eventno
int5numberInteger type field related to the eventno
str1stringString type field related to the eventno
str2stringString type field related to the eventno
str3stringString type field related to the eventno
str4stringString type field related to the eventno
str5stringString type field related to the eventno
statefulbooleanIf the event should be persisted as a stateno
publicbooleanPublic state expiry durationno

Key Table

Original ParameterShortened Parameter
captureIda
sessionIdb
tenantIdc
sessionCreatedd
ip:e
environmentf
dataResidencyg
spaceIdh
appIdi
appVersionj
installationIdk
installationVersionl
countrym
locationAccuracyn
latitudeo
longitudep
deviceIdq
clientIdr
eventType:s
eventTimet
interactionu
productIdv
categoryIdw
int1x
int2y
int3z
int4aa
int5ab
str1ac
str2ad
str3ae
str4af
str5ag
clientCreatedah
clientIpai
clientUserAgentaj
clientDeviceVendorak
clientDeviceModelal
clientDeviceTypeam
clientOsNamean
clientOsVersionao
clientBrowserNameap
clientBrowserVersionaq
clientBrowserMajorar
clientBrowserEngineas
clientBrowserEngineVersionat
clientCpuArchitectureau
clientScreenWidthav
clientScreenHeightaw
clientScreenColorDepthax
clientScreenPixelDepthay
statefulba
publicbb

© 2024 · Phygrid. An Ombori company