To use API V2.1 set the Accept header of your API request to application/vnd.travis-ci.2.1+json.
Google search: application/vnd.travis-ci.2.1+json