User#

The authenticated user.

Get the authenticated user#

GET /api/v2/user

Returns the profile of the user identified by the request’s credentials.

Example request

curl -X GET 'https://www.dolthub.com/api/v2/user' \
  -H 'Authorization: Bearer YOUR_TOKEN'

Responses

StatusDescriptionSchema
200The authenticated user’s profile.User
401Authentication credentials were missing or invalid.Problem
405The HTTP method is not supported for this resource.Problem
500An unexpected server error occurred.Problem

Example response 200

{
  "data": {
    "username": "dolthub",
    "display_name": "DoltHub",
    "bio": "The database for agents.",
    "location": "San Mateo, CA",
    "website_url": "https://www.dolthub.com",
    "profile_pic_url": "https://www.dolthub.com/static/images/dolthub_logo.png",
    "email_addresses": [
      {
        "address": "dolt-interest@dolthub.com",
        "is_primary": true,
        "is_verified": true
      }
    ]
  }
}