semrush-appcenter

v1.0.2
com.mcparmory/semrush-appcenter Checked 3 days ago Published 6 months ago

Manage 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.

ParameterTypeDescription
user_idintegerThe 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.

ParameterTypeDescription
id *integerThe unique identifier of the subscription to retrieve. Must be a positive integer corresponding to an existing subscription for the user.
user_id *integerThe 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.

ParameterTypeDescription
attachmentsarrayArray of file attachments to include with the notification. Each attachment is processed in the order provided.
datastringCustom event payload as a base64-encoded byte string. Decode to access the JSON data structure containing event-specific information.
idstringA unique identifier for this event using UUID v4 format. Serves as an idempotency key to prevent duplicate notifications if the request is retried.
typestringThe category or type of event being sent (e.g., 'alert', 'update', 'reminder'). Helps classify the notification for routing and filtering.
user_idintegerThe 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.

ParameterTypeDescription
id *stringThe unique identifier (UUID format) of the subscription event whose status you want to retrieve.