Use this API to manage deploy keys, deploy tokens, and code deployments to GitLab environments.

List all deploy keys

GET /api/v4/deploy_keys

Lists all deploy keys for the instance. Requires administrator access.

Parameters

NameTypeDescription
page
Query
IntegerPage number of results to retrieve
Default: 1
Example: 1
per_page
Query
IntegerNumber of items to list per page
Default: 20
Example: 20
public
Query
BooleanIf true, returns only deploy keys that are public
Default: false

Responses

CodeDescriptionSchema
200OKArray of APIEntitiesDeployKey
400Bad Request—
401Unauthorized—
403Forbidden—

Create a deploy key

POST /api/v4/deploy_keys

Creates a deploy key for the GitLab instance. Requires administrator access. This feature was introduced in GitLab 17.5.

Request body (application/json)

PropertyTypeDescription
expires_atString (date-time)Date when the deploy key expires. If omitted, the deploy key does not expire
key
Required
StringPublic key value of the deploy key
title
Required
StringTitle of the deploy key

Responses

CodeDescriptionSchema
201CreatedAPIEntitiesDeployKey
400Bad request—
401Unauthorized—
403Forbidden—

List all deploy tokens

GET /api/v4/deploy_tokens

Lists all deploy tokens for the instance.

Parameters

NameTypeDescription
page
Query
IntegerPage number of results to retrieve
Default: 1
Example: 1
per_page
Query
IntegerNumber of items to list per page
Default: 20
Example: 20
active
Query
BooleanIf true, returns only active deploy tokens

Responses

CodeDescriptionSchema
200OKArray of APIEntitiesDeployToken
400Bad Request—
401Unauthorized—
403Forbidden—

List all group deploy tokens

GET /api/v4/groups/{id}/deploy_tokens

Lists all group deploy tokens.

Parameters

NameTypeDescription
id
Path, required
Integer or stringID or URL-encoded path of the group
page
Query
IntegerPage number of results to retrieve
Default: 1
Example: 1
per_page
Query
IntegerNumber of items to list per page
Default: 20
Example: 20
active
Query
BooleanIf true, returns only active deploy tokens

Responses

CodeDescriptionSchema
200OKArray of APIEntitiesDeployToken
400Bad Request—
401Unauthorized—
403Forbidden—
404Not found—

Create a group deploy token

POST /api/v4/groups/{id}/deploy_tokens

Creates a group deploy token.

Parameters

NameTypeDescription
id
Path, required
Integer or stringID or URL-encoded path of the group

Request body (application/json)

PropertyTypeDescription
expires_atString (date-time)Date when the deploy token expires. If omitted, the deploy token does not expire
name
Required
StringName of the deploy token
scopes
Required
Array of stringsScopes of the deploy token. Must include at least one scope
usernameStringUsername for the deploy token. Defaults to gitlab+deploy-token-{n}

Responses

CodeDescriptionSchema
201CreatedAPIEntitiesDeployTokenWithToken
400Bad request—
401Unauthorized—
404Not found—

Retrieve a group deploy token

GET /api/v4/groups/{id}/deploy_tokens/{token_id}

Get a single group’s deploy token by ID. This feature was introduced in GitLab 14.9.

Parameters

NameTypeDescription
id
Path, required
Integer or stringID or URL-encoded path of the group
token_id
Path, required
IntegerID of the deploy token

Responses

CodeDescriptionSchema
200OKAPIEntitiesDeployToken
400Bad Request—
401Unauthorized—
404Not found—

Delete a group deploy token

DELETE /api/v4/groups/{id}/deploy_tokens/{token_id}

Deletes a group deploy token.

Parameters

NameTypeDescription
id
Path, required
Integer or stringID or URL-encoded path of the group
token_id
Path, required
IntegerID of the deploy token

Responses

CodeDescriptionSchema
204Resource deleted—
400Bad Request—
401Unauthorized—
404Not found—

List all deploy keys for project

GET /api/v4/projects/{id}/deploy_keys

Lists all deploy keys for a specified project.

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project
page
Query
IntegerPage number of results to retrieve
Default: 1
Example: 1
per_page
Query
IntegerNumber of items to list per page
Default: 20
Example: 20

Responses

CodeDescriptionSchema
200OKArray of APIEntitiesDeployKeysProject
400Bad Request—
401Unauthorized—
404Not found—

Add a deploy key for a project

POST /api/v4/projects/{id}/deploy_keys

Adds a deploy key for a specified project. If the deploy key already exists in another project, it is joined to the current project only if the original one is accessible by the same user.

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project

Request body (application/json)

PropertyTypeDescription
can_pushBooleanIf true, the deploy key can push to the project’s repository
expires_atString (date-time)Date when the deploy key expires. If omitted, the deploy key does not expire
key
Required
StringPublic key value of the deploy key
title
Required
StringTitle of the deploy key

Responses

CodeDescriptionSchema
201CreatedAPIEntitiesDeployKeysProject
400Bad request—
401Unauthorized—
404Not found—

Retrieve a deploy key

GET /api/v4/projects/{id}/deploy_keys/{key_id}

Retrieves a specified deploy key.

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project
key_id
Path, required
IntegerID of the deploy key

Responses

CodeDescriptionSchema
200OKAPIEntitiesDeployKeysProject
400Bad Request—
401Unauthorized—
404Not found—

Update a deploy key

PUT /api/v4/projects/{id}/deploy_keys/{key_id}

Updates a deploy key for a project.

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project
key_id
Path, required
IntegerID of the deploy key

