Skip to content

Github REST API is not working for custom url #24459

Answered by lalithcse
lalithcse asked this question in Enterprise
Discussion options

You must be logged in to vote

To access APIs on GitHub Enterprise, you need to call the APIs as below:

https://hostname/api/v3/

So if your GitHub url is https://github.abc.company_name.com, then you need to call the APIs with the base url as below:

https://github.abc.company\_name.com/api/v3/

Also note that you would need to add Basic Auth header when you make the API call since the APIs would be secured.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enterprise Discussions related to GitHub Enterprise Cloud and Enterprise Server
1 participant