@api_key_only_webhook_view('Groove')
@has_request_variables
def api_groove_webhook(request: HttpRequest, user_profile: UserProfile, payload: Dict[(str, Any)]=REQ(argument_type='body')) -> HttpResponse:
    event = validate_extract_webhook_http_header(request, 'X_GROOVE_EVENT', 'Groove')
    assert (event is not None)
    handler = get_event_handler(event)
    body = handler(payload)
    topic = 'notifications'
    if (body is not None):
        check_send_webhook_message(request, user_profile, topic, body)
    return json_success()
@api_key_only_webhook_view('Groove')
@has_request_variables
def api_groove_webhook(request: HttpRequest, user_profile: UserProfile, payload: Dict[(str, Any)]=REQ(argument_type='body')) -> HttpResponse:
    event = validate_extract_webhook_http_header(request, 'X_GROOVE_EVENT', 'Groove')
    assert (event is not None)
    handler = get_event_handler(event)
    body = handler(payload)
    topic = 'notifications'
    if (body is not None):
        check_send_webhook_message(request, user_profile, topic, body)
    return json_success()