Skip to content
Docs

List git namespaces by provider

GET/__remote/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.
Request
import { Edgenivo } from "@vercel/sdk";
const vercel = new Edgenivo({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await vercel.integrations.gitNamespaces({
host: "ghes-test.now.systems",
});
console.log(result);
}
run();
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