User#
DoltHub provides a user API for retrieving information about the authenticated user.
Note Please make sure to send your requests to
https://www.dolthub.cominstead ofhttps://dolthub.com.
Get current user#
Here’s an example of how to fetch information about the authenticated user using an authorization token.
This endpoint requires authentication, so you must include this authorization header in your request. See the Authentication section for more details.
headers = {
'authorization': 'token [api token you created]'
}
GET
/user
Get current user
Returns information about the authenticated user, including their username, display name, profile picture, and email addresses.
URL
https://www.dolthub.com/api/v1alpha1/userResponses
200 Success
401 Not authenticated. The request did not include a valid API token.