Use this API to manage CI/CD pipelines and the jobs they run.

List pipelines triggered by the authenticated user

GET /api/v4/pipelines

Lists recently created pipelines across all projects that were triggered by the authenticated user. By default, child pipelines are not included in the results. To return child pipelines, set source to parent_pipeline. Pipelines from projects the user can no longer access are not included. The merge_request field is included only for merge request pipelines whose merge request is visible to the user. This endpoint only supports keyset pagination, and returns up to 100 records per page, 20 by default. To retrieve the next page of results, use the URL in the Link response header. This feature was introduced in GitLab 19.3.

Parameters

NameTypeDescription
source
Query
StringThe source of pipelines
Allowed values: unknown, push, web, trigger, schedule, api, external, pipeline, chat, webide, merge_request_event, external_pull_request_event, parent_pipeline, ondemand_dast_scan, ondemand_dast_validation, security_orchestration_policy, container_registry_push, duo_workflow, pipeline_execution_policy_schedule, dependency_management_security_update
Example: push
created_before
Query
String (date-time)Return pipelines created before the specified datetime. Format: ISO 8601 YYYY-MM-DDTHH:MM:SSZ
Example: 2015-12-24T15:51:21.880Z
created_after
Query
String (date-time)Return pipelines created after the specified datetime. Format: ISO 8601 YYYY-MM-DDTHH:MM:SSZ
Example: 2015-12-24T15:51:21.880Z
order_by
Query
StringReturn pipelines ordered by created_at
Allowed values: created_at
Default: created_at
Example: created_at
sort
Query
StringReturn pipelines sorted in desc order
Allowed values: desc
Default: desc
Example: desc
cursor
Query
StringCursor for obtaining the next set of records, from the Link header of a previous response
Example: eyJpZCI6IjE0In0
per_page
Query
IntegerNumber of items per page
Default: 20
Maximum: 100
Minimum: 1
Example: 20

Responses

CodeDescriptionSchema
200OKArray of APIEntitiesCiUserPipeline
400Bad Request—
401Unauthorized—

Create a pipeline

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

Creates a pipeline in the specified project.

Parameters

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
Example: 11

Request body (application/json)

PropertyTypeDescription
inputsObjectMap of inputs, as key-value pairs, to use when creating the pipeline. Introduced in GitLab 17.10. Generally available in GitLab 18.1. Feature flag ci_inputs_for_pipelines removed
ref
Required
StringBranch or tag to run the pipeline on. For merge request pipelines, use the merge request pipelines endpoint
Example: develop
variablesArray of objectsArray of variables to make available in the pipeline. Each variable is a hash with key, value, and variable_type. If variable_type is omitted, it defaults to env_var
variables[].keyStringKey of the variable
Example: UPLOAD_TO_S3
variables[].valueStringValue of the variable
Example: true
variables[].variable_typeStringType of the variable
Allowed values: env_var, file
Default: env_var

Responses

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

List all project pipelines

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

Lists all pipelines in a project. By default, child pipelines are not included in the results. To return child pipelines, set source to parent_pipeline. Child pipelines are also returned when requested by iids or ids.