Request body (application/json)

PropertyTypeDescription
can_pushBooleanIf true, the deploy key can push to the project’s repository. At least one of title, can_push must be provided
titleStringTitle of the deploy key. At least one of title, can_push must be provided

Responses

CodeDescriptionSchema
200OKAPIEntitiesDeployKey
400Bad request—
401Unauthorized—
403Forbidden—
404Not found—

Delete deploy key

DELETE /api/v4/projects/{id}/deploy_keys/{key_id}

FE version

Removes a deploy key from the project. If the deploy key is used only for this project, it’s deleted from the system.

Parameters

NameTypeDescription
key_id
Path, required
IntegerThe ID of the deploy key
id
Path, required
String or integerID or URL-encoded path of the project

Responses

CodeDescriptionSchema
204No Content—
400Bad Request—
401Unauthorized—
404Not found—

Enable a deploy key

POST /api/v4/projects/{id}/deploy_keys/{key_id}/enable

Enables a deploy key for a project so this can be used. Returns the enabled key, with a status code 201 when successful.

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project
key_id
Path, required
IntegerID of the deploy key

Responses

CodeDescriptionSchema
201CreatedAPIEntitiesDeployKey
400Bad Request—
401Unauthorized—
404Not found—

List all project deploy tokens

GET /api/v4/projects/{id}/deploy_tokens

Lists all project deploy tokens.

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project
page
Query
IntegerPage number of results to retrieve
Default: 1
Example: 1
per_page
Query
IntegerNumber of items to list per page
Default: 20
Example: 20
active
Query
BooleanIf true, returns only active deploy tokens

Responses

CodeDescriptionSchema
200OKArray of APIEntitiesDeployToken
400Bad Request—
401Unauthorized—
403Forbidden—
404Not found—

Create a project deploy token

POST /api/v4/projects/{id}/deploy_tokens

Creates a project deploy token.

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project

Request body (application/json)

PropertyTypeDescription
expires_atString (date-time)Date when the deploy token expires. If omitted, the deploy token does not expire
name
Required
StringName of the deploy token
scopes
Required
Array of stringsScopes of the deploy token. Must include at least one scope
usernameStringUsername for the deploy token. Defaults to gitlab+deploy-token-{n}

Responses

CodeDescriptionSchema
201CreatedAPIEntitiesDeployTokenWithToken
400Bad request—
401Unauthorized—
404Not found—

Retrieve a project deploy token

GET /api/v4/projects/{id}/deploy_tokens/{token_id}

Retrieves a project deploy token.

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project
token_id
Path, required
IntegerID of the deploy token

Responses

CodeDescriptionSchema
200OKAPIEntitiesDeployToken
400Bad Request—
401Unauthorized—
404Not found—

Delete a project deploy token

DELETE /api/v4/projects/{id}/deploy_tokens/{token_id}

Deletes a project deploy token.

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project
token_id
Path, required
IntegerID of the deploy token

Responses

CodeDescriptionSchema
204Resource deleted—
400Bad Request—
401Unauthorized—
404Not found—

List all project deployments

GET /api/v4/projects/{id}/deployments

Lists all deployments in a project.

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project
page
Query
IntegerPage number of results to retrieve
Default: 1
Example: 1
per_page
Query
IntegerNumber of items to list per page
Default: 20
Example: 20
order_by
Query
StringSort results by the specified field
Allowed values: id, iid, created_at, updated_at, finished_at
Default: id
sort
Query
StringSort results in ascending or descending order
Allowed values: asc, desc
Default: asc
updated_after
Query
String (date-time)Return deployments updated after the specified date. Expected in ISO 8601 format (2019-03-15T08:00:00Z)
updated_before
Query
String (date-time)Return deployments updated before the specified date. Expected in ISO 8601 format (2019-03-15T08:00:00Z)
finished_after
Query
String (date-time)Return deployments finished after the specified date. Expected in ISO 8601 format (2019-03-15T08:00:00Z)
finished_before
Query
String (date-time)Return deployments finished before the specified date. Expected in ISO 8601 format (2019-03-15T08:00:00Z)
environment
Query
StringName of the environment to filter deployments by
status
Query
StringFilter deployments by status
Allowed values: created, running, success, failed, canceled, skipped, blocked

Responses

CodeDescriptionSchema
200OKArray of APIEntitiesDeployment
400Bad request—
401Unauthorized—
404Not found—

Create a deployment

POST /api/v4/projects/{id}/deployments

Creates a deployment.

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project

Request body (application/json)

PropertyTypeDescription
environment
Required
StringName of the environment to create the deployment for
ref
Required
StringName of the branch or tag that is deployed
sha
Required
StringSHA of the commit that is deployed
status
Required
StringStatus of the deployment that is created
Allowed values: running, success, failed, canceled
Minimum length: 1
tag
Required
BooleanIf true, the deployed ref is a tag

Responses

CodeDescriptionSchema
201CreatedAPIEntitiesDeploymentExtended
400Bad request—
401Unauthorized—
404Not found—

Retrieve a deployment

GET /api/v4/projects/{id}/deployments/{deployment_id}

Retrieves a specified deployment.

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project
deployment_id
Path, required
IntegerID of the deployment

Responses

CodeDescriptionSchema
200OKAPIEntitiesDeploymentExtended
400Bad Request—
401Unauthorized—
404Not found—

Update a deployment

PUT /api/v4/projects/{id}/deployments/{deployment_id}

