List git namespaces by provider
GET
/__remote/api.vercel.com/v1/integrations/git-namespacesLists 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