505 Error when creating a client

Where did you get this URL from ? I don’t remember ever seeing this on the docs.

The API client (pair of credentials) you create on this web interface

After that you just need to use the credentials in a standard OAuth2 flow.
More about this here and here