Updates a specified deployment.

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project
deployment_id
Path, required
IntegerID of the deployment

Request body (application/json)

PropertyTypeDescription
status
Required
StringNew status of the deployment
Allowed values: running, success, failed, canceled
Minimum length: 1

Responses

CodeDescriptionSchema
200OKAPIEntitiesDeploymentExtended
400Bad request—
401Unauthorized—
403Forbidden—
404Not found—

Delete a deployment

DELETE /api/v4/projects/{id}/deployments/{deployment_id}

Deletes a specified deployment that is not currently the last deployment for an environment or in a running state.

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project
deployment_id
Path, required
IntegerID of the deployment

Responses

CodeDescriptionSchema
204Deployment destroyed—
400“Cannot destroy running deployment” or “Deployment currently deployed to environment”—
403Forbidden—
404Not Found—

Approve or reject a deployment

POST /api/v4/projects/{id}/deployments/{deployment_id}/approval

Approves or rejects a protected deployment.

Parameters

NameTypeDescription
deployment_id
Path, required
IntegerThe ID of the deployment
id
Path, required
String or integerID or URL-encoded path of the project

Request body (application/json)

PropertyTypeDescription
commentStringA comment to go with the approval
represented_asStringThe user, group, or role represented by the approval
status
Required
StringThe status of the approval
Allowed values: approved, rejected
Minimum length: 1

Responses

CodeDescriptionSchema
201CreatedAPIEntitiesDeploymentApproval
400Bad request—
401Unauthorized—
403Forbidden—
404Not found—

List all merge requests associated with a deployment

GET /api/v4/projects/{id}/deployments/{deployment_id}/merge_requests

Lists all merge requests shipped with a specified deployment.

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project
page
Query
IntegerPage number of results to retrieve
Default: 1
Example: 1
per_page
Query
IntegerNumber of items to list per page
Default: 20
Example: 20
deployment_id
Path, required
IntegerID of the deployment
author_id
Query
IntegerReturns merge requests created by the given user id. Combine with scope=all or scope=assigned_to_me. Mutually exclusive with author_username
author_username
Query
StringReturns merge requests created by the given username. Mutually exclusive with author_id
assignee_id
Query
Integer or stringReturns merge requests assigned to the given user id. None returns unassigned merge requests. Any returns merge requests with an assignee. Mutually exclusive with assignee_username
assignee_username
Query
Array of stringsReturns merge requests assigned to the given usernames. Instances without a license accept only one username. Mutually exclusive with assignee_id
reviewer_username
Query
StringReturns merge requests which have the user as a reviewer with the given username. Introduced in GitLab 13.8. Mutually exclusive with reviewer_id
labels
Query
Array of stringsReturns merge requests matching a comma-separated list of labels. None lists all merge requests with no labels. Any lists all merge requests with at least one label. Predefined names are case-insensitive
milestone
Query
StringReturns merge requests for a specific milestone. None returns merge requests with no milestone. Any returns merge requests that have an assigned milestone
my_reaction_emoji
Query
StringReturns merge requests reacted by the authenticated user by the given emoji. None returns issues not given a reaction. Any returns issues given at least one reaction
reviewer_id
Query
Integer or stringReturns merge requests which have the user as a reviewer with the given user id. None returns merge requests with no reviewers. Any returns merge requests with any reviewer. Mutually exclusive with reviewer_username
state
Query
StringFilter merge requests by state. Filtering by locked usually returns no results, because the locked state is short-lived
Allowed values: opened, closed, locked, merged, all
Default: all
order_by
Query
StringReturns merge requests ordered by created_at, label_priority, milestone_due, popularity, priority, title, updated_at or merged_at fields. Introduced in GitLab 14.8. merged_at introduced in GitLab 17.2
Allowed values: created_at, label_priority, milestone_due, popularity, priority, title, updated_at, merged_at
Default: created_at
sort
Query
StringSort results in ascending or descending order
Allowed values: asc, desc
Default: desc
with_labels_details
Query
BooleanIf true, the response returns more details for each label in the labels field: name, color, description, description_html, text_color
Default: false
with_merge_status_recheck
Query
BooleanIf true, this projection requests (but does not guarantee) an asynchronous recalculation of the merge_status field. GitLab ignores this attribute when it is requested by users without the Developer, Maintainer, or Owner role
Default: false
created_after
Query
String (date-time)Return merge requests created on or after the specified time
Example: 2019-03-15T08:00:00Z
created_before
Query
String (date-time)Return merge requests created on or before the specified time
Example: 2019-03-15T08:00:00Z
updated_after
Query
String (date-time)Return merge requests updated on or after the specified time
Example: 2019-03-15T08:00:00Z
updated_before
Query
String (date-time)Return merge requests updated on or before the specified time
Example: 2019-03-15T08:00:00Z
merged_after
Query
String (date-time)Return merge requests merged on or after the specified time
Example: 2019-03-15T08:00:00Z
merged_before
Query
String (date-time)Return merge requests merged on or before the specified time
Example: 2019-03-15T08:00:00Z
view
Query
StringIf simple, returns the iid, URL, title, description, and basic state of merge request
Allowed values: simple
scope
Query
StringReturn merge requests for the given scope. reviews_for_me returns merge requests where the current user is assigned as a reviewer. Default is all
Allowed values: created-by-me, assigned-to-me, created_by_me, assigned_to_me, reviews_for_me, all
source_branch
Query
StringReturn merge requests with the given source branch
source_project_id
Query
IntegerReturn merge requests with the given source project ID
target_branch
Query
StringReturn merge requests with the given target branch
search
Query
StringSearch merge requests against their title and description. Combine with the in attribute
in
Query
StringModify the scope of the search attribute to title, description, or title,description. If omitted, defaults to title,description
Example: title,description
wip
Query
StringFilter merge requests by their wip status. yes returns only draft merge requests, no returns non-draft merge requests. Deprecated in GitLab 19.0. Use draft instead. Mutually exclusive with draft
Allowed values: yes, no
draft
Query
BooleanIf true, returns only draft merge requests. If false, returns only non-draft merge requests. Mutually exclusive with wip
not
Query
ObjectReturn merge requests that do not match the parameters supplied. Accepts: labels, milestone, author_id, author_username, assignee_id, assignee_username, reviewer_id, reviewer_username, my_reaction_emoji
not[author_id]
Query
Integer<Negated> Returns merge requests created by the given user id. Combine with scope=all or scope=assigned_to_me. Mutually exclusive with not[author_username]
not[author_username]
Query
String<Negated> Returns merge requests created by the given username. Mutually exclusive with not[author_id]
not[assignee_id]
Query
Integer or string<Negated> Returns merge requests assigned to the given user id. None returns unassigned merge requests. Any returns merge requests with an assignee. Mutually exclusive with not[assignee_username]
not[assignee_username]
Query
Array of strings<Negated> Returns merge requests assigned to the given usernames. Instances without a license accept only one username. Mutually exclusive with not[assignee_id]
not[reviewer_username]
Query
String<Negated> Returns merge requests which have the user as a reviewer with the given username. Introduced in GitLab 13.8. Mutually exclusive with not[reviewer_id]
not[labels]
Query
Array of strings<Negated> Returns merge requests matching a comma-separated list of labels. None lists all merge requests with no labels. Any lists all merge requests with at least one label. Predefined names are case-insensitive
not[milestone]
Query
String<Negated> Returns merge requests for a specific milestone. None returns merge requests with no milestone. Any returns merge requests that have an assigned milestone
not[my_reaction_emoji]
Query
String<Negated> Returns merge requests reacted by the authenticated user by the given emoji. None returns issues not given a reaction. Any returns issues given at least one reaction
not[reviewer_id]
Query
Integer<Negated> Returns merge requests which have the user as a reviewer with the given user id. Mutually exclusive with not[reviewer_username]
deployed_before
Query
String (date-time)Return merge requests deployed before the specified time
Example: 2019-03-15T08:00:00Z
deployed_after
Query
String (date-time)Return merge requests deployed after the specified time
Example: 2019-03-15T08:00:00Z
environment
Query
StringReturn merge requests deployed to the given environment
Example: production
merge_user_id
Query
IntegerReturns merge requests which have been merged by the user with the given user id. Introduced in GitLab 17.0. Mutually exclusive with merge_user_username
merge_user_username
Query
StringReturns merge requests which have been merged by the user with the given username. Introduced in GitLab 17.0. Mutually exclusive with merge_user_id

