semrush-appcenter
v1.0.2Manage subscriptions, users, and send event notifications for Semrush apps
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_viewer_status Get Viewer Status
Retrieves the current user's account status within the app, including information about purchases and active subscriptions.
| Parameter | Type | Description |
|---|---|---|
user_id | integer | The Semrush user ID to retrieve status for. If not provided, returns status for the authenticated user making the request. |
list_subscriptions List Subscriptions
Retrieve all registered subscriptions available for the application. This lists the notification subscriptions that have been configured for server-to-server API events.
get_user_subscription Get User Subscription
Retrieve the current subscription status for a specific user. Returns detailed information about the user's subscription including its active state and configuration.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The unique identifier of the subscription to retrieve. Must be a positive integer corresponding to an existing subscription for the user. |
user_id * | integer | The unique identifier of the user whose subscription status you want to retrieve. Must be a positive integer. |
send_event_notification Send Event Notification
Send a notification event to Semrush users. Use this to trigger server-to-server notifications with optional attachments and custom event data.
| Parameter | Type | Description |
|---|---|---|
attachments | array | Array of file attachments to include with the notification. Each attachment is processed in the order provided. |
data | string | Custom event payload as a base64-encoded byte string. Decode to access the JSON data structure containing event-specific information. |
id | string | A unique identifier for this event using UUID v4 format. Serves as an idempotency key to prevent duplicate notifications if the request is retried. |
type | string | The category or type of event being sent (e.g., 'alert', 'update', 'reminder'). Helps classify the notification for routing and filtering. |
user_id | integer | The Semrush user ID who should receive this notification. Must be a valid integer representing an existing user account. |
get_event_status Get Event Status
Retrieve the current status of a notification event subscription. Use this to check the delivery status and details of a specific event.
| Parameter | Type | Description |
|---|---|---|
id * | string | The unique identifier (UUID format) of the subscription event whose status you want to retrieve. |