# \#api

**URL:** https://forum.gitlab.com/tag/api/1.md

[Latest](https://forum.gitlab.com/latest.md) · [Categories](https://forum.gitlab.com/categories.md) · [Tags](https://forum.gitlab.com/tags.md)

---

## [Using GitLab API to find all current pending jobs across all projects](https://forum.gitlab.com/t/using-gitlab-api-to-find-all-current-pending-jobs-across-all-projects/57129)

<div class="topic-metadata">

**Author:** [@daniel.orduz1907](https://forum.gitlab.com/u/daniel.orduz1907)\
**Replies:** 2\
**Last updated:** [October 1, 2026, 11:30am UTC](https://forum.gitlab.com/t/using-gitlab-api-to-find-all-current-pending-jobs-across-all-projects/57129 "2026-10-01T11:30:59Z")

</div>

Need to expose some queue metrics (number of jobs pending) for monitoring purposes. I know there’s a list of pending jobs available in the UI (https://gitlab.corp.org.ca/admin/jobs?scope=pending) but my attempts to gener…

---

## [Single project on GitLab.com is frozen: API 500 on project/branches, "Commit Not Found", pushes rejected by pre-receive hook](https://forum.gitlab.com/t/single-project-on-gitlab-com-is-frozen-api-500-on-project-branches-commit-not-found-pushes-rejected-by-pre-receive-hook/135361)

<div class="topic-metadata">

**Author:** [@anderson.ppereira](https://forum.gitlab.com/u/anderson.ppereira)\
**Replies:** 1\
**Last updated:** [September 18, 2026, 2:13pm UTC](https://forum.gitlab.com/t/single-project-on-gitlab-com-is-frozen-api-500-on-project-branches-commit-not-found-pushes-rejected-by-pre-receive-hook/135361 "2026-09-18T14:13:09Z")

</div>

One project on GitLab.com became unusable about 2 hours ago, while every other project in the same group keeps working normally. Free plan. Project: onio-chat/onio-chat-backend-core — project id 84765146 Started: 2026…

---

## [GitLab.com free - requirements question on policies, rate limits, rules](https://forum.gitlab.com/t/gitlab-com-free-requirements-question-on-policies-rate-limits-rules/134911)

<div class="topic-metadata">

**Author:** [@nna116326](https://forum.gitlab.com/u/nna116326)\
**Replies:** 3\
**Last updated:** [August 27, 2026, 12:19am UTC](https://forum.gitlab.com/t/gitlab-com-free-requirements-question-on-policies-rate-limits-rules/134911 "2026-08-27T00:19:24Z")

</div>

Hello, I recently started migrating some of my development projects from GitHub to GitLab.com Free after my GitHub account was suspended. Because of that experience, I would like to make sure from the beginning that my…

---

## [Get default branch name of a project via API](https://forum.gitlab.com/t/get-default-branch-name-of-a-project-via-api/81730)

<div class="topic-metadata">

**Author:** [@tcolonel](https://forum.gitlab.com/u/tcolonel)\
**Replies:** 2\
**Last updated:** [August 14, 2026, 6:52am UTC](https://forum.gitlab.com/t/get-default-branch-name-of-a-project-via-api/81730 "2026-08-14T06:52:03Z")

</div>

Hi there. How I can get default branch name of a project via API from these page: /-/settings/repository → Branch defaults → Default branch. Thanks.

---

## [V4 api: events: after/before params truncate the time part](https://forum.gitlab.com/t/v4-api-events-after-before-params-truncate-the-time-part/134707)

<div class="topic-metadata">

**Author:** [@wkhere](https://forum.gitlab.com/u/wkhere)\
**Replies:** 1\
**Last updated:** [July 30, 2026, 2:54pm UTC](https://forum.gitlab.com/t/v4-api-events-after-before-params-truncate-the-time-part/134707 "2026-07-30T14:54:04Z")

</div>

Hi! The /api/v4/users/:username/events endpoint has query parameters after and before, accepting timestamps in the ISO 8601. However, by looking at the results, I noticed that the time part seems to be truncated and is …

---

## [Has GitLab.com changed GraphQL authentication behavior for Authorization header with Personal Access Tokens?](https://forum.gitlab.com/t/has-gitlab-com-changed-graphql-authentication-behavior-for-authorization-header-with-personal-access-tokens/134524)

<div class="topic-metadata">

**Author:** [@Mohammed\_Ashik](https://forum.gitlab.com/u/Mohammed_Ashik)\
**Replies:** 1\
**Last updated:** [July 16, 2026, 1:10pm UTC](https://forum.gitlab.com/t/has-gitlab-com-changed-graphql-authentication-behavior-for-authorization-header-with-personal-access-tokens/134524 "2026-07-16T13:10:49Z")

</div>

Hi GitLab Team, We recently observed what appears to be a change in the authentication behavior of the GitLab.com GraphQL API and would like to understand whether this was an intentional change. Our integration uses th…

---

## [Provider availability for Claude Fable 5](https://forum.gitlab.com/t/provider-availability-for-claude-fable-5/134483)

<div class="topic-metadata">

**Author:** [@boringboring](https://forum.gitlab.com/u/boringboring)\
**Replies:** 0\
**Last updated:** [July 12, 2026, 1:11am UTC](https://forum.gitlab.com/t/provider-availability-for-claude-fable-5/134483 "2026-07-12T01:11:39Z")

</div>

Hello. I’m not sure if this is the right place to post this, but I’ll ask anyway. I saw that Claude Fable 5 is the only AI in Gitlab Duo that has only one provider, Anthropic. Every single other model supports all three …

---

## [Orbit and API networking access](https://forum.gitlab.com/t/orbit-and-api-networking-access/134447)

<div class="topic-metadata">

**Author:** [@di55er](https://forum.gitlab.com/u/di55er)\
**Replies:** 3\
**Last updated:** [July 9, 2026, 4:23pm UTC](https://forum.gitlab.com/t/orbit-and-api-networking-access/134447 "2026-07-09T16:23:26Z")

</div>

I have been trying out the Orbit beta feature. However, since the orbit API allows for querying over files content, and since my group has restriction in place for network access via allowed only origins (e.g. offices an…

---

## [Set work item status by api (REST or GraphQL)](https://forum.gitlab.com/t/set-work-item-status-by-api-rest-or-graphql/132307)

<div class="topic-metadata">

**Author:** [@gervais.b](https://forum.gitlab.com/u/gervais.b)\
**Replies:** 1\
**Last updated:** [July 7, 2026, 4:33pm UTC](https://forum.gitlab.com/t/set-work-item-status-by-api-rest-or-graphql/132307 "2026-07-07T16:33:17Z")

</div>

Problem to solve We are using the work item status. And, we would like to automatically set the status of an issue form the API. We would like to change the status by either the REST API or GraphQL API. However, we cann…

---

## [Security issues with trigger token](https://forum.gitlab.com/t/security-issues-with-trigger-token/134319)

<div class="topic-metadata">

**Author:** [@hikmatfarhat-ndu](https://forum.gitlab.com/u/hikmatfarhat-ndu)\
**Replies:** 1\
**Last updated:** [June 23, 2026, 3:30am UTC](https://forum.gitlab.com/t/security-issues-with-trigger-token/134319 "2026-06-23T03:30:27Z")

</div>

:hugs: Please help fill in this template with all the details to help others help you more efficiently. Use formatting blocks for code, config, logs and ensure to remove sensitive data. Problem to solve The goal is to r…

---

## [GitLab Changelog.txt Endpoint returns Ruby Pointer instead of Markdown](https://forum.gitlab.com/t/gitlab-changelog-txt-endpoint-returns-ruby-pointer-instead-of-markdown/134135)

<div class="topic-metadata">

**Author:** [@AtjonTV](https://forum.gitlab.com/u/AtjonTV)\
**Replies:** 1\
**Last updated:** [June 22, 2026, 6:33am UTC](https://forum.gitlab.com/t/gitlab-changelog-txt-endpoint-returns-ruby-pointer-instead-of-markdown/134135 "2026-06-22T06:33:03Z")

</div>

Hey GitLab wizards, I am having an issue on my self-hosted GitLab CE instance. I am trying to use the Repository Changelog feature. I did finally figure out that I must create the .gitlab/changelog\_config.yml file to a…

---

## [Upgrade 18.\* to 19.0 results in metadata database empty for container registry](https://forum.gitlab.com/t/upgrade-18-to-19-0-results-in-metadata-database-empty-for-container-registry/134020)

<div class="topic-metadata">

**Author:** [@ok82](https://forum.gitlab.com/u/ok82)\
**Replies:** 6\
**Last updated:** [June 10, 2026, 9:40am UTC](https://forum.gitlab.com/t/upgrade-18-to-19-0-results-in-metadata-database-empty-for-container-registry/134020 "2026-06-10T09:40:46Z")

</div>

Problem to solve After upgrading from GitLab 18.x to 19.0, the Container Registry UI shows “Something went wrong while fetching the repository list” for all projects. Also project transfers fail with 500. Docker push/pu…

---

## [Git Credential Manager ask to sign in a lot](https://forum.gitlab.com/t/git-credential-manager-ask-to-sign-in-a-lot/95294)

<div class="topic-metadata">

**Author:** [@michaelnguyen08](https://forum.gitlab.com/u/michaelnguyen08)\
**Replies:** 3\
**Last updated:** [June 2, 2026, 12:46pm UTC](https://forum.gitlab.com/t/git-credential-manager-ask-to-sign-in-a-lot/95294 "2026-06-02T12:46:16Z")

</div>

I use VScode for my work and use both Gitlab and GitHub but Gitlab asks me to sign in a lot. I set Vscode auto fetch new commits from remove and it shows up a lot, never happens with GitHub My environment: Windows …

---

## [\[Show & Tell\] Open-sourced my self-hosted GitLab auto-updater (backups, version stops, healthcheck-aware rollback)](https://forum.gitlab.com/t/show-tell-open-sourced-my-self-hosted-gitlab-auto-updater-backups-version-stops-healthcheck-aware-rollback/134073)

<div class="topic-metadata">

**Author:** [@moe-s98](https://forum.gitlab.com/u/moe-s98)\
**Replies:** 0\
**Last updated:** [June 2, 2026, 12:07am UTC](https://forum.gitlab.com/t/show-tell-open-sourced-my-self-hosted-gitlab-auto-updater-backups-version-stops-healthcheck-aware-rollback/134073 "2026-06-02T00:07:20Z")

</div>

After the GitLab 19.0 upgrade saga I posted last week, I cleaned up and open-sourced the Python tool that drives our weekly GitLab CE upgrade cron. v0.1 is now on GitHub: :link: GitHub - moe-s98/gitlab-docker-auto-updat…

---

## [How to provide manual option when a job is failed?](https://forum.gitlab.com/t/how-to-provide-manual-option-when-a-job-is-failed/71478)

<div class="topic-metadata">

**Author:** [@uday.reddy3](https://forum.gitlab.com/u/uday.reddy3)\
**Replies:** 7\
**Last updated:** [May 8, 2026, 9:03pm UTC](https://forum.gitlab.com/t/how-to-provide-manual-option-when-a-job-is-failed/71478 "2026-05-08T21:03:44Z")

</div>

I have a pipeline as below. if I keep allow\_failure value true for teardown job, the next job is running directly. If I keep allow\_failure value false for teardown job, the next job is set in a state of skipped, and…

---

## [405 error when trying to merge MR via API](https://forum.gitlab.com/t/405-error-when-trying-to-merge-mr-via-api/120196)

<div class="topic-metadata">

**Author:** [@bluesmoon](https://forum.gitlab.com/u/bluesmoon)\
**Replies:** 4\
**Last updated:** [April 29, 2026, 6:25pm UTC](https://forum.gitlab.com/t/405-error-when-trying-to-merge-mr-via-api/120196 "2026-04-29T18:25:30Z")

</div>

Problem to solve I create a merge request from my CI job using the REST API. This works correctly and I get a response containing the MR’s iid. I then try to use the (PUT) API to set the merge\_when\_pipeline\_succeeds=tru…

---

## [How to remove files generated by failed group and project migration](https://forum.gitlab.com/t/how-to-remove-files-generated-by-failed-group-and-project-migration/133546)

<div class="topic-metadata">

**Author:** [@gbten](https://forum.gitlab.com/u/gbten)\
**Replies:** 2\
**Last updated:** [April 27, 2026, 2:21pm UTC](https://forum.gitlab.com/t/how-to-remove-files-generated-by-failed-group-and-project-migration/133546 "2026-04-27T14:21:45Z")

</div>

Hello, I have a user that is trying to import their projects to a new Gitlab instance by using the transfer method via API which is outlined here. The user is currently experiencing failures on the migration due to conf…

---

## [There was an error processing your request in the Duo Agent Platform, please contact support if the issue persists](https://forum.gitlab.com/t/there-was-an-error-processing-your-request-in-the-duo-agent-platform-please-contact-support-if-the-issue-persists/133562)

<div class="topic-metadata">

**Author:** [@antigravityty2](https://forum.gitlab.com/u/antigravityty2)\
**Replies:** 1\
**Last updated:** [April 21, 2026, 10:08am UTC](https://forum.gitlab.com/t/there-was-an-error-processing-your-request-in-the-duo-agent-platform-please-contact-support-if-the-issue-persists/133562 "2026-04-21T10:08:00Z")

</div>

Hello, I’m on trial and on Gitlab Duo CLI v8.88.0 But I’m facing “There was an error processing your request in the Duo Agent Platform, please contact support if the issue persists.” frequently. Once the error appears…

---

## [X-XSS- Protection is set to 0 in collect\_events end point](https://forum.gitlab.com/t/x-xss-protection-is-set-to-0-in-collect-events-end-point/133540)

<div class="topic-metadata">

**Author:** [@hrushiathakur](https://forum.gitlab.com/u/hrushiathakur)\
**Replies:** 3\
**Last updated:** [April 17, 2026, 1:19pm UTC](https://forum.gitlab.com/t/x-xss-protection-is-set-to-0-in-collect-events-end-point/133540 "2026-04-17T13:19:21Z")

</div>

Problem to solve I can see when I access any url inside the self managed Gitlab hosted on my VM, the x-xss-protection is set to 0 only for the following end point. https://my-host/gitlab/-/collect\_events This is gettin…

---

## [Downloading release asset with rest api](https://forum.gitlab.com/t/downloading-release-asset-with-rest-api/133464)

<div class="topic-metadata">

**Author:** [@mark.hayen](https://forum.gitlab.com/u/mark.hayen)\
**Replies:** 2\
**Last updated:** [April 13, 2026, 6:12am UTC](https://forum.gitlab.com/t/downloading-release-asset-with-rest-api/133464 "2026-04-13T06:12:13Z")

</div>

Problem to solve I am trying to download a release asset using the releases rest api But I get a 404 response after being redirected. If I try the same URL in a authenticated browser session, the file is found and down…

---

## [Use GraphQL API with new fine-grained personal access tokens](https://forum.gitlab.com/t/use-graphql-api-with-new-fine-grained-personal-access-tokens/133461)

<div class="topic-metadata">

**Author:** [@TheJanzap](https://forum.gitlab.com/u/TheJanzap)\
**Replies:** 0\
**Last updated:** [April 11, 2026, 10:11am UTC](https://forum.gitlab.com/t/use-graphql-api-with-new-fine-grained-personal-access-tokens/133461 "2026-04-11T10:11:34Z")

</div>

GitLab Next offers the new fine-grained personal access tokens. On the docs site linked above, it only mentions the REST API. I would like to know if these new access token also cover the GraphQL API.

---

## [How to get pipeline list of jobs from the pipeline itself](https://forum.gitlab.com/t/how-to-get-pipeline-list-of-jobs-from-the-pipeline-itself/133008)

<div class="topic-metadata">

**Author:** [@marcounetB](https://forum.gitlab.com/u/marcounetB)\
**Replies:** 2\
**Last updated:** [March 27, 2026, 10:41am UTC](https://forum.gitlab.com/t/how-to-get-pipeline-list-of-jobs-from-the-pipeline-itself/133008 "2026-03-27T10:41:14Z")

</div>

Problem to solve I’m looking for extracting a pipeline list of jobs and stages directly from inside the pipeline to send in a callback. The idea is to reproduce Gitlab’s view here-under: I don’t want to write gitlab-…

---

## [Clear Runner Cache API](https://forum.gitlab.com/t/clear-runner-cache-api/62965)

<div class="topic-metadata">

**Author:** [@yoco-nick](https://forum.gitlab.com/u/yoco-nick)\
**Replies:** 1\
**Last updated:** [March 18, 2026, 12:16pm UTC](https://forum.gitlab.com/t/clear-runner-cache-api/62965 "2026-03-18T12:16:39Z")

</div>

Is there an REST API endpoint that allows one to clear the runner caches for a given project? I want to allow a restricted set of developers do the equivalent of clicking the “Clear runner caches” button on the Pipeline…

---

## [Multi-project downstream pipeline with API call](https://forum.gitlab.com/t/multi-project-downstream-pipeline-with-api-call/133136)

<div class="topic-metadata">

**Author:** [@EeDzjee](https://forum.gitlab.com/u/EeDzjee)\
**Replies:** 0\
**Last updated:** [March 13, 2026, 10:03am UTC](https://forum.gitlab.com/t/multi-project-downstream-pipeline-with-api-call/133136 "2026-03-13T10:03:10Z")

</div>

Problem to solve I want to create a job that triggers a pipeline and executes a script. The triggered pipeline is in another project, so it is a multi-project pipeline and I want to see the downstream pipeline in the ori…

---

## [Embedded views throwing code 500 on MR](https://forum.gitlab.com/t/embedded-views-throwing-code-500-on-mr/133060)

<div class="topic-metadata">

**Author:** [@louisgrasset](https://forum.gitlab.com/u/louisgrasset)\
**Replies:** 2\
**Last updated:** [March 10, 2026, 1:46pm UTC](https://forum.gitlab.com/t/embedded-views-throwing-code-500-on-mr/133060 "2026-03-10T13:46:38Z")

</div>

Hello, Since our Gitlab instance upgraded to 18.9, we are not able to use Embedded Views in Merge Requests. Instead of rendering the view, we get the following infobox: When looking into the network requests, we see…

---

## [403 error using \`/v4/projects/{id}/pipelines/latest?ref={branch}\`](https://forum.gitlab.com/t/403-error-using-v4-projects-id-pipelines-latest-ref-branch/133027)

<div class="topic-metadata">

**Author:** [@PeterBelbin](https://forum.gitlab.com/u/PeterBelbin)\
**Replies:** 0\
**Last updated:** [March 3, 2026, 6:03pm UTC](https://forum.gitlab.com/t/403-error-using-v4-projects-id-pipelines-latest-ref-branch/133027 "2026-03-03T18:03:17Z")

</div>

Problem to solve I am receiving an HTTP 403 response when using /v4/projects/{id}/pipelines/latest?ref={branch-name} I am not receiving an HTTP 403 error when using /v4/projects/{id}/pipelines?ref={branch-name} It does…

---

## [GitLab Epics API enpoint returns 404 not found error](https://forum.gitlab.com/t/gitlab-epics-api-enpoint-returns-404-not-found-error/133007)

<div class="topic-metadata">

**Author:** [@aakashsivakumar](https://forum.gitlab.com/u/aakashsivakumar)\
**Replies:** 0\
**Last updated:** [March 3, 2026, 8:28am UTC](https://forum.gitlab.com/t/gitlab-epics-api-enpoint-returns-404-not-found-error/133007 "2026-03-03T08:28:22Z")

</div>

I am a member of a particular group and when I try to fire the Epics API, it returns 404 not found error. https://gitlabonpreminstance.com/api/v4/groups/mygroup/epics?include\_descendant\_groups=false I know the Epics AP…

---

## [List Projects Returning Incorrect Projects](https://forum.gitlab.com/t/list-projects-returning-incorrect-projects/132919)

<div class="topic-metadata">

**Author:** [@lakshya-singh-glean](https://forum.gitlab.com/u/lakshya-singh-glean)\
**Replies:** 0\
**Last updated:** [February 24, 2026, 9:21am UTC](https://forum.gitlab.com/t/list-projects-returning-incorrect-projects/132919 "2026-02-24T09:21:51Z")

</div>

While using list projects endpoint using a PAT with below curl command curl -X GET 'https://gitlab.com/api/v4/projects?visibility=public&per\_page=100&membership=true' \\ --header 'Authorization: Bearer \<TOKEN\> We are …

---

## [Activation of registry cleanup policy not working](https://forum.gitlab.com/t/activation-of-registry-cleanup-policy-not-working/132855)

<div class="topic-metadata">

**Author:** [@89grad](https://forum.gitlab.com/u/89grad)\
**Replies:** 0\
**Last updated:** [February 19, 2026, 10:51am UTC](https://forum.gitlab.com/t/activation-of-registry-cleanup-policy-not-working/132855 "2026-02-19T10:51:26Z")

</div>

I’m trying to activate automatic removal of containers via API, but it seems to simply ignore the policy passed: from requests import put from pprint import pprint GITLAB\_URL = 'https://git.example.org' PRIVATE\_TOKEN =…

---

## [How to debug an mvn deploy with a 'Bad Request (400)' response](https://forum.gitlab.com/t/how-to-debug-an-mvn-deploy-with-a-bad-request-400-response/132795)

<div class="topic-metadata">

**Author:** [@MikaelJ](https://forum.gitlab.com/u/MikaelJ)\
**Replies:** 2\
**Last updated:** [February 16, 2026, 2:45pm UTC](https://forum.gitlab.com/t/how-to-debug-an-mvn-deploy-with-a-bad-request-400-response/132795 "2026-02-16T14:45:44Z")

</div>

Problem to solve Short story: When I do mvn deploy to a self-hosted gitlab instance I get a 400-answer: \[ERROR\] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:3.1.2:deploy (default-deploy) on projec…

[Next page](https://forum.gitlab.com/tag/api/1.md?match_all_tags=true&page=1&tags%5B%5D=api)
