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