Responses

CodeDescriptionSchema
200OKArray of APIEntitiesMergeRequestBasic
400Bad Request—
401Unauthorized—
404Not found—

List all project deploy keys for a user

GET /api/v4/users/{user_id}/project_deploy_keys

Lists all project deploy keys accessible to a specified user. Only keys enabled in projects common to the specified user and the authenticated user are listed, where both have at least the Maintainer role.

Parameters

NameTypeDescription
user_id
Path, required
StringID or username of the user
page
Query
IntegerPage number of results to retrieve
Default: 1
Example: 1
per_page
Query
IntegerNumber of items to list per page
Default: 20
Example: 20

Responses

CodeDescriptionSchema
200OKArray of APIEntitiesDeployKey
400Bad Request—
404Not Found—

Schemas

Objects returned by the operations above and objects nested in their request bodies.

APIEntitiesCiJob

PropertyTypeDescription
allow_failureBoolean—
archivedBooleanExample: false
artifactsArray of APIEntitiesCiJobArtifact—
artifacts_expire_atString (date-time)Example: 2016-01-19T09:05:50.355Z
artifacts_fileAPIEntitiesCiJobArtifactFile—
commitAPIEntitiesCommit—
coverageNumber (float)Example: 98.29
created_atString (date-time)Example: 2015-12-24T15:51:21.880Z
durationNumber (float)Time spent running
Example: 0.465
erased_atString (date-time)Example: 2015-12-24T18:00:29.728Z
failure_reasonStringExample: script_failure
finished_atString (date-time)Example: 2015-12-24T17:54:31.198Z
idInteger (int64)Example: 1
nameStringExample: deploy_to_production
pipelineAPIEntitiesCiPipelineBasic—
projectObject—
project.ci_job_token_scope_enabledStringExample: false
queued_durationNumber (float)Time spent enqueued
Example: 0.123
refStringExample: main
runnerAPIEntitiesCiRunner—
runner_managerAPIEntitiesCiRunnerManager—
stageStringExample: deploy
started_atString (date-time)Example: 2015-12-24T17:54:30.733Z
statusStringExample: waiting_for_resource
tagBoolean—
tag_listArray of stringsExample: ["ubuntu18","docker runner"]
userAPIEntitiesUser—
web_urlStringExample: https://example.com/foo/bar/-/jobs/1

APIEntitiesCiJobArtifact

