GET
/projects/{id}/jobs
curl \
--request GET 'https://www.gitlab.com/api/v4/projects/{id}/jobs' \
--header "Private-Token: $API_KEY"
Response examples (200)
[
{
"id": 42,
"name": "string",
"status": "string",
"stage": "string",
"created_at": "2016-01-11T10:13:33Z",
"started_at": "2016-01-11T10:13:33Z",
"finished_at": "2016-01-11T10:13:33Z",
"commit": {
"id": "2695effb5807a22ff3d138d593fd856244e155e7",
"short_id": "2695effb",
"created_at": "2017-07-26T11:08:53+02:00",
"parent_ids": [
"2a4b78934375d7f53875269ffd4f45fd83a84ebe"
],
"title": "Initial commit",
"message": "Initial commit",
"author_name": "John Smith",
"author_email": "john@example.com",
"authored_date": "2012-05-28T04:42:42-07:00",
"committer_name": "Jack Smith",
"committer_email": "jack@example.com",
"committed_date": "2012-05-28T04:42:42-07:00",
"trailers": "{ \"Merged-By\": \"Jane Doe janedoe@gitlab.com\" }",
"web_url": "https://gitlab.example.com/janedoe/gitlab-foss/-/commit/ed899a2f4b50b4370feeea94676502b42383c746"
},
"archived": true,
"allow_failure": true,
"erased_at": "2016-01-11T10:13:33Z",
"duration": 42,
"queued_duration": 42.0,
"ref": "string",
"artifacts": [],
"tag": true,
"web_url": "string",
"project": {
"ci_job_token_scope_enabled": true
},
"user": {
"id": 1,
"username": "admin",
"name": "Administrator",
"state": "active",
"avatar_url": "https://gravatar.com/avatar/1",
"avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png",
"custom_attributes": [
{
"key": "foo",
"value": "bar"
}
],
"web_url": "https://gitlab.example.com/root",
"email": "string"
}
}
]