Parameters

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
Example: 11
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
scope
Query
StringReturn pipelines in the specified scope. branches and tags return only the latest pipeline for each branch or tag
Allowed values: running, pending, finished, branches, tags
Example: pending
status
Query
StringReturn pipelines with the specified status
Allowed values: created, waiting_for_resource, preparing, waiting_for_callback, pending, running, success, failed, canceling, canceled, skipped, manual, scheduled
Example: pending
ref
Query
StringReturn pipelines for the specified branch or tag
Example: develop
sha
Query
StringReturn pipelines for the specified commit SHA
Example: a91957a858320c0e17f3a0eca7cfacbff50ea29a
yaml_errors
Query
BooleanIf true, returns only pipelines with invalid configurations
Example: false
username
Query
StringReturn pipelines triggered by the specified username
Example: root
updated_before
Query
String (date-time)Return pipelines updated on or before the specified time
Example: 2015-12-24T15:51:21.880Z
updated_after
Query
String (date-time)Return pipelines updated on or after the specified time
Example: 2015-12-24T15:51:21.880Z
created_before
Query
String (date-time)Return pipelines created before the specified time
Example: 2015-12-24T15:51:21.880Z
created_after
Query
String (date-time)Return pipelines created after the specified time
Example: 2015-12-24T15:51:21.880Z
order_by
Query
StringSort results by the specified field
Allowed values: id, status, ref, updated_at, user_id
Default: id
Example: status
sort
Query
StringSort results in ascending or descending order
Allowed values: asc, desc
Default: desc
Example: asc
source
Query
StringThe source of pipelines
Allowed values: unknown, push, web, trigger, schedule, api, external, pipeline, chat, webide, merge_request_event, external_pull_request_event, parent_pipeline, ondemand_dast_scan, ondemand_dast_validation, security_orchestration_policy, container_registry_push, duo_workflow, pipeline_execution_policy_schedule, dependency_management_security_update
Example: push
name
Query
StringReturn pipelines with the specified name
Example: Build pipeline
iids
Query
Array of integersReturn pipelines with the specified IIDs. Child pipelines are included when requested by IID
Example: [1,2]
ids
Query
Array of integersReturn pipelines with the specified IDs. Child pipelines are included when requested by ID
Example: [1,2]

Responses

CodeDescriptionSchema
200OKArray of APIEntitiesCiPipelineBasic
400Bad Request—
401Unauthorized—
403Forbidden—
404Not Found—

Retrieve the latest pipeline

GET /api/v4/projects/{id}/pipelines/latest

Retrieves the latest pipeline for the most recent commit on a specified ref in a project. If no pipeline exists for the commit, a 403 status code is returned. Use the page and per_page pagination parameters to control the pagination of results.

Parameters

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
Example: 11
ref
Query
StringBranch or tag to check for the latest pipeline. If omitted, uses the default branch
Example: develop

Responses

CodeDescriptionSchema
200OKAPIEntitiesCiPipelineWithMetadata
400Bad Request—
401Unauthorized—
403Forbidden—
404Not found—

Retrieve a pipeline

GET /api/v4/projects/{id}/pipelines/{pipeline_id}

Retrieves a specified pipeline from a project. You can also get a child pipeline.

Parameters

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
Example: 11
pipeline_id
Path, required
IntegerID of the pipeline
Example: 18

Responses

CodeDescriptionSchema
200OKAPIEntitiesCiPipelineWithMetadata
400Bad Request—
401Unauthorized—
403Forbidden—
404Not found—

Delete a pipeline

DELETE /api/v4/projects/{id}/pipelines/{pipeline_id}

Deletes a specified pipeline for a project. Deleting a pipeline expires all pipeline caches and deletes all immediately related objects, such as jobs, logs, artifacts, and triggers. This action cannot be undone. Child pipelines of the pipeline are not deleted. This endpoint requires the Owner role for the project.

Parameters

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
Example: 11
pipeline_id
Path, required
IntegerID of the pipeline
Example: 18

Responses

CodeDescriptionSchema
204Pipeline was deleted—
400Bad Request—
403Forbidden—
404Not Found—
429Too Many Requests—

List all bridge jobs by pipeline (deprecated)

GET /api/v4/projects/{id}/pipelines/{pipeline_id}/bridges

Deprecated in GitLab 19.2. Use trigger_jobs endpoint instead.

Parameters

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
Example: 11
pipeline_id
Path, required
IntegerID of the pipeline
Example: 18
scope
Query
String or array of stringsScope of jobs to show. Accepts a single job status or an array of job statuses. If omitted, returns all jobs
Example: ["pending","running"]
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 APIEntitiesCiBridge
400Bad Request—
401Unauthorized—
403Forbidden—
404Not found—

Cancel all jobs for a pipeline

POST /api/v4/projects/{id}/pipelines/{pipeline_id}/cancel