PropertyTypeDescription
file_formatStringAllowed values: raw, zip, gzip
Example: zip
file_typeStringAllowed values: archive, metadata, trace, junit, sast, dependency_scanning, container_scanning, dast, codequality, license_scanning, performance, metrics, metrics_referee, network_referee, lsif, dotenv, cobertura, terraform, accessibility, cluster_applications, secret_detection, requirements, coverage_fuzzing, browser_performance, load_performance, api_fuzzing, cluster_image_scanning, cyclonedx, requirements_v2, annotations, repository_xray, jacoco, sarif
Example: archive
filenameStringExample: artifacts.zip
sizeIntegerExample: 1000

APIEntitiesCiJobArtifactFile

PropertyTypeDescription
filenameStringExample: artifacts.zip
sizeIntegerExample: 1000

APIEntitiesCiPipelineBasic

PropertyTypeDescription
created_atString (date-time)Timestamp when the pipeline was created
Example: 2022-10-21T16:49:48.000+02:00
idInteger (int64)ID of the pipeline
Example: 1
iidIntegerInternal ID of the pipeline
Example: 2
project_idInteger (int64)ID of the project of the pipeline
Example: 3
refStringGit reference of the pipeline
Example: feature-branch
shaStringSHA of the commit the pipeline runs for
Example: 0ec9e58fdfca6cdd6652c083c9edb53abc0bad52
sourceStringSource that triggered the pipeline
Example: push
statusStringStatus of the pipeline
Example: success
updated_atString (date-time)Timestamp when the pipeline was last updated
Example: 2022-10-21T16:49:48.000+02:00
web_urlStringURL of the pipeline in the GitLab UI
Example: https://gitlab.example.com/gitlab-org/gitlab-foss/-/pipelines/61

APIEntitiesCiRunner

PropertyTypeDescription
activeBooleanIf true, the runner is allowed to receive jobs. Deprecated. Use paused instead
Example: true
created_atString (date-time)Example: 2025-05-03T00:00:00.000Z
created_byAPIEntitiesUserBasic—
descriptionStringExample: test-1-20150125
idInteger (int64)Example: 8
ip_addressStringAlways null. Deprecated. Use the runner manager fields in the GraphQL API instead
Example: 127.0.0.1
is_sharedBooleanExample: true
job_execution_statusStringAllowed values: active, idle
Example: idle
nameStringExample: test
onlineBooleanExample: true
pausedBooleanExample: false
runner_typeStringAllowed values: instance_type, group_type, project_type
Example: instance_type
statusStringExample: online

APIEntitiesCiRunnerManager

PropertyTypeDescription
architectureStringExample: amd64
contacted_atStringExample: 2023-10-24T01:27:06.549Z
created_atStringExample: 2023-10-24T01:27:06.549Z
idInteger (int64)Example: 8
ip_addressStringExample: 127.0.0.1
job_execution_statusStringAllowed values: active, idle
Example: idle
platformStringExample: linux
revisionStringExample: 91a27b2a
statusStringExample: online
system_idStringExample: runner-1
versionStringExample: 16.11.0

APIEntitiesCommit

PropertyTypeDescription
author_emailStringEmail address of the commit author
Example: john@example.com
author_nameStringName of the commit author
Example: John Smith
authored_dateString (date-time)Date and time when the commit was authored
Example: 2012-05-28T04:42:42-07:00
committed_dateString (date-time)Date and time when the commit was committed
Example: 2012-05-28T04:42:42-07:00
committer_emailStringEmail address of the committer
Example: jack@example.com
committer_nameStringName of the committer
Example: Jack Smith
created_atString (date-time)Date and time when the commit was created. Identical to committed_date
Example: 2017-07-26T11:08:53.000+02:00
extended_trailersObjectGit trailers parsed from the commit message, with every value for each key
Example: {"Signed-off-by":["John Doe \u003cjohndoe@gitlab.com\u003e","Jane Doe \u003cjanedoe@gitlab.com\u003e"]}
idStringFull SHA of the commit
Example: 2695effb5807a22ff3d138d593fd856244e155e7
messageStringFull commit message
Example: Initial commit
parent_idsArray of stringsSHAs of the parent commits
Example: ["2a4b78934375d7f53875269ffd4f45fd83a84ebe"]
short_idStringShort SHA of the commit
Example: 2695effb
titleStringTitle of the commit message
Example: Initial commit
trailersObjectGit trailers parsed from the commit message. Duplicate keys include the last value only
Example: {"Merged-By":"Jane Doe janedoe@gitlab.com"}
web_urlStringURL to view the commit in the GitLab UI
Example: https://gitlab.example.com/janedoe/gitlab-foss/-/commit/ed899a2f4b50b4370feeea94676502b42383c746

APIEntitiesCustomAttribute

PropertyTypeDescription
keyStringExample: foo
valueStringExample: bar

APIEntitiesDeployKey

