Upgrade to API v2

This is a breaking change.

The API v1 endpoints are no longer reliable.