Developer Portal for YouTrack and Hub Help

REST API URL and OAuth 2.0 Endpoints


Hub's REST API is available by the following URL:

<Hub Service URL>/api/rest/

<Hub Service URL> is the Base URL of the Hub service in your network environment. For example, you have your company's server and a Hub service. You can configure Hub to be accessible by or, let's say

/api/rest/ is the context path for the REST API of your Hub service.

For the sample Base URLs above, REST API URLs are as follows, respectively:

  • For

  • For

Concluding the example, endpoint URLs to, let's say, get the profile of the current user are:

  • For

  • For

OAuth 2.0 Endpoints for Hub

For the Hub service, the OAuth 2.0 endpoints for authentication and token are:

  • Authentication endpoint URL:

    <Hub REST API URL>/oauth2/auth

  • Token endpoint URL:

    <Hub REST API URL>/oauth2/token

<Hub REST API URL> is the URL for the REST API of your Hub service. For details, see the description above. For sample REST API URLs that are described in the previous section, the OAuth 2.0 endpoints are as follows, respectively:

  • For

  • For

If you need to get the user info and further data, please check the description of OpenID Connect endpoint.

Last modified: 30 April 2024