User#

The authenticated user.

Get the authenticated user#

GET /api/v1/user

Returns the profile of the user identified by the request’s credentials. Useful as a credential check: a 200 confirms the token is valid and shows whose access it carries.

Example request

curl -X GET 'https://hosted.doltdb.com/api/v1/user' \
  -H 'Authorization: Bearer YOUR_TOKEN'

Responses

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

Example response 200

{
  "data": {
    "username": "acme-ops",
    "display_name": "Acme Operations",
    "company": "Acme Corp",
    "email_addresses": [
      {
        "address": "ops@acme.com",
        "is_verified": true,
        "is_primary": true
      }
    ]
  }
}