Skip to content
Docs

List git repositories linked to namespace by provider

GEThttps://api.vercel.com/v1/integrations/search-repo
Lists git repositories linked to a namespace id for a supported provider. A specific namespace id can be obtained via the git-namespaces endpoint. Supported providers are github, gitlab and bitbucket. If the provider or namespace is not provided, it will try to obtain it from the user that authenticated the request.
https://api.vercel.com/v1/integrations/search-repo
const response = await fetch('https://api.vercel.com/v1/integrations/search-repo?query=string&namespaceId=value&provider=value&installationId=string&host=string&teamId=string&slug=string', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);
Response
"value"
AuthorizationbearerToken

Default authentication mechanism

querystringOptional
namespaceIdanyOptional
provideranyOptional
installationIdstringOptional
hoststringOptional
The custom Git host if using a custom Git provider, like GitHub Enterprise Server
teamIdstringOptional
The Team identifier to perform the request on behalf of.
slugstringOptional
The Team slug to perform the request on behalf of.
200Success
400One of the provided values in the request query is invalid.
401Error
403You do not have permission to access this resource.
404Error
410Error
429Error
500Error
502Error