netlify / open-api

Open API specification of Netlify's API

Home Page:https://open-api.netlify.com/#/default

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug: GET /sites not returning all sites; missing sites from shared team

prestonlimlianjie opened this issue · comments

Do you want to request a feature or report a bug?

This is a bug report.

If the current behavior is a bug, please provide the steps to reproduce.

I currently have my own personal Netlify team and I also belong to a Netlify team that has several coworkers. The latter Netlify team has >100 sites.

However, when I make the following request - GET https://api.netlify.com/api/v1/sites?access_token=<ACCESS_TOKEN> - I only retrieve a subset of sites that I have access to (specifically 52 sites). The response does not contain a next page in the link response header, even though I should be able to see >100 sites.

What is the expected behavior?

The expected behavior is to list out all sites that I can see.

Found that there's a filter query param that we can set to all and it'll return all sites