Cancels all jobs in a specified pipeline. If the pipeline cancellation rate limit is exceeded, returns 429 Too Many Requests with a Retry-After header.

Parameters

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
Example: 11
pipeline_id
Path, required
IntegerID of the pipeline
Example: 18

Responses

CodeDescriptionSchema
201CreatedAPIEntitiesCiPipeline
400Bad Request—
401Unauthorized—
403Forbidden—
404Not found—
429Too Many Requests—

List all jobs by pipeline

GET /api/v4/projects/{id}/pipelines/{pipeline_id}/jobs

Lists all jobs for a specified pipeline, including a child pipeline. Retried jobs are not included by default. Jobs are sorted by ID in descending order.

Parameters

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
Example: 11
pipeline_id
Path, required
IntegerID of the pipeline. In a CI/CD job, the CI_PIPELINE_ID predefined variable holds this value
Example: 18
include_retried
Query
BooleanIf true, includes retried jobs in the response
Default: false
scope
Query
String or array of stringsScope of jobs to show. Accepts a single job status or an array of job statuses. If omitted, returns all jobs
Example: ["pending","running"]
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 APIEntitiesCiJob
400Bad Request—
401Unauthorized—
403Forbidden—
404Not found—

Update pipeline metadata

PUT /api/v4/projects/{id}/pipelines/{pipeline_id}/metadata

Updates pipeline metadata. The metadata contains the name of the pipeline. This feature was introduced in GitLab 16.6.

Parameters

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
Example: 11
pipeline_id
Path, required
IntegerID of the pipeline
Example: 18

Request body (application/json)

PropertyTypeDescription
name
Required
StringNew name of the pipeline
Example: Deployment to production

Responses

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

Retry jobs in a pipeline

POST /api/v4/projects/{id}/pipelines/{pipeline_id}/retry

Retries failed or canceled jobs in a pipeline. If there are no failed or canceled jobs in the pipeline, calling this endpoint has no effect. Only one retry of a pipeline runs at a time. If a retry of the same pipeline is in progress, returns 409 Conflict. Wait for the retry to finish, then send the request again.

Parameters

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
Example: 11
pipeline_id
Path, required
IntegerID of the pipeline
Example: 18

Responses

CodeDescriptionSchema
201CreatedAPIEntitiesCiPipeline
400Bad Request—
401Unauthorized—
403Forbidden—
404Not found—
409Conflict—
429Too Many Requests—

Retrieve a test report for a pipeline

GET /api/v4/projects/{id}/pipelines/{pipeline_id}/test_report

Retrieves a test report for a pipeline.

Parameters

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
Example: 11
pipeline_id
Path, required
IntegerID of the pipeline
Example: 18

Responses

CodeDescriptionSchema
200OKTestReportEntity
400Bad Request—
401Unauthorized—
403Forbidden—
404Not found—

Retrieve a test report summary for a pipeline

GET /api/v4/projects/{id}/pipelines/{pipeline_id}/test_report_summary

Retrieves a test report summary for a pipeline.

Parameters

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
Example: 11
pipeline_id
Path, required
IntegerID of the pipeline
Example: 18

Responses

CodeDescriptionSchema
200OKTestReportSummaryEntity
400Bad Request—
401Unauthorized—
403Forbidden—
404Not found—

List all trigger jobs by pipeline

GET /api/v4/projects/{id}/pipelines/{pipeline_id}/trigger_jobs

Lists all trigger jobs for a specified pipeline. This feature was introduced in GitLab 19.2.

Parameters

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
Example: 11
pipeline_id
Path, required
IntegerID of the pipeline
Example: 18
scope
Query
String or array of stringsScope of jobs to show. Accepts a single job status or an array of job statuses. If omitted, returns all jobs
Example: ["pending","running"]
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 APIEntitiesCiBridge
400Bad Request—
401Unauthorized—
403Forbidden—
404Not found—

List all pipeline variables

GET /api/v4/projects/{id}/pipelines/{pipeline_id}/variables

Lists all pipeline variables for a specified pipeline.

