Register a new app in Mitr
add_appRegister a new app or site to start receiving tracked events and get its siteId; copy the SDK secret key from the Mitr dashboard.
Instructions
Register a new app/site under your Mitr workspace so it can start receiving tracked events. Returns the new app's siteId. The app's SDK secret key is deliberately not returned: tell the user to copy it from the Mitr dashboard (Integration Hub, the app's card). Needs an API key created with permission to register apps; a read-only key gets a clear error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable name for the app, e.g. 'Marketing Site'. | |
| platformType | Yes | What kind of app this is. | |
| platformIdentifier | Yes | Domain for web (e.g. 'example.com'); bundle ID for iOS/macOS; package name for Android; a free-form service name for server/desktop. |