  We present an analysis of the newly observed pentaquark $P_c(4312)^+$ to shed
light on its quantum numbers. To do that, the QCD sum rule approach is used.
The measured mass of this particle is close to $\Sigma_c^{++}\bar{D}^-$
threshold and has a small width, which supports the possibility of its being a
molecular state. We consider an interpolating current in a molecular form and
analyze both the positive and negative parity states with spin-$\frac{1}{2}$.
We also consider the bottom counterpart of the state with similar molecular
form. Our mass result for the charm pentaquark state supports that, the quantum
numbers of the observed state are consistent with $J^P=\frac{1}{2}^{-}$.