Parameters

NameTypeDescription
id
Path, required
StringID or URL-encoded path of the project
Example: 11
pipeline_id
Path, required
IntegerID of the pipeline
Example: 18

Responses

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

Schemas

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

APIEntitiesCiBridge

PropertyTypeDescription
allow_failureBoolean—
commitAPIEntitiesCommit—
coverageNumber (float)Example: 98.29
created_atString (date-time)Example: 2015-12-24T15:51:21.880Z
downstream_pipelineAPIEntitiesCiPipelineBasic—
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
stageStringExample: deploy
started_atString (date-time)Example: 2015-12-24T17:54:30.733Z
statusStringExample: waiting_for_resource
tagBoolean—
userAPIEntitiesUser—
web_urlStringExample: https://example.com/foo/bar/-/jobs/1

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

APIEntitiesCiPipeline

PropertyTypeDescription
archivedBooleanExample: false
before_shaStringExample: a91957a858320c0e17f3a0eca7cfacbff50ea29a
committed_atString (date-time)Example: 2015-12-24T15:51:21.880Z
coverageNumber (float)Example: 98.29
created_atString (date-time)Example: 2015-12-24T15:51:21.880Z
detailed_statusDetailedStatusEntity—
durationIntegerTime spent running in seconds
Example: 127
finished_atString (date-time)Example: 2015-12-24T17:54:31.198Z
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
queued_durationIntegerTime spent enqueued in seconds
Example: 63
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
started_atString (date-time)Example: 2015-12-24T17:54:30.733Z
statusStringStatus of the pipeline
Example: success
tagBooleanExample: false
updated_atString (date-time)Example: 2015-12-24T17:54:31.198Z
userAPIEntitiesUserBasic—
web_urlStringURL of the pipeline in the GitLab UI
Example: https://gitlab.example.com/gitlab-org/gitlab-foss/-/pipelines/61
yaml_errorsStringExample: widgets:build: needs 'widgets:test'

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

APIEntitiesCiPipelineMergeRequest

PropertyTypeDescription
iidIntegerExample: 14
titleStringExample: Add rate limiting to the public API
web_urlStringExample: https://gitlab.example.com/foo/bar/-/merge_requests/14

APIEntitiesCiPipelineWithMetadata

PropertyTypeDescription
archivedBooleanExample: false
before_shaStringExample: a91957a858320c0e17f3a0eca7cfacbff50ea29a
committed_atString (date-time)Example: 2015-12-24T15:51:21.880Z
coverageNumber (float)Example: 98.29
created_atString (date-time)Example: 2015-12-24T15:51:21.880Z
detailed_statusDetailedStatusEntity—
durationIntegerTime spent running in seconds
Example: 127
finished_atString (date-time)Example: 2015-12-24T17:54:31.198Z
idInteger (int64)ID of the pipeline
Example: 1
iidIntegerInternal ID of the pipeline
Example: 2
nameStringExample: Build pipeline
project_idInteger (int64)ID of the project of the pipeline
Example: 3
queued_durationIntegerTime spent enqueued in seconds
Example: 63
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
started_atString (date-time)Example: 2015-12-24T17:54:30.733Z
statusStringStatus of the pipeline
Example: success
tagBooleanExample: false
updated_atString (date-time)Example: 2015-12-24T17:54:31.198Z
userAPIEntitiesUserBasic—
web_urlStringURL of the pipeline in the GitLab UI
Example: https://gitlab.example.com/gitlab-org/gitlab-foss/-/pipelines/61
yaml_errorsStringExample: widgets:build: needs 'widgets:test'

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

APIEntitiesCiUserPipeline

