For the complete documentation index, see llms.txt. This page is also available as Markdown.

users

User related operations

List all users

get
Paramètres de requête
qstringOptionnel

The search query

sortstring · enumOptionnel

The field (and direction) on which sorting apply

Valeurs possibles:
pageintegerOptionnel

The page to fetch

page_sizeintegerOptionnel

The page size to fetch

Paramètres d'en-tête
X-Fieldsstring · maskOptionnel

An optional fields mask

Réponses
200

Success

application/json
next_pagestringOptionnel

The next page URL if exists

pageinteger · min: 1Requis

The current page

page_sizeintegerRequis

The page size used for pagination

previous_pagestringOptionnel

The previous page URL if exists

totalintegerRequis

The total paginated items

get/users/
200

Success

Create a new object

post
Paramètres d'en-tête
X-Fieldsstring · maskOptionnel

An optional fields mask

Corps
aboutstring · markdownOptionnel

The user self description

activebooleanOptionnel
avatarstringOptionnel

The user avatar URL

avatar_thumbnailstringOptionnel

The user avatar thumbnail URL. This is the square (500x500) and cropped version.

emailobjectLecture seuleOptionnel

The user email

first_namestringRequis

The user first name

idstringLecture seuleOptionnel

The user identifier

last_login_atobjectLecture seuleOptionnel

The user's most recent login date (present for global admins, on /me, and for organization members in their org context)

last_namestringRequis

The user last name

metricsobjectLecture seuleOptionnel

The user metrics

pagestringLecture seuleOptionnel

The user web page URL

password_rotation_demandedobjectLecture seuleOptionnel

Date at which a password rotation was requested for this user (only present for global admins and on /me)

password_rotation_performedobjectLecture seuleOptionnel

Date at which the user performed the requested password rotation (only present for global admins and on /me)

rolesstring[]Optionnel

Site wide user roles

sincestring · date-timeRequis

The registeration date

slugstringLecture seuleOptionnel

The user permalink string

uristringLecture seuleOptionnel

The API URI for this user

websitestringOptionnel

The user website

Réponses
201

Success

application/json
aboutstring · markdownOptionnel

The user self description

activebooleanOptionnel
avatarstringOptionnel

The user avatar URL

avatar_thumbnailstringOptionnel

The user avatar thumbnail URL. This is the square (500x500) and cropped version.

emailobjectLecture seuleOptionnel

The user email

first_namestringRequis

The user first name

idstringLecture seuleOptionnel

The user identifier

last_login_atobjectLecture seuleOptionnel

The user's most recent login date (present for global admins, on /me, and for organization members in their org context)

last_namestringRequis

The user last name

metricsobjectLecture seuleOptionnel

The user metrics

pagestringLecture seuleOptionnel

The user web page URL

password_rotation_demandedobjectLecture seuleOptionnel

Date at which a password rotation was requested for this user (only present for global admins and on /me)

password_rotation_performedobjectLecture seuleOptionnel

Date at which the user performed the requested password rotation (only present for global admins and on /me)

rolesstring[]Optionnel

Site wide user roles

sincestring · date-timeRequis

The registeration date

slugstringLecture seuleOptionnel

The user permalink string

uristringLecture seuleOptionnel

The API URI for this user

websitestringOptionnel

The user website

post/users/

List all possible user roles

get
Paramètres d'en-tête
X-Fieldsstring · maskOptionnel

An optional fields mask

Réponses
200

Success

application/json
namestringLecture seuleOptionnel

The role name

get/users/roles/
200

Success

Suggest users

get
Paramètres de requête
qstringRequis

The string to autocomplete/suggest

sizestringOptionnel

The amount of suggestion to fetch (between 1 and 20)

Paramètres d'en-tête
X-Fieldsstring · maskOptionnel

An optional fields mask

Réponses
200

Success

application/json
avatar_urlstringLecture seuleOptionnel

The user avatar URL

emailobjectLecture seuleOptionnel

The user email (only the domain for non-admin user)

first_namestringLecture seuleOptionnel

The user first name

idstringLecture seuleOptionnel

The user identifier

last_namestringLecture seuleOptionnel

The user last name

slugstringLecture seuleOptionnel

The user permalink string

get/users/suggest/
200

Success

List all followers for a given object

get
Paramètres de chemin
idstringRequis
Paramètres de requête
pageintegerOptionnel

The page to fetch

page_sizeintegerOptionnel

The page size to fetch

userstringOptionnel

Filter follower by user, it allows to check if a user is following the object

Paramètres d'en-tête
X-Fieldsstring · maskOptionnel

An optional fields mask

Réponses
200

Success

application/json
next_pagestringOptionnel

The next page URL if exists

pageinteger · min: 1Requis

The current page

page_sizeintegerRequis

The page size used for pagination

previous_pagestringOptionnel

The previous page URL if exists

totalintegerRequis

The total paginated items

get/users/{id}/followers/
200

Success

Follow a user given its ID

post
Paramètres de chemin
idstringRequis
Réponses
403

When trying to follow yourself

Aucun contenu

post/users/{id}/followers/
403

When trying to follow yourself

Aucun contenu

Unfollow an object given its ID

delete

