UseRH's API Reference (Staging)

Base URL: https://account.hmg.userh.host

Authorization endpoint: GET https://account.hmg.userh.host/oauth/authorize

Token endpoint: POST https://account.hmg.userh.host/oauth/token

Logged in user info endpoint: GET https://account.hmg.userh.host/api/user

UseRH's authentication/authorization uses OAuth 2.0, and it's implemented with Laravel Passport. The consumer must obtain an access token through the Authorization Code Flow with PKCE (see image for details about how it works).

An example of how to consume is included in Laravel Passport documentation.

The idea is to request an authorization code using the authorization endpoint (with PKCE). Once the user logs in and authorizes the request, the Authz server will redirect back to the consuming application, which can use the authorization code to generate an access token using the token endpoint. With this access token, the consuming application can now access the logged in user information endpoint and any other endpoint available through our APIs.

Base URL: https://api.hmg.userh.host

Access endpoint documentation