Lunogram

Client API

Public API for ingesting user data, events, and device information

The Client API is used by SDKs and client applications to ingest data into Lunogram. It supports user identification, event tracking, organization management, and scheduling.

For the full endpoint reference, see the interactive API documentation.

Authentication

Client endpoints authenticate via Bearer token using an API key with the client role. Client keys are write-only and safe to use in frontend applications.

Authorization: Bearer YOUR_API_KEY

You can create and manage API keys in your project settings.

Client keys can ingest data but cannot read or modify existing resources. See API Keys for a full breakdown of roles and permissions.

Available Endpoints

MethodEndpointDescription
POST/api/client/usersCreate or update a user
POST/api/client/users/eventsTrack user events
DELETE/api/client/usersDelete a user
POST/api/client/organizationsCreate or update an organization
POST/api/client/organizations/eventsTrack organization events
POST/api/client/users/scheduledCreate or update a user schedule
DELETE/api/client/users/scheduledDelete a user schedule
POST/api/client/organizations/scheduledCreate or update an org schedule
DELETE/api/client/organizations/scheduledDelete an org schedule
POST/api/client/users/devicesRegister a device for push notifications

SDKs

The Client API is the foundation for all Lunogram SDKs. See the JavaScript SDK documentation for a higher-level integration option.

On this page