Returns the number of followers left after the operation

Paramètres de chemin
idstringRequis
Réponses
200

Success

Aucun contenu

delete/users/{id}/followers/
200

Success

Aucun contenu

Get a user given its identifier

get
Paramètres de chemin
userstringRequis
Paramètres d'en-tête
X-Fieldsstring · maskOptionnel

An optional fields mask

Réponses
200

Success

application/json
aboutstring · markdownOptionnel

The user self description

activebooleanOptionnel
avatarstringOptionnel

The user avatar URL

avatar_thumbnailstringOptionnel

The user avatar thumbnail URL. This is the square (500x500) and cropped version.

emailobjectLecture seuleOptionnel

The user email

first_namestringRequis

The user first name

idstringLecture seuleOptionnel

The user identifier

last_login_atobjectLecture seuleOptionnel

The user's most recent login date (present for global admins, on /me, and for organization members in their org context)

last_namestringRequis

The user last name

metricsobjectLecture seuleOptionnel

The user metrics

pagestringLecture seuleOptionnel

The user web page URL

password_rotation_demandedobjectLecture seuleOptionnel

Date at which a password rotation was requested for this user (only present for global admins and on /me)

password_rotation_performedobjectLecture seuleOptionnel

Date at which the user performed the requested password rotation (only present for global admins and on /me)

rolesstring[]Optionnel

Site wide user roles

sincestring · date-timeRequis

The registeration date

slugstringLecture seuleOptionnel

The user permalink string

uristringLecture seuleOptionnel

The API URI for this user

websitestringOptionnel

The user website

get/users/{user}/

Update a user given its identifier

put
Paramètres de chemin
userstringRequis
Paramètres d'en-tête
X-Fieldsstring · maskOptionnel

An optional fields mask

Corps
aboutstring · markdownOptionnel

The user self description

activebooleanOptionnel
avatarstringOptionnel

The user avatar URL

avatar_thumbnailstringOptionnel

The user avatar thumbnail URL. This is the square (500x500) and cropped version.

emailobjectLecture seuleOptionnel

The user email

first_namestringRequis

The user first name

idstringLecture seuleOptionnel

The user identifier

last_login_atobjectLecture seuleOptionnel

The user's most recent login date (present for global admins, on /me, and for organization members in their org context)

last_namestringRequis

The user last name

metricsobjectLecture seuleOptionnel

The user metrics

pagestringLecture seuleOptionnel

The user web page URL

password_rotation_demandedobjectLecture seuleOptionnel

Date at which a password rotation was requested for this user (only present for global admins and on /me)

password_rotation_performedobjectLecture seuleOptionnel

Date at which the user performed the requested password rotation (only present for global admins and on /me)

rolesstring[]Optionnel

Site wide user roles

sincestring · date-timeRequis

The registeration date

slugstringLecture seuleOptionnel

The user permalink string

uristringLecture seuleOptionnel

The API URI for this user

websitestringOptionnel

The user website

Réponses
200

Success

application/json
aboutstring · markdownOptionnel

The user self description

activebooleanOptionnel
avatarstringOptionnel

The user avatar URL

avatar_thumbnailstringOptionnel

The user avatar thumbnail URL. This is the square (500x500) and cropped version.

emailobjectLecture seuleOptionnel

The user email

first_namestringRequis

The user first name

idstringLecture seuleOptionnel

The user identifier

last_login_atobjectLecture seuleOptionnel

The user's most recent login date (present for global admins, on /me, and for organization members in their org context)

last_namestringRequis

The user last name

metricsobjectLecture seuleOptionnel

The user metrics

pagestringLecture seuleOptionnel

The user web page URL

password_rotation_demandedobjectLecture seuleOptionnel

Date at which a password rotation was requested for this user (only present for global admins and on /me)

password_rotation_performedobjectLecture seuleOptionnel

Date at which the user performed the requested password rotation (only present for global admins and on /me)

rolesstring[]Optionnel

Site wide user roles

sincestring · date-timeRequis

The registeration date

slugstringLecture seuleOptionnel

The user permalink string

uristringLecture seuleOptionnel

The API URI for this user

websitestringOptionnel

The user website

put/users/{user}/

Delete a user given its identifier

delete
Paramètres de chemin
userstringRequis
Paramètres de requête
send_legal_noticebooleanOptionnel

Send formal legal notice with appeal information to owner (admin only)

no_mailbooleanOptionnel

Do not send the simple deletion notification email. Note: automatically set to True when send_legal_notice=True to avoid sending duplicate emails.

delete_commentsbooleanOptionnel

Delete comments posted by the user upon user deletion

Réponses
204

Object deleted

Aucun contenu

delete/users/{user}/

Aucun contenu

Upload a new avatar for a given user

post
Paramètres de chemin
userstringRequis
Paramètres d'en-tête
X-Fieldsstring · maskOptionnel

An optional fields mask

Corps
filestringOptionnel
bboxstringOptionnel
Réponses
200

Success

application/json
imagestringOptionnel
successbooleanLecture seuleOptionnel

Whether the upload succeeded or not.

Default: true
post/users/{user}/avatar
200

Success

Ce contenu vous a-t-il été utile ?