After reading the documentation on GitLab's API I could only find the following example URL:
https://gitlab.example.com/api/v4/
But I'm wondering what the root URL of the API of my projects on GitLab is?
I've tried https://gitlab.com/api/v4/ with the Private-Token header set to a Personal Access Token I've created for myself, but it always returns 401: Unauthorized.
What is the correct URL and method to connect to GitLab's API?