There is a hook that can be used for any taxonomy, create_{$taxonomy}
, which in your case, is a category. So, it would be create_category
:
add_action( 'create_category', 'my_function', 10, 1 );
This is triggered by wp_insert_term()
at line 2142.