PropertyTypeDescription
created_atString (date-time)Creation date and time of the key in ISO 8601 format
Example: 2015-09-03T07:24:44.627Z
expires_atString (date-time)Expiration date and time of the key in ISO 8601 format
Example: 2020-09-03T07:24:44.627Z
fingerprintStringExample: 4a:9d:64:15:ed:3a:e6:07:6e:89:36:b3:3b:03:05:d9
fingerprint_sha256StringExample: Jrs3LD1Ji30xNLtTVf9NDCj7kkBgPBb2pjvTZ3HfIgU
idInteger (int64)ID of the key
Example: 1
keyStringExample: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDNJAkI3Wdf0r13c8a5pEExB2YowPWCSVzfZV22pNBc1CuEbyYLHpUyaD0GwpGvFdx2aP7lMEk35k6Rz3ccBF6jRaVJyhsn5VNnW92PMpBJ/P1UebhXwsFHdQf5rTt082cSxWuk61kGWRQtk4ozt/J2DF/dIUVaLvc+z4HomT41fQ==
last_used_atString (date-time)Last usage date and time of the key in ISO 8601 format
Example: 2020-09-03T07:24:44.627Z
projects_with_readonly_accessArray of APIEntitiesProjectIdentity—
projects_with_write_accessArray of APIEntitiesProjectIdentity—
titleStringTitle of the key
Example: Sample key 25
usage_typeStringUsage type of the key: auth, signing, or auth_and_signing. Deploy keys always use auth_and_signing
Example: auth

APIEntitiesDeployKeysProject

PropertyTypeDescription
can_pushBoolean—
created_atString (date-time)Creation date and time of the key in ISO 8601 format
Example: 2015-09-03T07:24:44.627Z
expires_atString (date-time)Expiration date and time of the key in ISO 8601 format
Example: 2020-09-03T07:24:44.627Z
fingerprintStringExample: 4a:9d:64:15:ed:3a:e6:07:6e:89:36:b3:3b:03:05:d9
fingerprint_sha256StringExample: Jrs3LD1Ji30xNLtTVf9NDCj7kkBgPBb2pjvTZ3HfIgU
idInteger (int64)ID of the key
Example: 1
keyStringExample: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDNJAkI3Wdf0r13c8a5pEExB2YowPWCSVzfZV22pNBc1CuEbyYLHpUyaD0GwpGvFdx2aP7lMEk35k6Rz3ccBF6jRaVJyhsn5VNnW92PMpBJ/P1UebhXwsFHdQf5rTt082cSxWuk61kGWRQtk4ozt/J2DF/dIUVaLvc+z4HomT41fQ==
last_used_atString (date-time)Last usage date and time of the key in ISO 8601 format
Example: 2020-09-03T07:24:44.627Z
projects_with_readonly_accessArray of APIEntitiesProjectIdentity—
projects_with_write_accessArray of APIEntitiesProjectIdentity—
titleStringTitle of the key
Example: Sample key 25
usage_typeStringUsage type of the key: auth, signing, or auth_and_signing. Deploy keys always use auth_and_signing
Example: auth

APIEntitiesDeployment

PropertyTypeDescription
created_atString (date-time)Example: 2016-08-11T11:32:35.444Z
deployableAPIEntitiesCiJob—
environmentAPIEntitiesEnvironmentBasic—
idInteger (int64)Example: 41
iidIntegerExample: 1
refStringExample: main
shaStringExample: 99d03678b90d914dbb1b109132516d71a4a03ea8
statusStringExample: created
updated_atString (date-time)Example: 2016-08-11T11:32:35.444Z
userAPIEntitiesUserBasic—

APIEntitiesDeploymentApproval

PropertyTypeDescription
commentStringExample: Looks good to me
created_atString (date-time)Example: 2022-02-24T20:22:30.097Z
statusStringExample: approved
userAPIEntitiesUserBasic—

APIEntitiesDeploymentApprovalSummary

PropertyTypeDescription
rulesArray of APIEntitiesDeploymentApprovalSummaryRule—

APIEntitiesDeploymentApprovalSummaryRule

PropertyTypeDescription
access_levelIntegerExample: 40
access_level_descriptionStringExample: Maintainers
deployment_approvalsArray of APIEntitiesDeploymentApproval—
group_idInteger (int64)Example: 3
required_approvalsIntegerExample: 1
user_idInteger (int64)Example: 2

APIEntitiesDeploymentExtended

PropertyTypeDescription
approval_summaryAPIEntitiesDeploymentApprovalSummary—
approvalsArray of APIEntitiesDeploymentApproval—
created_atString (date-time)Example: 2016-08-11T11:32:35.444Z
deployableAPIEntitiesCiJob—
environmentAPIEntitiesEnvironmentBasic—
idInteger (int64)Example: 41
iidIntegerExample: 1
pending_approval_countIntegerExample: 0
refStringExample: main
shaStringExample: 99d03678b90d914dbb1b109132516d71a4a03ea8
statusStringExample: created
updated_atString (date-time)Example: 2016-08-11T11:32:35.444Z
userAPIEntitiesUserBasic—

APIEntitiesDeployToken

PropertyTypeDescription
expiredBoolean—
expires_atString (date-time)Example: 2020-02-14T00:00:00.000Z
idInteger (int64)Example: 1
nameStringExample: MyToken
revokedBoolean—
scopesArrayExample: ["read_repository"]
usernameStringExample: gitlab+deploy-token-1

APIEntitiesDeployTokenWithToken

PropertyTypeDescription
expiredBoolean—
expires_atString (date-time)Example: 2020-02-14T00:00:00.000Z
idInteger (int64)Example: 1
nameStringExample: MyToken
revokedBoolean—
scopesArrayExample: ["read_repository"]
tokenStringExample: jMRvtPNxrn3crTAGukpZ
usernameStringExample: gitlab+deploy-token-1

APIEntitiesEnvironmentBasic

PropertyTypeDescription
created_atString (date-time)Example: 2019-05-25T18:55:13.252Z
external_urlStringExample: https://deploy.gitlab.example.com
idInteger (int64)Example: 1
nameStringExample: deploy
slugStringExample: deploy
updated_atString (date-time)Example: 2019-05-25T18:55:13.252Z

