DocsOMobileREST API Reference
Developer

REST API Reference

OMobileorravo.com/docs/omobile/rest-api-reference

Base URL: https://yoursite.com/wp-json/omobile/v1/

All mobile endpoints require the X-Om-Install-Id header with a unique per-install UUID.

Auth Endpoints

MethodPathAuthDescription
POST/auth/loginPublicAuthenticate, receive JWT pair
POST/auth/refreshPublicRotate refresh token
POST/auth/logoutBearerRevoke refresh token
GET/auth/meBearerCurrent user profile

Config Endpoint

MethodPathAuthDescription
GET/configBearerApp config, flags, remote config, announcements

The config response is cached per platform+version for 60 seconds. The cache is invalidated automatically whenever a feature flag or remote config value is updated.

Query params:

  • version — app version string (used for version_check)
  • platformios or android

Response shape:

json{
  "flags": {
    "new_checkout_flow": {
      "value": true,
      "rollout_pct": 50,
      "in_rollout": true
    }
  },
  "remote_config": {
    "min_cart_value": 10,
    "support_email": "help@example.com"
  },
  "announcements": [],
  "version_check": {
    "status": "supported",
    "force_update": false,
    "message": ""
  }
}

Device Endpoints

MethodPathAuthDescription
POST/devices/registerBearerRegister/update device
json{
  "platform": "ios",
  "app_version": "2.1.0",
  "push_token": "<FCM or APNs token>",
  "locale": "en-US",
  "timezone": "America/New_York",
  "os_version": "17.4",
  "device_model": "iPhone 15"
}

Telemetry Endpoints

MethodPathAuthDescription
POST/telemetry/eventsBearerSubmit batch of events
POST/telemetry/sessionBearerStart/end session

Crash Endpoints

MethodPathAuthDescription
POST/crashes/reportBearerSubmit crash report

Crashes are fingerprinted by hashing the top 3 frames of the stack trace. Duplicate crashes increment a counter rather than inserting new rows.

Content Endpoints

MethodPathAuthDescription
GET/content/postsBearerPaginated posts feed
GET/content/posts/{id}BearerSingle post

Admin REST Endpoints

These endpoints require a logged-in admin user or a valid API key with manage_omobile capability.

MethodPathDescription
GET/POST/DELETE/admin/flagsFeature flag CRUD
GET/PUT/admin/remote-configRemote config CRUD
GET/POST/admin/push-queuePush queue management
GET/admin/segmentsList segments
GET/admin/auditAudit log
GET/POST/DELETE/admin/api-keysAPI key management
GET/POST/admin/app-versionsVersion rule management
GET/admin/snapshotsSnapshot list

REST API Reference — OMobile Docs — Orravo