Skip to main content

Core Platform Guide

The Core Platform API provides foundational services that underpin all SensorUp operations. It includes authentication (su-auth), user management (su-user), core infrastructure (su-backend), geospatial services (su-maps), data catalogs (su-catalog), and event streaming (su-eventhub).

Overview

The Core Platform enables:
  • Authentication: Session management, API keys, and federated sign-in
  • User Management: User profiles, permissions, and device tracking
  • Geospatial Services: Maps, location queries, and spatial operations
  • Data Catalogs: Schema registry and metadata management
  • Event Streaming: Real-time event subscriptions and notifications
  • Core Infrastructure: Configuration, health checks, and system operations

Authentication (su-auth)

For comprehensive authentication documentation, see the Authentication Guide.

Quick Reference

Session-based Authentication:
Check Current Session:
API Key Creation:

Session Lifetimes

Authentication Methods

  • Cookie: sensorup_sessionid (auto-set in browser)
  • Header: x-sensorup-sessionid (for API clients and M2M)

User Management (su-user)

Query User Profile

Update User Profile

Variables:

Query User Permissions

List Users in Group

Device Management

Forget Device:

Geospatial Services (su-maps)

Query Map Configuration

Get Map Tiles

Variables:

Geocoding

Variables:

Reverse Geocoding

Variables:

Spatial Queries

Variables:

GeoJSON Support

The platform supports full GeoJSON geometry types:
Example Point:
Example Polygon:

Data Catalogs (su-catalog)

Query Catalog Entries

Get Specific Catalog Entry

Create Catalog Entry

Variables:

Query by Category

Variables:

Event Streaming (su-eventhub)

Subscribe to Events

Variables (Filter by Event Type):

Publish Event

Variables:

Query Event History

Variables:

Event Types

Common system event types:

Core Infrastructure (su-backend)

System Configuration

Health Check

Feature Flags

Check Specific Feature:

System Metrics

Common Patterns

Authentication Flow

Geospatial Queries

Event Streaming

Catalog-Driven Forms

Best Practices

1. Session Management

Monitor session expiration and refresh proactively:

2. Geospatial Performance

Use appropriate zoom levels and bounds for map tiles:

3. Event Filtering

Subscribe only to needed event types:

4. Catalog Validation

Leverage catalog schemas for data validation:

5. Permission Checks

Always verify user permissions before restricted operations:

Error Handling

Platform mutations return consistent error formats:
Common error types:
  • AUTHENTICATION_FAILED: Invalid credentials
  • AUTHORIZATION_FAILED: Insufficient permissions
  • VALIDATION_ERROR: Input validation failed
  • NOT_FOUND: Resource does not exist
  • DUPLICATE: Resource already exists
  • RATE_LIMIT_EXCEEDED: Too many requests