APIEntitiesIssuableReferences

PropertyTypeDescription
fullStringExample: test&6
relativeStringExample: &6
shortStringExample: &6

APIEntitiesIssuableTimeStats

PropertyTypeDescription
human_time_estimateStringExample: 3h 30m
human_total_time_spentStringExample: 1h
time_estimateIntegerExample: 12600
total_time_spentIntegerExample: 3600

APIEntitiesMergeRequestAuthor

PropertyTypeDescription
avatar_pathStringExample: /user/avatar/28/The-Big-Lebowski-400-400.png
avatar_urlStringURL of the user’s avatar
Example: https://gravatar.com/avatar/1
botBooleanIf true, the author is a bot
Example: false
custom_attributesArray of APIEntitiesCustomAttribute—
idInteger (int64)ID of the user
Example: 1
lockedBooleanIf true, the user account is locked, and the user cannot sign in until the lock expires or an administrator unlocks the account
nameStringName of the user. For a bot user, **** if the current user cannot read the bot’s project or group
Example: Administrator
public_emailStringPublic email address of the user
Example: john@example.com
stateStringState of the user account. Possible values: active, blocked, ldap_blocked, blocked_pending_approval, banned, or deactivated
Example: active
usernameStringUsername of the user
Example: admin
web_urlStringURL of the user’s profile
Example: https://gitlab.example.com/root

APIEntitiesMergeRequestBasic

PropertyTypeDescription
allow_collaborationBooleanIf true, the fork allows commits from members who can merge to the target branch. Returned only for merge requests from forks
allow_maintainer_to_pushBooleanReturned only for merge requests from forks. Deprecated. Use allow_collaboration instead
assigneeAPIEntitiesUserBasicFirst user assigned to the merge request. Deprecated. Use assignees instead
assigneesArray of APIEntitiesUserBasicUsers assigned to the merge request
authorAPIEntitiesMergeRequestAuthorUser who created the merge request
blocking_discussions_resolvedBooleanIf true, no unresolved threads block the merge. Always true if the project does not require all threads to be resolved before merge
closed_atString (date-time)Timestamp of when the merge request was closed
Example: 2022-01-31T15:10:45.080Z
closed_byAPIEntitiesUserBasicUser who closed the merge request. null if the merge request is not closed
created_atString (date-time)Example: 2022-08-17T12:46:35.053Z
descriptionStringExample: Repellendus impedit et vel velit dignissimos.
description_htmlStringDescription of the merge request rendered as HTML. Returned only if render_html is true
detailed_merge_statusStringDetailed merge status of the merge request. Accounts for every check that can block a merge. Can be approvals_syncing (approvals are syncing), checking (Git is testing whether a valid merge is possible), ci_must_pass (a CI/CD pipeline must succeed before merge), ci_still_running (a CI/CD pipeline is still running), commits_status (the source branch must exist and contain commits), conflict (conflicts exist between the source and target branches), discussions_not_resolved (all discussions must be resolved before merge), draft_status (the merge request is a draft), jira_association_missing (the title or description must reference a Jira issue), locked_lfs_files (LFS files locked by other users must be unlocked before merge), locked_paths (paths locked by other users must be unlocked before merging to the default branch), merge_request_blocked (blocked by another merge request), merge_time (cannot be merged until after the specified time), mergeable (the branch can merge cleanly into the target branch), need_rebase (the merge request must be rebased), not_approved (approval is required before merge), not_open (the merge request must be open before merge), preparing (the merge request diff is being created), requested_changes (reviewers have requested changes), security_policy_pipeline_check (when security policies are enforced, all pipelines for the latest commit must succeed before merge), security_policy_violations (all security policies must be satisfied), status_checks_must_pass (all status checks must pass before merge), title_regex (the title must match the regular expression set in the project settings), or unchecked (Git has not yet tested whether a valid merge is possible)
Example: mergeable
discussion_lockedBooleanIf true, discussions are locked. Only project members can add, edit or resolve comments in locked discussions
downvotesIntegerNumber of downvotes for the merge request
draftBooleanIf true, the merge request is a draft
force_remove_source_branchBooleanIf true, the source branch is forced to be deleted after merge
has_conflictsBooleanIf true, the merge request has conflicts and cannot merge. false unless merge_status is cannot_be_merged
idInteger (int64)Example: 84
iidIntegerExample: 14
importedBooleanIf true, the merge request was imported
imported_fromStringSource of the import, such as bitbucket
Example: bitbucket
labelsArray of stringsNames of the labels assigned to the merge request, sorted by name. If with_labels_details is true, an array of label objects with id, name, color, text_color, description, description_html and archived instead
merge_afterString (date-time)If set, timestamp after which the merge request can be merged. Introduced in GitLab 17.8
Example: 2022-01-31T15:10:45.080Z
merge_commit_shaStringSHA of the merge commit. null until the merge request is merged
Example: 1234abcd
merge_statusStringStatus of the merge request. Can be unchecked, checking, can_be_merged, cannot_be_merged or cannot_be_merged_recheck. Affects has_conflicts. Deprecated. Use detailed_merge_status instead
Example: unchecked
merge_userAPIEntitiesUserBasicUser who merged the merge request or set it to auto-merge, or null
merge_when_pipeline_succeedsBooleanIf true, the merge request is set to auto-merge
merged_atString (date-time)Timestamp of when the merge request was merged
Example: 2022-01-31T15:10:45.080Z
merged_byAPIEntitiesUserBasicUser who merged the merge request or set it to auto-merge. Deprecated. Use merge_user instead
milestoneAPIEntitiesMilestoneMilestone assigned to the merge request
prepared_atString (date-time)Timestamp of when the merge request was prepared. Set one time, after the diff is created, pipeline creation and the mergeability check are started, Git LFS objects are linked, and notifications are sent. Not updated when more changes are added
Example: 2022-01-31T15:10:45.080Z
project_idInteger (int64)Example: 4
referenceStringInternal reference of the merge request, in short format. Deprecated. Use references instead
Example: !1
referencesAPIEntitiesIssuableReferencesInternal references of the merge request: short, relative and full. When fetched from the project of the merge request, relative matches short. When fetched from a project or group in another namespace, relative matches full
reviewersArray of APIEntitiesUserBasicReviewers of the merge request
shaStringSHA of the head commit of the source branch
Example: 1234abcd
should_remove_source_branchBooleanIf true, the source branch is deleted after merge
source_branchStringName of the source branch
source_project_idInteger (int64)ID of the source project. Equal to target_project_id, unless the merge request comes from a fork
squashBooleanIf true, squash commits when merging. Project squash settings can override this value. Use squash_on_merge to take them into account
squash_commit_shaStringSHA of the squash commit. Empty until the merge request is merged
Example: 1234abcd
squash_on_mergeBooleanIf true, commits are squashed on merge
stateStringExample: closed
target_branchStringName of the target branch
target_project_idInteger (int64)ID of the target project
task_completion_statusAPIEntitiesTaskCompletionStatusCompletion status of the task list: count and completed_count
time_statsAPIEntitiesIssuableTimeStatsTime tracking statistics of the merge request: time_estimate, total_time_spent, human_time_estimate and human_total_time_spent
titleStringExample: Impedit et ut et dolores vero provident ullam est
title_htmlStringTitle of the merge request rendered as HTML. Returned only if render_html is true
updated_atString (date-time)Example: 2022-11-14T17:22:01.470Z
upvotesIntegerNumber of upvotes for the merge request
user_notes_countIntegerNumber of user comments on the merge request
web_urlStringWeb URL of the merge request
Example: https://gitlab.example.com/my-group/my-project/-/merge_requests/1
work_in_progressBooleanIf true, the merge request is a draft. Deprecated. Use draft instead

