How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

GitLab Users API

Use this API to interact with user accounts on GitLab. These endpoints can help manage[your account](https://docs.gitlab.com/user/profile/), manage[accounts for other users](https://docs.gitlab.com/administration/administer_users/),[moderate user accounts](https://docs.gitlab.com/administration/moderate_users/),[perform follower actions](https://docs.gitlab.com/user/profile/#follow-users), and[interact with email addresses for user accounts](https://docs.gitlab.com/user/profile/).

GitLab Users API is one of 189 APIs that GitLab publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

This API exposes 16 JSON Schema definitions.

Tagged areas include User. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, authentication docs, an API reference, rate-limit docs, an AsyncAPI specification, and 16 JSON Schemas.

This API exposes 43 operations across 33 paths, and defines 27 schemas. It is described by OpenAPI 3.2.0, at version 19.6.

Requests are made against a single base URL, https://{hostname}.

43 operations 33 paths 27 schemas 4 DELETE17 GET2 PATCH16 POST4 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
19.6
Base URL
https://gitlab.com/api/v4
Authentication
HTTP Bearer, OAuth 2.0, API Key
Terms of Service
Resource Areas
1

Authentication & Security 3

GitLab Users API declares 3 security schemes for authenticating requests. It accepts HTTP bearer tokens (http). It supports OAuth 2.0 (oauth2) using the authorizationCode flow, exposing 9 scopes. An API key is passed in the header as PRIVATE-TOKEN (apiKey). By default, every request must be authenticated.

Paths & Operations 43

Across 33 paths, the API surfaces 43 operations — 4 DELETE, 17 GET, 2 PATCH, 16 POST, 4 PUT. Each is listed below with its method, path, parameters, and response codes.

Users 43

Use this API to interact with user accounts on GitLab. These endpoints can help manage your account, manage accounts for other users, moderate user accounts, perform follower acti…

GET
/api/v4/users/{id}/support_pin
Retrieve a Support PIN for a user
getApiV4UsersIdSupportPin 1 param → 200404400
POST
/api/v4/users/{id}/support_pin/revoke
Revoke a Support PIN for a user
postApiV4UsersIdSupportPinRevoke 1 param → 204404400
GET
/api/v4/users
List all users
getApiV4Users 27 params → 200400
POST
/api/v4/users
Create a user
postApiV4Users body → 201400
GET
/api/v4/users/{id}
Retrieve a user as a regular user
getApiV4UsersId 3 params → 200404400
PUT
/api/v4/users/{id}
Update a user
putApiV4UsersId 1 param body → 200404400
DELETE
/api/v4/users/{id}
Delete a user
deleteApiV4UsersId 2 params → 200404400
GET
/api/v4/users/{user_id}/status
Retrieve the status of a user
getApiV4UsersUserIdStatus 1 param → 200404400
POST
/api/v4/users/{id}/follow
Follow a user
postApiV4UsersIdFollow 1 param → 201404400
POST
/api/v4/users/{id}/unfollow
Unfollow a user
postApiV4UsersIdUnfollow 1 param → 201404400
GET
/api/v4/users/{id}/following
List all accounts followed by a user
getApiV4UsersIdFollowing 3 params → 200404400
GET
/api/v4/users/{id}/followers
List all accounts that follow a user
getApiV4UsersIdFollowers 3 params → 200404400
PATCH
/api/v4/users/{id}/disable_two_factor
Disable two-factor authentication for a user
patchApiV4UsersIdDisableTwoFactor 1 param → 200404400
DELETE
/api/v4/users/{id}/identities/{provider}
Delete authentication identity from a user
deleteApiV4UsersIdIdentitiesProvider 2 params → 200404400
POST
/api/v4/users/{id}/emails
Add an email address for a user
postApiV4UsersIdEmails 1 param body → 201404400
GET
/api/v4/users/{id}/emails
List all email addresses for a user
getApiV4UsersIdEmails 3 params → 200404400
DELETE
/api/v4/users/{id}/emails/{email_id}
Delete an email address for a user
deleteApiV4UsersIdEmailsEmailId 2 params → 200404400
POST
/api/v4/users/{id}/activate
Reactivate a user
postApiV4UsersIdActivate 1 param → 201404400
POST
/api/v4/users/{id}/approve
Approve access to a user
postApiV4UsersIdApprove 1 param → 201404400
POST
/api/v4/users/{id}/reject
Reject access to a user
postApiV4UsersIdReject 1 param → 201404400
POST
/api/v4/users/{id}/deactivate
Deactivate a user
postApiV4UsersIdDeactivate 1 param → 201404400
POST
/api/v4/users/{id}/block
Block access to a user
postApiV4UsersIdBlock 1 param → 201404400
POST
/api/v4/users/{id}/unblock
Unblock access to a user
postApiV4UsersIdUnblock 1 param → 201404400
POST
/api/v4/users/{id}/ban
Ban a user
postApiV4UsersIdBan 1 param → 201404400
POST
/api/v4/users/{id}/unban
Unban a user
postApiV4UsersIdUnban 1 param → 201404400
GET
/api/v4/users/{user_id}/memberships
List all project and group memberships for a user
getApiV4UsersUserIdMemberships 4 params → 200404400
GET
/api/v4/users/{id}/associations_count
Retrieve association counts for a user
getApiV4UsersIdAssociationsCount 1 param → 200404400
GET
/api/v4/user
Retrieve current user details
getApiV4User → 200401403
GET
/api/v4/user/emails
List all email addresses for a user
getApiV4UserEmails 2 params → 200400
POST
/api/v4/user/emails
Add an email address
postApiV4UserEmails body → 201400
PUT
/api/v4/user/{user_id}/credit_card_validationdeprecated
Update a user's creditcardvalidation
putApiV4UserUserIdCreditCardValidation 1 param body → 200404400
POST
/api/v4/user/support_pin
Create a Support PIN
postApiV4UserSupportPin → 201400
GET
/api/v4/user/support_pin
Retrieve Support PIN
getApiV4UserSupportPin → 200401403404
PUT
/api/v4/user/preferences
Update your user preferences
putApiV4UserPreferences body → 200400
GET
/api/v4/user/preferences
Retrieve your user preferences
getApiV4UserPreferences → 200401403
GET
/api/v4/user/emails/{email_id}
Retrieve details on an email address
getApiV4UserEmailsEmailId 1 param → 200404400
DELETE
/api/v4/user/emails/{email_id}
Delete an email address
deleteApiV4UserEmailsEmailId 1 param → 204404400
GET
/api/v4/user/activities
List all activity for a user
getApiV4UserActivities 3 params → 200400
PUT
/api/v4/user/status
Set a user status
putApiV4UserStatus body → 200400
PATCH
/api/v4/user/status
Update a user status
patchApiV4UserStatus body → 200400
GET
/api/v4/user/status
Retrieve your user status
getApiV4UserStatus → 200401403
POST
/api/v4/user/runners
Create a runner owned by currently authenticated user
postApiV4UserRunners body → 201400403
GET
/api/v4/user_counts
Return the user specific counts
getApiV4UserCounts → 200401

Schemas 27

The contract defines 27 schemas that model the data the API accepts and returns. The most detailed are APIEntitiesUserWithAdmin (56 properties), APIEntitiesUserPublic (46 properties), postApiV4UsersRequest (35 properties), putApiV4UsersIdRequest (33 properties). Each schema is shown below with its type and property counts.

APIEntitiesCiRunnerRegistrationDetails
object
3 properties
APIEntitiesIdentity
object
3 properties
APIEntitiesUserWithAdmin
object
56 properties
APIEntitiesUserPreferences
object
7 properties
APIEntitiesUserCreditCardValidations
object
2 properties
APIEntitiesUserBasic
object
10 properties
APIEntitiesScimIdentity
object
3 properties
APIEntitiesCustomAttribute
object
2 properties
APIEntitiesUserCounts
object
5 properties
putApiV4UserUserIdCreditCardValidationRequest
object
10 properties 6 required
postApiV4UsersRequest
object
35 properties 3 required
APIEntitiesUser
object
27 properties
APIEntitiesUserActivity
object
3 properties
APIEntitiesUserPublic
object
46 properties
postApiV4UserRunnersRequest
object
13 properties 3 required
APIEntitiesUserSupportPin
object
2 properties
putApiV4UserStatusRequest
object
4 properties
APIEntitiesEmail
object
3 properties
patchApiV4UserStatusRequest
object
4 properties
postApiV4UserEmailsRequest
object
1 property 1 required
APIEntitiesUserAssociationsCount
object
4 properties
APIEntitiesMembership
object
4 properties
APIEntitiesUserStatus
object
5 properties
putApiV4UsersIdRequest
object
33 properties
postApiV4UsersIdEmailsRequest
object
2 properties 1 required
putApiV4UserPreferencesRequest
object
5 properties
APIEntitiesUserProfile
object
28 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

gitlab-users-api-openapi.yml Raw ↑

Other APIs GitLab publishes across the network.

GitLab Orbit gRPC API
GitLab GraphQL API
GitLab Applications API
GitLab Authorization API
GitLab Broadcast Messages API
GitLab Groups API
GitLab Metadata API
GitLab Project Webhooks API
GitLab Projects API
GitLab Tokens API
GitLab User Info API
GitLab Webhook Configuration API
Where this information came from

This is an independent, third-party profile of GitLab Users API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.