GitButler Logo
API Reference

User

Operations about users

GET
/user

Get User

Return my user

/user
curl -X GET "https://app.gitbutler.com/api/user"

Return my user

{
  "id": "string",
  "name": "string",
  "login": "string",
  "given_name": "string",
  "family_name": "string",
  "email": "string",
  "avatar_url": "string",
  "picture": "string",
  "locale": "string",
  "supporter": "string",
  "created_at": "string",
  "updated_at": "string",
  "access_token": "string",
  "role": "string"
}

PUT
/user

Put User

Update my user

/user

Request Body

application/jsonOptional

namestring

User name

avatarstring

Avatar binary file

localestring

Language locale (en, de)

given_namestring

Given name

family_namestring

Family name

curl -X PUT "https://app.gitbutler.com/api/user" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "avatar": "string",
    "locale": "string",
    "given_name": "string",
    "family_name": "string"
  }'

Update my user

{
  "id": "string",
  "name": "string",
  "login": "string",
  "given_name": "string",
  "family_name": "string",
  "email": "string",
  "avatar_url": "string",
  "picture": "string",
  "locale": "string",
  "supporter": "string",
  "created_at": "string",
  "updated_at": "string",
  "access_token": "string",
  "role": "string"
}