Skip to content
Docs

List git namespaces by provider

GEThttps://api.vercel.com/v1/integrations/git-namespaces
Lists git namespaces for a supported provider. Supported providers are github, gitlab and bitbucket. If the provider is not provided, it will try to obtain it from the user that authenticated the request.
https://api.vercel.com/v1/integrations/git-namespaces
const response = await fetch('https://api.vercel.com/v1/integrations/git-namespaces?host=string&provider=value&viewerMetadata=true', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);
Response
[
{
"id": "icfg_1234567890",
"installationId": "123",
"isAccessRestricted": "false",
"name": "Example Name",
"ownerType": "string",
"provider": "example_id",
"requireReauth": "false",
"slug": "string",
"viewer": {
"canCreateApp": "false",
"role": "string"
}
}
]
AuthorizationbearerToken

Default authentication mechanism

hoststringOptional
The custom Git host if using a custom Git provider, like GitHub Enterprise Server
provideranyOptional
viewerMetadatabooleanOptional
When true, includes the viewer object for each namespace.
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