Users
Manage user accounts and profiles.
Get profile of authenticated user
get
Returns details about the user associated with the authentication provided in the request's authorization header.
curl -L \
--url 'https://api.gitbook.com/v1/user' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"object": "user",
"id": "text",
"displayName": "text",
"email": "text",
"photoURL": "text",
"urls": {
"location": "https://example.com"
}
}
Get a user by its ID
get
Provides publicly available information about someone with a GitBook account.
userIdstringrequired
The unique ID of the User
curl -L \
--url 'https://api.gitbook.com/v1/users/{userId}' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"object": "user",
"id": "text",
"displayName": "text",
"email": "text",
"photoURL": "text",
"urls": {
"location": "https://example.com"
}
}