APIEntitiesMilestone

PropertyTypeDescription
created_atString—
descriptionString—
due_dateString—
expiredBoolean—
group_idString—
idInteger (int64)—
iidInteger (int64)—
project_idInteger (int64)—
start_dateString—
stateString—
titleString—
updated_atString—
web_urlString—

APIEntitiesProjectIdentity

PropertyTypeDescription
created_atString (date-time)Example: 2020-05-07T04:27:17.016Z
descriptionStringExample: desc
idInteger (int64)Example: 1
nameStringExample: project1
name_with_namespaceStringExample: John Doe / project1
pathStringExample: project1
path_with_namespaceStringExample: namespace1/project1

APIEntitiesTaskCompletionStatus

PropertyTypeDescription
completed_countIntegerExample: 3
countIntegerExample: 5

APIEntitiesUser

PropertyTypeDescription
avatar_pathStringExample: /user/avatar/28/The-Big-Lebowski-400-400.png
avatar_urlStringURL of the user’s avatar
Example: https://gravatar.com/avatar/1
bioStringBiography of the user
botBoolean—
created_atString (date-time)Creation date and time of the user account in ISO 8601 format
custom_attributesArray of APIEntitiesCustomAttribute—
discordStringDiscord user ID of the user
followersString—
followingString—
githubStringGitHub username of the user
idInteger (int64)ID of the user
Example: 1
is_followedString—
job_titleStringJob title of the user
linkedinStringLinkedIn username of the user
local_timeString—
locationStringLocation of the user
lockedBooleanIf true, the user account is locked, and the user cannot sign in until the lock expires or an administrator unlocks the account
nameStringName of the user. For a bot user, **** if the current user cannot read the bot’s project or group
Example: Administrator
organizationStringOrganization of the user
pronounsStringPronouns of the user
public_emailStringPublic email address of the user
Example: john@example.com
stateStringState of the user account. Possible values: active, blocked, ldap_blocked, blocked_pending_approval, banned, or deactivated
Example: active
twitterStringTwitter username of the user
usernameStringUsername of the user
Example: admin
web_urlStringURL of the user’s profile
Example: https://gitlab.example.com/root
website_urlStringWebsite of the user
work_informationString—

APIEntitiesUserBasic

PropertyTypeDescription
avatar_pathStringExample: /user/avatar/28/The-Big-Lebowski-400-400.png
avatar_urlStringURL of the user’s avatar
Example: https://gravatar.com/avatar/1
custom_attributesArray of APIEntitiesCustomAttribute—
idInteger (int64)ID of the user
Example: 1
lockedBooleanIf true, the user account is locked, and the user cannot sign in until the lock expires or an administrator unlocks the account
nameStringName of the user. For a bot user, **** if the current user cannot read the bot’s project or group
Example: Administrator
public_emailStringPublic email address of the user
Example: john@example.com
stateStringState of the user account. Possible values: active, blocked, ldap_blocked, blocked_pending_approval, banned, or deactivated
Example: active
usernameStringUsername of the user
Example: admin
web_urlStringURL of the user’s profile
Example: https://gitlab.example.com/root