R2 API support is unchanged from R1 thus please refer to
R1 API Documentation