Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Workspace variables API pagination returning duplicate entries

Vitalie Calmic
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 7, 2026

Endpoint: GET /workspaces/{workspace}/pipelines-config/variables

The API is incorrectly handling pagination, resulting in duplicate entries and an excessive number of pages. In a set of 20 retrieved items, only 12 unique variables exist; the remaining 8 are duplicates of the first 12.

The API continues to provide a nextLink far beyond the actual data set size. With 12 total unique variables and a pagelen=10, the expected behavior is for the nextLink to disappear after Page 2. Instead, the API continues to serve pages with decreasing pagelen values and redundant data:

  • Page 2: pagelen=10 (Expected end of data)
  • Pages 3–6: Returns pagelen=2 on each page consisting of duplicate UUIDs.
  • Page 6: nextLink finally omitted.

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 8, 2026

Hi @Vitalie Calmic 

Welcome to the Bitbucket Cloud community!

I have tested this against my own workspace but have been unable to reproduce this on my end. I can view my full list of variables, which is free from duplicates.  

To troubleshoot this further - we will need to see the API response specifically retrieved from your workspace. This requires us to have a formal support ticket for our system to allow us to grant ourselves the necessary access, and sharing the API output would not be  appropriate as community is a public forum.

I can see that you're a member of a Premium workspace so you are entitled to support directly from our support team. Can you please raise a ticket directly with us so that we may assist you accordingly?

If you encounter issues raising a ticket - please let me know your timezone so that I may raise one on your behalf with the team that works within your business hours:

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events