GitButler Logo
API Reference

User

Operations about users

GET
/user/{login}

Get User Login

Return a user

/user/{login}

Path Parameters

login
Required
string

User login

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

Return a user

{
  "id": "string",
  "login": "string",
  "name": "string",
  "email": "string",
  "avatar_url": "string",
  "given_name": "string",
  "family_name": "string",
  "picture": "string",
  "locale": "string",
  "supporter": "string",
  "organizations": {
    "slug": "string",
    "name": "string",
    "description": "string",
    "created_at": "string"
  },
  "created_at": "string",
  "updated_at": "string"
}

GET
/user

Get User

Return my user

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

Return my user

{
  "id": "string",
  "login": "string",
  "name": "string",
  "email": "string",
  "avatar_url": "string",
  "given_name": "string",
  "family_name": "string",
  "picture": "string",
  "locale": "string",
  "supporter": "string",
  "organizations": {
    "slug": "string",
    "name": "string",
    "description": "string",
    "created_at": "string"
  },
  "created_at": "string",
  "updated_at": "string",
  "access_token": "string",
  "role": "string",
  "projects": {
    "slug": "string",
    "owner": "string",
    "parent_project": {},
    "name": "string",
    "description": "string",
    "repository_id": "string",
    "code_repository_id": "string",
    "created_at": "string",
    "updated_at": "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",
  "login": "string",
  "name": "string",
  "email": "string",
  "avatar_url": "string",
  "given_name": "string",
  "family_name": "string",
  "picture": "string",
  "locale": "string",
  "supporter": "string",
  "organizations": {
    "slug": "string",
    "name": "string",
    "description": "string",
    "created_at": "string"
  },
  "created_at": "string",
  "updated_at": "string",
  "access_token": "string",
  "role": "string",
  "projects": {
    "slug": "string",
    "owner": "string",
    "parent_project": {},
    "name": "string",
    "description": "string",
    "repository_id": "string",
    "code_repository_id": "string",
    "created_at": "string",
    "updated_at": "string"
  }
}