What Are Apps?
Apps in EnSync represent your services or applications that publish and subscribe to events. Each app has unique credentials for authentication and encryption.App Components
Every app consists of three key components:| Component | Type | Purpose |
|---|---|---|
| appId | Public identifier | Identifies your app in the EnSync network |
| appKey | Secret credential | Authenticates your SDK client connections |
| appSecret | Private key | Decrypts events sent to your app |
Creating Apps
Apps are created in the EnSync Dashboard or programmatically via the API. When you create an app, you receive:- appKey (for authentication)
- appId (public identifier)
- appSecret (for decryption)
How Apps Work
Publishing Events
When you publish an event, you specify recipient appIds:Subscribing to Events
Your app subscribes to events using its appKey:App Permissions
Apps have two types of permissions:- send: Event paths this app can publish to
- receive: Event paths this app can subscribe to
Permissions are enforced by EnSync. Attempting to publish or subscribe to unauthorized event paths will fail.