[api] Improve documentation