PropertyTypeDescription
created_atString (date-time)Timestamp when the pipeline was created
Example: 2022-10-21T16:49:48.000+02:00
detailed_statusDetailedStatusEntity—
durationIntegerTime spent running in seconds
Example: 127
finished_atString (date-time)Example: 2022-10-21T16:52:12.000+02:00
idInteger (int64)ID of the pipeline
Example: 1
iidIntegerInternal ID of the pipeline
Example: 2
merge_requestAPIEntitiesCiPipelineMergeRequest—
nameStringExample: Build pipeline
projectAPIEntitiesProjectIdentity—
project_idInteger (int64)ID of the project of the pipeline
Example: 3
queued_durationIntegerTime spent queued in seconds
Example: 63
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
started_atString (date-time)Example: 2022-10-21T16:49:50.000+02:00
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

APIEntitiesCiVariable

PropertyTypeDescription
descriptionStringExample: This variable is being used for ...
environment_scopeStringExample: *
hiddenBoolean—
keyStringKey of the variable
Example: TEST_VARIABLE_1
maskedBoolean—
protectedBoolean—
rawBooleanWhether the variable is treated as a raw string. When false, variable references in the value are expanded
valueStringValue of the variable
Example: TEST_1
variable_typeStringType of the variable. Either env_var or file
Example: env_var

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

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

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

DetailedStatusEntity

PropertyTypeDescription
actionObject—
action.button_titleStringExample: Cancel this job
action.confirmation_messageStringExample: Are you sure?
action.iconStringExample: cancel
action.methodStringExample: post
action.pathStringExample: /namespace1/project1/-/jobs/2/cancel
action.titleStringExample: Cancel
details_pathStringExample: /test-group/test-project/-/pipelines/287
faviconStringExample: /assets/ci_favicons/favicon_status_success.png
groupStringExample: success
has_detailsBooleanExample: true
iconStringExample: status_success
illustrationObjectExample: {"content":"This job depends on upstream jobs that need to succeed in order for this job to be triggered","image":"illustrations/empty-state/empty-job-not-triggered-md.svg","size":"","title":"This job has not been triggered yet"}
labelStringExample: passed
textStringExample: passed
tooltipStringExample: passed

TestCaseEntity

PropertyTypeDescription
attachment_urlStringExample: http://localhost/namespace1/project1/-/jobs/1/artifacts/file/some/path.png
classnameStringExample: vulnerability_management_spec
execution_timeIntegerExample: 180
fileStringExample: ./spec/test_spec.rb
nameStringDefault: (No name)
Example: Security Reports can create an auto-remediation MR
recent_failuresObjectExample: {"base_branch":"develop","count":3}
severityStringExample: low
stack_traceStringExample: Failure/Error: is_expected.to eq(3)
statusStringExample: success
system_outputStringExample: Failure/Error: is_expected.to eq(3)

TestReportEntity

PropertyTypeDescription
error_countIntegerExample: 0
failed_countIntegerExample: 0
skipped_countIntegerExample: 0
success_countIntegerExample: 1
test_suitesArray of TestSuiteEntity—
total_countIntegerExample: 1
total_timeIntegerExample: 180

TestReportSummaryEntity

PropertyTypeDescription
test_suitesTestSuiteSummaryEntity—
totalObjectExample: {"count":2,"error":0,"failed":0,"skipped":0,"success":2,"suite_error":null,"time":0.42}

TestSuiteEntity

PropertyTypeDescription
error_countIntegerExample: 0
failed_countIntegerExample: 0
nameStringExample: test
skipped_countIntegerExample: 12
success_countIntegerExample: 3351
suite_errorStringExample: JUnit XML parsing failed: 1:1: FATAL: Document is empty
test_casesArray of TestCaseEntity—
total_countIntegerExample: 3363
total_timeIntegerExample: 1904

TestSuiteSummaryEntity

PropertyTypeDescription
build_idsArray of integersExample: [66004]
error_countIntegerExample: 0
failed_countIntegerExample: 0
nameStringExample: test
severity_countsObjectExample: {"critical":{"errored":0,"failed":1}}
skipped_countIntegerExample: 12
success_countIntegerExample: 3351
suite_errorStringExample: JUnit XML parsing failed: 1:1: FATAL: Document is empty
test_casesArray of TestCaseEntity—
total_countIntegerExample: 3363
total_timeIntegerExample: 1904