api documentation and code samples