feat(api): add thread api methods and documentation