[doc] Add API specification document